librenms/includes/polling/os/ironware.inc.php
2015-07-11 16:12:35 +02:00

20 lines
627 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);