This commit is contained in:
Jose Gonzalez 2021-03-23 16:15:57 +01:00
parent 4978ac3081
commit 910154389e

View File

@ -2122,7 +2122,7 @@ sub snmp_get_command {
$command .= " -x$self->{'snmp_privacy_method'} -X \'$self->{'snmp_privacy_pass'}\' "; $command .= " -x$self->{'snmp_privacy_method'} -X \'$self->{'snmp_privacy_pass'}\' ";
} }
} else { } else {
$command .= " -c$community$vlan "; $command .= " -c\'$community\'$vlan ";
} }
return "$command $device $oid 2>$DEVNULL"; return "$command $device $oid 2>$DEVNULL";