1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-14 09:11:34 +01:00
Files
CheckServer/cron/switchs/discover.php
2020-10-04 17:14:00 +02:00

13 lines
271 B
PHP

<?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";