librenms/includes/polling/os/ironware.inc.php
2012-05-15 13:45:26 +00:00

16 lines
618 B
PHP

<?php
#FIXME snmp_ function!
$hardware = trim(exec($config['snmpget'] . " -M ".$config['mibdir'] . " -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB " . snmp_gen_auth($device) . " " .
$device['hostname'].":".$device['port'] . " sysObjectID.0"));
$hardware = rewrite_ironware_hardware($hardware);
$version = trim(exec($config['snmpget'] . " -M ".$config['mibdir'] . " -O vqs -m FOUNDRY-SN-AGENT-MIB:FOUNDRY-SN-ROOT-MIB " . snmp_gen_auth($device) . " " .
$device['hostname'].":".$device['port'] . " snAgBuildVer.0"));
$version = str_replace("V", "", $version);
$version = str_replace("\"", "", $version);
?>