Issue with snmpv3 passwords
This commit is contained in:
parent
a4e0bfe38e
commit
7699b250bf
|
@ -187,11 +187,11 @@ unless ($host){
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
my $command_line_parameters;
|
my $command_line_parameters;
|
||||||
if ($version == "3") {
|
if ($version == "3") {
|
||||||
if ($security_level eq 'authNoPriv') {
|
if (lc($security_level) eq lc('authNoPriv')) {
|
||||||
$command_line_parameters = "-v $version -u $user -a $auth_method -A $pass -l $security_level $host";
|
$command_line_parameters = "-v $version -u $user -a $auth_method -A '$pass' -l $security_level $host";
|
||||||
}
|
}
|
||||||
elsif ($security_level eq "AuthPriv") {
|
elsif (lc($security_level) eq lc("AuthPriv")) {
|
||||||
$command_line_parameters = "-v $version -u $user -a $auth_method -A $pass -l $security_level -x $privacy_method -X $privacy_pass $host";
|
$command_line_parameters = "-v $version -u $user -a $auth_method -A '$pass' -l $security_level -x $privacy_method -X '$privacy_pass' $host";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$command_line_parameters = "-v $version -u $user -l $security_level $host";
|
$command_line_parameters = "-v $version -u $user -l $security_level $host";
|
||||||
|
|
Loading…
Reference in New Issue