Files
librenms-librenms/includes/osdiscovery/discover-junos.php
T
2008-07-18 12:07:51 +00:00

11 lines
208 B
PHP
Executable File

<?php
if(!$os) {
$sysObjectId = shell_exec($config['snmpget'] . " -Ovqn -v2c -c ". $community ." ". $hostname ." sysObjectID.0");
if(strstr($sysObjectId, ".1.3.6.1.4.1.2636")) { $os = "JunOS"; }
}
?>