Re: About mib2c

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 13/10/06, Clement Hsu <[email protected]> wrote:
> export MIBS=ALL
> mib2c netSnmpExamples

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

What does that say?


>   Snmptranslate –IR 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::={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 easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.