Pull card serial numbers. Unsure if this what we want.

Set ifName as the primary port name.
This commit is contained in:
Tony Murray
2016-02-08 10:29:55 -06:00
parent 6f31755dfb
commit 799bb4dc5d
2 changed files with 3 additions and 1 deletions

View File

@@ -315,6 +315,7 @@ $config['os'][$os]['over'][0]['text'] = 'Traffic';
$os = 'calix';
$config['os'][$os]['text'] = 'Calix E7';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['ifname'] = 1;
$config['os'][$os]['icon'] = 'calix';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';

View File

@@ -1,5 +1,6 @@
<?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),'"');
$version = strtok(snmp_walk($device, "e7CardSoftwareVersion.1", "-OQv", "E7-Calix-MIB"), PHP_EOL);
$hardware = "Calix " . $poll_device['sysDescr'];
$features = str_replace(PHP_EOL, ', ', snmp_walk($device, "e7CardProvType", "-OQv", "E7-Calix-MIB"));
$serial = str_replace(PHP_EOL, ', ', snmp_walk($device, "e7CardSerialNumber", "-OQv", "E7-Calix-MIB"));