Thanks for the suggestions. It worked after specifying the "-m ALL" options
On Fri, Apr 8, 2011 at 2:18 AM, Dave Shield <[email protected]>wrote:
> 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
>
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders