David Bell a98bfdb6fb newdevice: Add F5 Hardware and S/N detection (#5797)
* Add detection for hardware and serial number

* Removed redundant options

* Trim "'a

* Wrong quote
2017-02-06 19:15:44 +00:00

5 lines
250 B
PHP

<?php
$version = trim(snmp_get($device, '.1.3.6.1.4.1.3375.2.1.4.2.0', '-OQv'), '"');
$hardware = trim(snmp_get($device, '.1.3.6.1.4.1.3375.2.1.3.5.2.0', '-OQv'), '"');
$serial = trim(snmp_get($device, '.1.3.6.1.4.1.3375.2.1.3.3.3.0', '-OQv'), '"');