nelisys / snmp
PHP Class for net-snmp commands
Installs: 5 139
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 11
Open Issues: 1
This package is auto-updated.
Last update: 2025-01-11 23:03:09 UTC
README
PHP Class for net-snmp commands
Requirements
Requires: net-snmp-utils
For RedHat/CentOS 6, 7
[root@centos ~]# yum install net-snmp-utils
Installation with Composer
$ composer require nelisys/snmp
Usage
Example php file.
// 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.
$ php test-snmp.php
Array
(
[.1.3.6.1.2.1.1.1.0] => Linux test.example.com
)