On 7 April 2011 20:37, akshata s harkantra <[email protected]> wrote: > I am using snmpget command using v3 for retrieving the variable. > > snmpget -v 3 -u testuser -l noAuthNoPriv localhost:161 myHwType.0 > > However, it always throws an error of "Unknown Object Identifier" only for V3. > For v2 it works fine. Also, If I specify the OID it gives the output for both > V2 and V3.
Hmmmm.... that doesn't really make sense. The error "Unknown Object Identifier" indicates a problem on the client side (i.e. snmpget) in converting the name 'myHwType' into the equivalent numeric OID. That is completely unrelated to the version of SNMP used for sending the request. So if this fails with v3, then it should fail with v2 as well. Conversely, if the conversion works with v2, there's no reason why it should fail to work with v3. All I can think is that there's some subtle difference between the two commands, over and above the version-specific parameters. As Manjit suggests, please post the exact commands that you are using. It might also be worth specifying the name in the form MIB::object rather than just the object name alone. Dave ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
