Use poll_device;

List the inserted cards in "features".
This commit is contained in:
Tony Murray
2016-02-05 18:14:44 -06:00
parent 4aa9838eda
commit 6f31755dfb

View File

@@ -1,4 +1,5 @@
<?php <?php
// Device might not have a card 1 (or even card2 if it is an E7-20) // 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),'"'); $version = trim(strtok(snmp_walk($device, "e7CardSoftwareVersion.1", "-OQv", "E7-Calix-MIB"), PHP_EOL),'"');
$hardware = "Calix " . trim(snmp_get($device, "sysDescr.0", "-OQv"),'"'); $hardware = "Calix " . $poll_device['sysDescr'];
$features = str_replace(PHP_EOL, ', ', snmp_walk($device, "e7CardProvType", "-OQv", "E7-Calix-MIB"));