Discovery Policies for Veritas NetBackup > Troubleshooting Net-SNMP Installations
  
Version 10.0.01
Troubleshooting Net-SNMP Installations
The /usr/local/bin/snmpconf file requires Perl v5.6 and above.
Replace the line:
#!/usr/local/bin/perl
in /usr/local/bin/snmpconf to reference your Perl installation:
If your version of Perl is 5.0 or before then you might receive a runtime error when the snmpconf file executes. To correct this problem, edit the snmpconf file and make the following changes:
#!/usr/local/bin/perl
- if (! (-d "$opts{'I'}") && ! (mkdir ("$opts{'I'}"))) {
+ if (! (-d "$opts{'I'}") && ! (mkdir ("$opts{'I'}", 0755))) {
print "\nCould not create $opts{'I'} directory: $!\n";
print ("File $didfile{$i} left in current directory\n");
}
@@ -198,7 +198,7 @@
}
}
} elsif ($opts{'p'}) {
- if (! (-d "$home") && ! (mkdir ("$home"))) {
+ if (! (-d "$home") && ! (mkdir ("$home", 0755))) {
print "\nCould not create $home directory: $!\n";
print ("File $didfile{$i} left in current directory\n");
 
 
 
Note: