-----Original Message----- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Friday, March 06, 2009 8:14 PM To: Vinod Nanjaiah Cc: net-snmp-users@lists.sourceforge.net Subject: Re: snmpget between systems
2009/3/6 Vinod Nanjaiah <vinod_nanja...@mindtree.com>: > If I use the OID I get the correct value, but if I use the name > (myDvrName.0) it throws up an error. > > snmpget -v1 -cpublic 172.22.65.58 1.3.6.1.3.75.1.1.0 > > returns > > SNMPv2-SMI::experimental.75.1.1.0 = STRING: "Hello World" >>Which implies that the MIB defining "experimental.75" is not loaded. > But, > > snmpget -m all -v1 -cpublic 172.22.65.58 myDvrName.0 gives "Unknown Object > Identifier" error. > > [myDvrName.0: Unknown Object Identifier (Sub-id not found: (top) -> > myDvrName)] >>Try loading the MIB that defines "myDvrName" >> >>Given that you're using "-m all", it may be that you still need to copy >>this >>MIB file into the appropriate location (typically either >>>>/usr/share/snmp/mibs or /usr/local/lib/snmp/mibs) Well, it works if I copy the MIB to the system from where I am doing snmpget. But is it supposed to be like that - I mean should the MIBs be in sync on the manager and the agent? >>There's more information about loading MIBs in the FAQ >>Dave http://www.mindtree.com/email/disclaimer.html ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users