8 lines
272 B
PHP
Raw Normal View History

2014-03-13 06:04:30 -07:00
<?php
$Descr_string = $poll_device['sysDescr'];
2015-07-13 20:10:26 +02:00
$Descr_chopper = preg_split('/[ ]+/', "$Descr_string");
2014-03-13 06:04:30 -07:00
2015-07-13 20:10:26 +02:00
$version = 'Firmware '.$Descr_chopper[1];
$hardware = $Descr_chopper[0].' Rev. '.str_replace('"', '', snmp_get($device, '1.3.6.1.4.1.171.10.76.10.1.2.0', '-Oqv'));