In Feburary 2016 14,
Right-click the PHP file you want to edit and select 'Open With.' Click your preferred PHP editor.
Use the following function to connect to the device on your network:$device = snmpget('127.0.0.1', 'public', 'system.SysContact.0');Replace the IP address with the IP address of the device you want to access.
Retrieve information about the device. The following code gets a list of data from the device:$data snmp_read_mib('./MIB.txt');Replace 'MIB.txt' with the MIB file that contains the SNMP information on the device.
Print the output to the browser window. The following code prints the data to the browser for your review:print_r( snmprealwalk('$data, 'FOO-BAR-MIB::table' );
In Feburary 2016 14,
No comments:
Post a Comment