librenms/includes/osdiscovery/discover-junos.php
2009-02-02 16:00:11 +00:00

11 lines
218 B
PHP
Executable File

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