Files
librenms/includes/osdiscovery/discover-screenos.php
T
2009-02-02 16:00:11 +00:00

13 lines
310 B
PHP
Executable File

<?php
if(!$os) {
var_dump($port);
$sysObjectId = shell_exec($config['snmpget'] . " -Ovq -v2c -c ". $community ." ". $hostname.":".$port ." .1.3.6.1.2.1.1.2.0");
if(strstr($sysObjectId, "netscreen")) { $os = "ScreenOS"; } elseif (strstr($sysObjectId, "enterprises.3224.1")) { $os = "ScreenOS"; }
}
?>