mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
10 lines
309 B
PHP
10 lines
309 B
PHP
<?php
|
|
|
|
$Descr_string = snmp_get($device, "sysDescr.0", "-Oqv", "SNMPv2-MIB");
|
|
$Descr_chopper = preg_split("/[ ]+/", "$Descr_string");
|
|
|
|
$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"));
|
|
|
|
?>
|