Re: About mib2c

This is a discussion on Re: About mib2c within the SNMP Users forums, part of the Networking and Network Related category; On 13/10/06, Clement Hsu <m934020022@gmail.com> wrote: > export MIBS=3DALL > mib2c netSnmpExamples Try ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-13-2006
Dave Shield
 
Posts: n/a
Default Re: About mib2c

On 13/10/06, Clement Hsu <m934020022@gmail.com> wrote:
> export MIBS=3DALL
> mib2c netSnmpExamples


Try
mib2c NET-SNMP-EXAMPLES-MIB::netSnmpExamples

What does that say?


> Snmptranslate =96IR netSnmpExamples
> The result is
> NET-SNMP-EXAMPLES-MIB::netSnmpExamples


> That means, the agent still can find out netSnmpExamples


No - it means that the "snmptranslate" command can find out netSnmpExamples.
Not necessarily the agent.

It's a good indication that the agent (and mib2c) *should* be able to
find out netSnmpExamples, but you must be wary of jumping to
conclusions.


> So , I try to write
>
> netSnmpExamples Object Identifier::=3D{netSnmp 2}
>
> into its imported MIB, NET-SNMP-MIB, to make sure the snmp agent can find
> the valid oid from NET-SNMP-MIB to NET-SNMP-EXAMPLES-MIB


No - you do *NOT* need to do that, and it won't help anyway.
Defining this object in NET-SNMP-MIB won't make any difference to
whether mib2c loads the NET-SNMP-EXAMPLES-MIB or not. And if it
doesn't then it can't generate code for this tree - even if it can
understand the root name.

You do *NOT* need to edit any of the MIB files.


Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...63057&dat=3D1=
21642
_______________________________________________
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 12:43 AM.


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