Hướng dẫn dùng mib snmp trong PHP
(PHP 5, PHP 7, PHP 8) snmp_read_mib — Reads and parses a MIB file into the active MIB tree snmp_read_mib(string The order in which the MIBs are loaded does matter as the underlying Net-SNMP library will print warnings if referenced objects cannot be resolved. Parámetrosfilename The filename of the MIB. Valores devueltos Devuelve EjemplosEjemplo #1 Using snmp_read_mib()
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 ) jdhall75 at yahoo dot com ¶ 14 years ago
ptitgal at hotmail dot com ¶ 16 years ago
|