RE: snmpget between systems

Vinod Nanjaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <174230991E95D743B0C91DF471EF44E8434F1C5A87@MTW02MSG02.mindtree.com>

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Friday, March 06, 2009 8:14 PM
To: Vinod Nanjaiah
Cc: [email protected]
Subject: Re: snmpget between systems

2009/3/6 Vinod Nanjaiah <[email protected]>:
> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.