1 | <?php |
||
2 | |||
3 | // Format of sysDescr is hardware model followed by version followed by build date |
||
4 | $tempstr = substr($device['sysDescr'], 0, strrpos($device['sysDescr'], ' ')); |
||
5 | $version = trim(substr($tempstr, strrpos($tempstr, ' '))); |
||
6 | $hardware = trim(substr($tempstr, 0, strrpos($tempstr, ' '))); |
||
7 | |||
8 | // Serial number is in sysName after string "VCEX" |
||
9 | $serial = substr(snmp_get($device, 'sysName.0', '-OvQ', 'SNMPv2-MIB:HOST-RESOURCES-MIB:SNMP-FRAMEWORK-MIB'), 4); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
10 |