Re: Unknown Object Identifier - HOST MIBS

This is a discussion on Re: Unknown Object Identifier - HOST MIBS within the SNMP Users forums, part of the Networking and Network Related category; On Tue, 2005-11-29 at 08:13 -0800, Tam Vo wrote: > Thank you for the suggestion. I tried &...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-30-2005
Dave Shield
 
Posts: n/a
Default Re: Unknown Object Identifier - HOST MIBS

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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:38 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0