Changed sysDescr SNMP request to built in one.

This commit is contained in:
Tom Ferguson
2015-09-18 04:21:21 -04:00
parent c3b7363e03
commit eb1f5c7fcc

View File

@@ -1,8 +1,10 @@
<?php
echo 'Scanning Avaya IP Office...';
$sysObjectID = snmp_get($device, 'sysObjectID.0', '-Oqvn');
$physDevice = snmp_get($device, 'ENTITY-MIB::entPhysicalDescr.1', '-Oqvn');
$version = snmp_get($device, 'SNMPv2-MIB::sysDescr.0', '-Oqvn');
$hardware = snmp_get($device, 'ENTITY-MIB::entPhysicalDescr.1', '-Oqvn');
if (strstr($physDevice, 'Avaya IP Office')) {
$hardware = $physDevice;
}
$version = $poll_device['sysDescr'];