mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2863 61d68cd4-352d-0410-923a-c4978735b2b8
9 lines
428 B
PHP
9 lines
428 B
PHP
<?php
|
|
|
|
$fnSysVersion = snmp_get($device, ".1.3.6.1.4.1.388.11.2.2.1.3.2.0", "-Ovq");
|
|
$serial = trim(snmp_get($device, ".1.3.6.1.4.1.388.11.2.2.1.1.0", "-Ovq"),'"');
|
|
$version = trim(snmp_get($device, ".1.3.6.1.4.1.388.11.2.2.1.3.2.0", "-Ovq"),'"');
|
|
//preg_match("/HW=(^\s]+)/",$sysDescr,$hardwarematches);
|
|
preg_match("/\s+[^\s]+/",$poll_device['sysDescr'],$hardwarematches);
|
|
$hardware = $hardwarematches[0];
|
|
?>
|