2009/4/16 Raghu Ramaraj <[email protected]>: > > I am getting like ........... > > [r...@a2md06031 snmp]# snmpset -v1 -c democommunity 172.22.68.14 > system.sysLocation.0 s "hai" > Error in packet. > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: SNMPv2-MIB::sysLocation.0
First thing - use "-v2c" rather than "-v1" That tends to give more informative error messages. Secondly - do you have a "sysLocation" line in your snmpd.conf file? If so, that effectively makes this object read-only - you can't use SET with it. (Think what happens when the agent restarts). If not, then do you have any "rocommunity" lines in your snmpd.conf file? If there are rocommunity and rwcommunity settings with the same community name, then this can lead to confusion. For any given community string, use *either* rocommunity *or* rwcommunity. Do *not* use both. If that doesn't solve it, we'd probably need to see the full snmpd.conf file. Dave ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
