tommycahir,
Well that's sort of a good sign. It means that there was nothing wrong with your original code and the problem must be elsewhere. I am not sure if $result has any meaningful information but it may be worthwhile to print $result each time through the loop. Additionally, have you checked out the snmpset script that came with Net::SNMP? The only other thing I can suggest is turn the SNMP logging for the server you are setting on way up and tail the log.
Cheers - L~R
| [reply] |
this is the error i get in the snmpset script when i try run
snmpset -c***** -v2c ***.***.***.* sysContact.0 s "Me"
Error in packet.
Reason: notWritable (that object does not support modification)
Failed object: SNMPv2-MIB::sysContact.0
| [reply] |
tommycahir,
Did you verify that the community string you are trying to write to is not read-only? I am not sure what else to tell you since it does not appear to be a code issue but a SNMP configuration problem.
Cheers - L~R
| [reply] |
L~R tried the snmpset commandline tool and it wont allow me set anything but the sysName so it def not the code.
i just wondering what would stop you from setting more than one value in the mib???
| [reply] |