Rename Ceragon to CeraOS and add version and serial detection

This commit is contained in:
Guillem Mateos
2016-11-16 12:38:39 +01:00
parent 230ed8466c
commit 5e30d26c96
5 changed files with 15 additions and 10 deletions
+3 -3
View File
@@ -795,9 +795,9 @@ $config['os'][$os]['text'] = 'ZTE ZXR10';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'zte';
// Ceragon
$os = 'ceragon';
$config['os'][$os]['text'] = 'Ceargon';
// Ceragon CeraOS
$os = 'ceraos';
$config['os'][$os]['text'] = 'Ceragon CeraOS';
$config['os'][$os]['type'] = 'wireless';
$config['os'][$os]['icon'] = 'ceragon';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
@@ -3,5 +3,5 @@
$genEquipInventoryCardName = snmp_get($device, 'MWRM-UNIT-MIB::genEquipInventoryCardName.127', '-Osqnv');
if (preg_match('/IP-[1,2]0/', $genEquipInventoryCardName)) {
$os = 'ceragon';
$os = 'ceraos';
}
@@ -1,16 +1,16 @@
<?php
if ($device['os'] == 'ceragon') {
if ($device['os'] == 'ceraos') {
$mib = 'MWRM-UNIT-MIB::genEquipUnitIduTemperature.0';
$oid = ' .1.3.6.1.4.1.2281.10.1.1.9.0';
$oids = snmp_get($device, $mib, '-OsqnU', 'MWRM-UNIT-MIB');
d_echo($oids."\n");
if (!empty($oids)) {
echo ' Ceragon Temperature ';
echo ' Ceragon CeraOS Temperature ';
$divisor = 1;
$type = 'ceragon';
$type = 'ceraos';
list(,$current) = explode(' ', $oids);
$index = $oid;
@@ -1,16 +1,16 @@
<?php
if ($device['os'] == 'ceragon') {
if ($device['os'] == 'ceraos') {
$mib = 'MWRM-UNIT-MIB::genEquipUnitIduVoltageInput.0';
$oid = '.1.3.6.1.4.1.2281.10.1.1.10.0';
$oids = snmp_get($device, $mib, '-OsqnU', 'MWRM-UNIT-MIB');
d_echo($oids."\n");
if (!empty($oids)) {
echo ' Ceragon Voltage ';
echo ' Ceragon CeraOS Voltage ';
$divisor = 1;
$type = 'ceragon';
$type = 'ceraos';
list(,$current) = explode(' ', $oids);
$index = $oid;
+5
View File
@@ -0,0 +1,5 @@
<?php
$hardware = snmp_walk($device, 'MWRM-UNIT-MIB::genEquipInventoryCardName', '-Osqnv');
$serial = snmp_walk($device, 'MWRM-UNIT-MIB::genEquipInventorySerialNumber', '-Osqnv');
$version = snmp_walk($device, 'MWRM-UNIT-MIB::genEquipMngSwIDUVersionsRunningVersion.1', '-Osqnv');