Re: private MIB test

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/5/6 CHAHIBI Samira <[email protected]>:

> Now I want to extend my agent. I put my mib file under usr/share/snmp/mibs.
> It is possible now -before writing my functions code on skeleton given by
> mib2c- to test my private MIB by making an snmptranslate and see if the
> agent can translate oids into their litteral form?

That will test whether the library (rather than the agent) can load and parse
your MIB, yes.


> If yes, is it necessery to restart snmpd or something else? because when i
> copied my mib file under usr/share/snmp/mibs and made a snmptranslate, it
> failed:

You need to tell snmptranslate (or any other application) to load the MIB file
Try

    snmptranslate -m YOUR-MIB  1.3.6.1.4.50000.1.1.0

I'll make my usual plea that you don't simply pluck an enterprise number
out of thin air.   Either apply for one officially, or use the netSnmpPlayPen
area for testing.

You've actually chosen a number that hasn't already been allocated.
Though I'm not sure whether enterprise numbers aren't limited to
32,000-odd, so using 50000 may possibly cause problems.
(But I could be being unduly pessimistic there)

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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.