On your snmpget command, you need to specify the full OID name, in this case SNMPv2-MIB::sysUpTime, or add the -IR flag to tell it to match the name as a regular expression (as you did on for snmptranslate).
Rob Amit Kumar wrote: > it is working fine now...but i got some other errors ...please find > the same. > when I start the agent we have to give the name of both configuration files > /etc/snmpd.conf , /var/net-snmp/snmpd.conf ? > > /usr/local/sbin/snmpd -c /var/net-snmp/snmpd.conf,/etc/snmpd.conf > > i killed the snmpd and added the line : > net-snmp-config --create-snmpv3-user -ro -a "netadminpassword" netadmin > after this the following line is gets stored in /var/net-snmp/snmpd.conf > usmUser 1 3 0x80001f88802d0eb45600000000386d438b 0x6e657461646d696e00 > 0x6e657461646d696e00 NULL .1.3.6.1.6.3.10.1.1.2 > 0xb3b1ea6a70f6f27c14101b0da01ea70c .1.3.6.1.6.3.10.1.2.2 > 0xb3b1ea6a70f6f27c14101b0da01ea70c "" > but when i do snmpget i am getting the following error : > [EMAIL PROTECTED] ~]# snmpget -v 3 -u netadmin -l authNoPriv -a MD5 -A > netadmnpassword 172.20.1.64 sysUpTime.0 > snmpget: Timeout (Sub-id not found: (top) -> sysUpTime) > [EMAIL PROTECTED] ~]# snmptranslate -Le sysUpTime > sysUpTime: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime) > [EMAIL PROTECTED] ~]# snmptranslate -IR sysUpTime > SNMPv2-MIB::sysUpTime > [EMAIL PROTECTED] ~]# > > Thanks > Amit > > > <snip previous thread> ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
