tommycahir1
Programmer
hi all hope ye can help i trying to set multiple values in the smp mib2 and the following is the code i using but it only sets the first one
$snmp_session is an net::snmp object to the host and with the correct community name. i have no problem, setting the first one but when i try to set the second one it doesnt change it at all i using perl to write the script
my $setResponsePDU = $snmp_session->set_request(sysName,OCTET_STRING,$newname );
my $setResponsePDU1 = $snmp_session->set_request(sysDescr,OCTET_STRING,$newdescription );
my $setResponsePDU2 = $snmp_session->set_request(sysLocation,OCTET_STRING,$newlocation );
my $setResponsePDU3 = $snmp_session->set_request(sysContact,OCTET_STRING,$newcontact );
any help would be great
tanx
$snmp_session is an net::snmp object to the host and with the correct community name. i have no problem, setting the first one but when i try to set the second one it doesnt change it at all i using perl to write the script
my $setResponsePDU = $snmp_session->set_request(sysName,OCTET_STRING,$newname );
my $setResponsePDU1 = $snmp_session->set_request(sysDescr,OCTET_STRING,$newdescription );
my $setResponsePDU2 = $snmp_session->set_request(sysLocation,OCTET_STRING,$newlocation );
my $setResponsePDU3 = $snmp_session->set_request(sysContact,OCTET_STRING,$newcontact );
any help would be great
tanx