updated os name

This commit is contained in:
walrus
2016-07-03 17:13:23 -05:00
parent c0be0f4cc2
commit ac2f4ff158
3 changed files with 6 additions and 5 deletions

View File

@@ -15,9 +15,9 @@
if (!$os) {
if (preg_match('/NetVanta/', $sysDescr)) {
$os = 'adtran';
$os = 'adtran-aos';
}
elseif (strstr($sysObjectId, '.1.3.6.1.4.1.664')) {
$os = 'adtran';
$os = 'adtran-aos';
}
}

View File

@@ -13,9 +13,9 @@
*/
if ($device['os'] == 'adtran') {
if ($device['os'] == 'adtran-aos') {
echo 'AdTran AOS Netvanta:';
echo 'ADTRAN AOS:';
$descr = 'Processor';
$usage = snmp_get($device, '.1.3.6.1.4.1.664.5.53.1.4.1.0', '-Ovq');
echo "This is the CP info AAAA $usage AAAA";
@@ -24,3 +24,4 @@ if ($device['os'] == 'adtran') {
discover_processor($valid['processor'], $device, '.1.3.6.1.4.1.664.5.53.1.4.1.0', '0', 'adtran', $descr, '1', $usage, null, null);
}
}