Re: Unknown Object Identifier - HOST MIBS
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2005-11-29 at 08:13 -0800, Tam Vo wrote:
> 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
Good - so the HOST-RESOURCES-MIB is in the correct location.
> 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.
No - the command line tools don't load all MIBs automatically.
They have a fixed list of MIBs to load, and you have to explicitly
add any extra ones to this. See the FAQ entry
How do I add a MIB to the tools?
> The next thing I tried was
> snmpget -Dparse-mibs -v 1 -c public localhost
> HOST-RESOURCES-MIB::hrSystemDate
That should indeed load the HostRes MIB file.
> Then the error
> Error in packet
> Reason: (nosuchname) There is no such variable in this MIB.
> Failed Object: HOST-RESOURCE-MIB::hrSystemDate
Note that this is now an error from the remote agent.
Previously, the tools were telling you that they didn't know
what to ask for. Now, the tools are asking for something,
and the agent is saying "No".
As Robert has said, you've forgotten '.0' instance subidentifier.
Try
snmpget -v 1 -c public localhost HOST-RESOURCES-MIB::hrSystemDate.0
> Is it possible that the header in my HOST-RESOURCES-MIB.txt is
> incorrect?
No - the file is fine. See above.
Dave
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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