|Store copies of your important files online for free.||HOME|
snmp_read_mib — Reads and parses a MIB file into the active MIB tree
This function is used to load additional, e.g. vendor specific, MIBs so that human readable OIDs like VENDOR-MIB::foo.1 instead of error prone numeric OIDs can be used.
The order in which the MIBs are loaded does matter as the underlying Net-SNMP libary will print warnings if referenced objects cannot be resolved.
The filename of the MIB.
Example #1 Using snmp_read_mib()
print_r( snmprealwalk('localhost', 'public', '.18.104.22.168.22.214.171.124.4.5') );
print_r( snmprealwalk('localhost', 'public', 'FOO-BAR-MIB::someTable' );
The above example is made up but the results would look like:
Array ( [iso.126.96.36.199.188.8.131.52.5.0] => Gauge32: 6 ) Array ( [FOO-BAR-MIB::someTable.0] => Gauge32: 6 )