mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-03-01 08:23:45 +01:00
Start again
This commit is contained in:
13
cron/switchs/discover.php
Normal file
13
cron/switchs/discover.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
require_once dirname( __FILE__ ) . '/../../lib/OSS_SNMP-master/SNMP.php'; //Load SNMP
|
||||
|
||||
$ip = $_GET['IP'];
|
||||
|
||||
$host = new \OSS_SNMP\SNMP( $ip, 'public' );
|
||||
|
||||
echo "\nSystem information for {$ip}:\n\n";
|
||||
|
||||
print_r( $host->useSystem()->getAll() );
|
||||
|
||||
echo "\n\n";
|
||||
Reference in New Issue
Block a user