PHP Class for net-snmp commands
PHP Class for net-snmp commands, (*1)
Requires: net-snmp-utils, (*2)
For RedHat/CentOS 6, 7, (*3)
[root@centos ~]# yum install net-snmp-utils
$ composer require nelisys/snmp
Example php file., (*4)
// test-snmp.php require 'vendor/autoload.php'; use Nelisys\Snmp; $snmp = new Snmp('127.0.0.1', 'public'); print_r($snmp->get('.1.3.6.1.2.1.1.1.0'));
Test run php file., (*5)
$ php test-snmp.php Array ( [.1.3.6.1.2.1.1.1.0] => Linux test.example.com )