Patrick Nelson wrote: ----------------->>>> Christopher Mahmood * Patrick Nelson (pnelson@neatech.com) [020610 10:08]:
snmpset <system name> <rw community> sysContact.0 s <an email address>
I get an error like:
Error in packer. Reason: (noSuchName) There is no such variable name in this MIB.
This is not the best error message. It means either the variable doesn't exist in the MIB (which of course it does) or the variable isn't writable. The ucdsnmpd.conf in the package doesn't allow writing for security reasons--you'll need to create your own config file. If you just want a basic version 1 snmpd setup run snmpconf. ----------------->>>> I have my own snmpd.conf which is setup using snmpconf. snmptraslate -Td `snmptranslate -IR -On sysContact.0` shows: ---------------------------- .1.3.6.1.2.1.1.4.0 sysContact OBJECT-TYPE -- FROM SNMPv2-MIB, RFC1213-MIB -- TEXTUAL CONVENTION DisplayString SYNTAX OCTET STRING (0..255) DISPLAY-HINT "255a" MAX-ACCESS read-write STATUS current DESCRIPTION "The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string." ::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) system(1) sysContact(4) 0 } ---------------------------- my snmp.conf seems to be correct and any change to it produces the same results. Unless I use the wrong community string, then it says that there was no response. Anything I've said here point me in a direction towards resolution?
It's nearly impossible for me to read your email. * Patrick Nelson (pnelson@neatech.com) [020610 12:02]:
my snmp.conf seems to be correct and any change to it produces the same results. Unless I use the wrong community string, then it says that there was no response. Anything I've said here point me in a direction towards resolution?
Where's your ucdsnmpd.conf? The following works fine: #snmpd.conf rwcommunity secret 127.0.0.0/8 $ snmpd -c /tmp/snmpd-test.conf $ snmpwalk localhost secret system.sysContact.0 system.sysContact.0 = foobar $ snmpset localhost secret system.sysContact.0 s foobar system.sysContact.0 = foobar -- -ckm
participants (2)
-
Christopher Mahmood
-
Patrick Nelson