Re: Unknown Object Identifier - HOST MIBS
Tam Vo <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <OF05EDAF98.6F582458-ON882570C8.0056EF40-882570C8.00591950@mck.us.ray.com> |
Thank you for the suggestion. I tried
snmpget -Dparse-mibs -v 1 -c public localhost hrSystemDate
and it found all of the MIBS, including HOST-RESOURCES-MIB.txt (Module
25) and HOST-RESOURCES-TYPES.txt (Module 26) under
/usr/local/share/snmp/mibs. I also noticed that it imports a lot of the
other MIBS (IP-MIB, SNMPv2-SMI, mib-2, IF-MIB), but not Module 25
HOST-RESOURCES-MIBS. For some reason, it does not load
HOST-RESOURCES-MIB. Therefore, it gave me the same error
Unknown Object Identifier (sub-id not found:(top) -> hrSystemDate)
The next thing I tried was
snmpget -Dparse-mibs -v 1 -c public localhost
HOST-RESOURCES-MIB::hrSystemDate
I observed Processing IMPORTS for module 25 HOST-RESOURCES-MIB
Processing import: mib-2
Processing import: DisplayString
........................
Processing import: InterfaceIndexOrZero
Then the error
Error in packet
Reason: (nosuchname) There is no such variable in this MIB.
Failed Object: HOST-RESOURCE-MIB::hrSystemDate
Is it possible that the header in my HOST-RESOURCES-MIB.txt is incorrect?
It was installed directly from net-snmp-5.0.10.1.tar.gz. I verified
several times the field hrSystemDate is in the HOST-RESOURCES-MIB.txt
Tam
Dave Shield <[email protected]>
11/29/2005 01:24 AM
To
Tam Vo <[email protected]>
cc
[email protected]
Subject
Re: Unknown Object Identifier - HOST MIBS
On Mon, 2005-11-28 at 17:42 -0800, Tam Vo wrote:
>
> Everytime I tried accessing information in the HOST-RESOURCES-MIB,
> both locally and remote, I got a Unknown Object Identifier error. For
> example, when I try to perform
>
> snmpget -v 1 -c public localhost hrSystemDate
> I would get an error
> Unknown Object Identifier (sub-id not found:
> (top) -> hrSystemDate
That sounds suspiciously as if the HOST-RESOURCES-MIB file
isn't installed on your system.
Have a look in the various MIB directories - is there a
file "HOST-RESOURCES-MIB.txt" anywhere?
It might also be worth running the command as
snmpget -Dparse-mibs -v 1 -c public localhost hrSystemDate
which should reveal exactly where it's looking.
(Just in case the HostRes MIB file is in the "wrong" place).
Dave