mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-03-01 16:33:45 +01:00
Start again
This commit is contained in:
15
lib/OSS_SNMP-master/examples/system-info.php
Normal file
15
lib/OSS_SNMP-master/examples/system-info.php
Normal file
@@ -0,0 +1,15 @@
|
||||
#! /usr/bin/php
|
||||
<?php
|
||||
$ip = '127.0.0.1';
|
||||
$community = 'public';
|
||||
require_once( dirname( __FILE__ ) . '/../OSS_SNMP/SNMP.php' );
|
||||
|
||||
$host = new \OSS_SNMP\SNMP( $ip, $community );
|
||||
|
||||
echo "\nSystem information for {$ip}:\n\n";
|
||||
|
||||
print_r( $host->useSystem()->getAll() );
|
||||
|
||||
echo "\n\n";
|
||||
|
||||
exit( 0 );
|
||||
Reference in New Issue
Block a user