2016-01-03 18:17:55 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
// SNMPv2-SMI::enterprises.1602.1.1.1.1.0 = STRING: "MF8500C Series"
|
2016-09-28 08:19:28 -05:00
|
|
|
$hardware = trim(snmp_get($device, 'SNMPv2-SMI::enterprises.1602.1.1.1.1.0', '-OQv'), '" ');
|
2016-01-03 18:17:55 +01:00
|
|
|
|
|
|
|
|
// SNMPv2-SMI::mib-2.43.5.1.1.17.1 = STRING: "QJY44712"
|
2016-09-28 08:19:28 -05:00
|
|
|
$serial = trim(snmp_get($device, 'SNMPv2-SMI::mib-2.43.5.1.1.17.1', '-OQv'), '" ');
|
2016-01-03 18:17:55 +01:00
|
|
|
|
|
|
|
|
// SNMPv2-SMI::enterprises.1602.1.1.1.4.0 = STRING: "03.03"
|
2016-09-28 08:19:28 -05:00
|
|
|
$version = trim(snmp_get($device, 'SNMPv2-SMI::enterprises.1602.1.1.1.4.0', '-OQv'), '" ');
|
2016-01-03 18:17:55 +01:00
|
|
|
|
|
|
|
|
// Strip off useless brand fields
|
|
|
|
|
$hardware = str_ireplace(' Series', '', $hardware);
|