Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^5: SNMP MIB files...

by Rhys (Pilgrim)
on Oct 07, 2003 at 19:34 UTC ( #297369=note: print w/replies, xml ) Need Help??

in reply to Re^4: SNMP MIB files...
in thread SNMP MIB files...

Additional information: Net-SNMP comes with a handy little script that - if it's in the user's PATH - helps find the site-wide MIBs. E.g.:

$SITE_PREFIX = `net-snmp-config --prefix`; chomp $SITE_PREFIX; $DEF_MIB_DIR = "$SITE_PREFIX/share/snmp/mibs";
I should be able to create a subdirectory under that named after my package, then subdirs as usual. Then use the addMibDir() trick above combined with the readdir() method suggested by idsfa, and I think we're there!

I'll still want to add some exception handling code for the cases where net-snmp-config can't be found or the MIB files were moved (e.g. can't stat "$SITE_PREFIX/share/snmp/mibs"), and some other stuff. Might put some user-prompting in there for help, but this is getting close.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://297369]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-11-29 23:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found