mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
5 lines
257 B
PHP
5 lines
257 B
PHP
|
<?php
|
||
|
// Device might not have a card 1 (or even card2 if it is an E7-20)
|
||
|
$version = trim(strtok(snmp_walk($device, "e7CardSoftwareVersion.1", "-OQv", "E7-Calix-MIB"), PHP_EOL),'"');
|
||
|
$hardware = "Calix " . trim(snmp_get($device, "sysDescr.0", "-OQv"),'"');
|