Snip
>
>On 26 January 2011 21:45, Sorrell, Al <[email protected]> wrote:
>> I have two different servers, one with 5.4.2.1 and the other with
>> 5.6.1rc2....
>> On both, I have the same set of MIB files in /usr/local/share/snmp/mibs
>
>Silly question time:
> Does this directory include the file 'ENTITY-MIB.txt' ?
>
Both contain ENTITY-MIB.my, not .txt
--
-- This mib was extracted from RFC 2737
-- Entity MIB version 2
ENTITY-MIB DEFINITIONS ::= BEGIN
>
>> On 5.4.2.1, I can retrieve from the ENTITY-MIB as shown below;
>> on 5.6.1.rc2, it gives me "Unknown Object Identifier".
>
>What happens if you try to retrieve the same value using the numeric OID?
>i.e.
> snmpget .... rta .1.3.6.1.2.1.47.1.1.1.11.5000
nothing, but I think you mean .1.3.6.1.2.1.47.1.1.1.1.11.5000, in which case:
5.4.2.1:
$ /usr/local/bin/snmpget -v 2c -c ROcomm rta .1.3.6.1.2.1.47.1.1.1.1.11.5000
ENTITY-MIB::entPhysicalSerialNum.5000 = STRING: JAE1219HEWA
5.6.1 rc2:
/usr/local/bin/snmpget -v 2c -c ROcomm rta .1.3.6.1.2.1.47.1.1.1.1.11.5000
ENTITY-MIB::entPhysicalEntry.11.5000 = STRING: "JAE1219HEWA"
^^
>
>
>> Also, the output presentation of a basic snmpwalk is quite different
>> between the two different versions.
>
>It's looking suspiciously as if the two systems might be looking in
>different places to find the MIB files.
>
>Try running the following command on the two systems:
>
> snmpget -Dparse-mibs 2>&1 | grep -i directory
5.4.2.1:
$ /usr/local/bin/snmpget -Dparse-mibs 2>&1 | grep -i directory
parse-mibs: Scanning directory /export/home/netapps/.snmp/mibs
parse-mibs: cannot open MIB directory /export/home/netapps/.snmp/mibs
parse-mibs: Scanning directory /usr/local/share/snmp/mibs
5.6.1 rc2:
$ /usr/local/bin/snmpget -Dparse-mibs 2>&1 | grep -i directory
parse-mibs: Scanning directory /export/home/netapps/.snmp/mibs
parse-mibs: cannot open MIB directory /export/home/netapps/.snmp/mibs
parse-mibs: Scanning directory /usr/local/share/snmp/mibs
>
>What do you see in each case?
>
>
>
>> $ /usr/local/bin/snmpget -v 2c -c ROcomm rta entPhysicalSerialNum.5000
>> ENTITY-MIB::entPhysicalSerialNum.5000 = STRING: JAE1219HEWA
>[or]
>> entPhysicalSerialNum.5000: Unknown Object Identifier
>
>
>What happens if you try
>
> snmpget .... rta ENTITY-MIB::entPhysicalSerialNum.5000
5.4.2.1:
$ /usr/local/bin/snmpget -v 2c -c ROcomm rta
ENTITY-MIB::entPhysicalSerialNum.5000
ENTITY-MIB::entPhysicalSerialNum.5000 = STRING: JAE1219HEWA
5.6:
/usr/local/bin/snmpget -v 2c -c ROcomm rta ENTITY-MIB::entPhysicalSerialNum.5000
No log handling enabled - using stderr logging
ENTITY-MIB::entPhysicalSerialNum.5000: Unknown Object Identifier
Thanks,
Al
>?
>
>Dave
T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its
associates do not provide legal or tax advice. Any tax-related discussion
contained in this e-mail, including any attachments, is not intended or written
to be used, and cannot be used, for the purpose of (i) avoiding any tax
penalties or (ii) promoting, marketing, or recommending to any other party any
transaction or matter addressed herein. Please consult your independent legal
counsel and/or professional tax advisor regarding any legal or tax issues
raised in this e-mail.
The contents of this e-mail and any attachments are intended solely for the use
of the named addressee(s) and may contain confidential and/or privileged
information. Any unauthorized use, copying, disclosure, or distribution of the
contents of this e-mail is strictly prohibited by the sender and may be
unlawful. If you are not the intended recipient, please notify the sender
immediately and delete this e-mail.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
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