jettero has asked for the wisdom of the Perl Monks concerning the following question:

I started messin' around with the Net::SNMP package. I was soon dissapointed to discover that I had to use the numbers... so I found SNMP::MIB::Compiler.

Wow, I can get it to do some words if I compile all the mibs on my harddrive. The only way I could do that though, was to put all their names after an __END__ block and compile them while(<DATA>) { chomp; $mib->compile($_); } That took a while to figure out though. I sure wish there were some examples somewhere. Cuz that seems like a lame ass way to have to do it (just to resolve 1 or 2 oids).

  1. How do people that're good at snmp get it to load mibs dynamically? And can that be done in perl?
  2. I observed that for ascend mibs, the filename (ascend.mib) doesn't match up with the begin block (ASCEND-MIB DEFINITIONS ::= BEGIN) That seems to break SNMP::MIB::Compiler since other ascend mibs try to import ASCEND-MIB. Is there a way around that?