php man page for snmp_read_mib

Query: snmp_read_mib

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SNMP_READ_MIB(3)							 1							  SNMP_READ_MIB(3)

snmp_read_mib - Reads and parses a MIB file into the active MIB tree

SYNOPSIS
bool snmp_read_mib (string $filename)
DESCRIPTION
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.
PARAMETERS
o $filename -The filename of the MIB.
EXAMPLES
Example #1 Using snmp_read_mib(3) <?php print_r( snmprealwalk('localhost', 'public', '.1.3.6.1.2.1.2.3.4.5') ); snmp_read_mib('./FOO-BAR-MIB.txt'); print_r( snmprealwalk('localhost', 'public', 'FOO-BAR-MIB::someTable' ); ?> The above example is made up but the results would look like: Array ( [iso.3.6.1.2.1.2.3.4.5.0] => Gauge32: 6 ) Array ( [FOO-BAR-MIB::someTable.0] => Gauge32: 6 ) PHP Documentation Group SNMP_READ_MIB(3)
Related Man Pages
snmpset(3) - php
snmprealwalk(3) - php
snmp3_set(3) - php
snmp::info::layer3::arista(3pm) - debian
snmp::mib::compiler(3pm) - debian
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch