mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
SIAE Radio: add additional sensors and data (#11498)
* SIAE add additional sensors and data Improved labels Modulation Rate Serial Number Hardware name * Add total rates * was supposed to be divisor * Short array syntax
This commit is contained in:
@@ -3,20 +3,97 @@
|
||||
namespace LibreNMS\OS;
|
||||
|
||||
use LibreNMS\Device\WirelessSensor;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRssiDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessMseDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRateDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessRssiDiscovery;
|
||||
use LibreNMS\OS;
|
||||
|
||||
class SmOs extends OS implements
|
||||
WirelessRateDiscovery,
|
||||
WirelessRssiDiscovery,
|
||||
WirelessFrequencyDiscovery,
|
||||
WirelessMseDiscovery
|
||||
{
|
||||
private $radioLabels;
|
||||
private $linkLabels;
|
||||
|
||||
public function discoverWirelessRate()
|
||||
{
|
||||
$oids = snmpwalk_group($this->getDevice(), 'linkTxETHCapacity', 'SIAE-RADIO-SYSTEM-MIB', 2);
|
||||
$oids = snmpwalk_group($this->getDevice(), 'linkRxETHCapacity', 'SIAE-RADIO-SYSTEM-MIB', 2, $oids);
|
||||
$sensors = [];
|
||||
|
||||
foreach ($oids as $link => $radioEntry) {
|
||||
$totalOids = ['rx' => [], 'tx' => []];
|
||||
|
||||
foreach ($radioEntry as $radio => $entry) {
|
||||
$index = "$link.$radio";
|
||||
if (isset($entry['linkTxETHCapacity'])) {
|
||||
$txOid = '.1.3.6.1.4.1.3373.1103.80.17.1.10.' . $index;
|
||||
$totalOids['tx'][] = $txOid;
|
||||
$sensors[] = new WirelessSensor(
|
||||
'rate',
|
||||
$this->getDeviceId(),
|
||||
$txOid,
|
||||
'tx',
|
||||
$index,
|
||||
$this->getLinkLabel($link) . ' Tx ' . $this->getRadioLabel($radio),
|
||||
$entry['linkTxETHCapacity'],
|
||||
1000
|
||||
);
|
||||
}
|
||||
|
||||
if (isset($entry['linkRxETHCapacity'])) {
|
||||
$rxOid = '.1.3.6.1.4.1.3373.1103.80.17.1.11.' . $index;
|
||||
$totalOids['rx'][] = $rxOid;
|
||||
$sensors[] = new WirelessSensor(
|
||||
'rate',
|
||||
$this->getDeviceId(),
|
||||
$rxOid,
|
||||
'rx',
|
||||
$index,
|
||||
$this->getLinkLabel($link) . ' Rx ' . $this->getRadioLabel($radio),
|
||||
$entry['linkRxETHCapacity'],
|
||||
1000
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($totalOids['rx'])) {
|
||||
$sensors[] = new WirelessSensor(
|
||||
'rate',
|
||||
$this->getDeviceId(),
|
||||
$totalOids['rx'],
|
||||
'total-rx',
|
||||
$index,
|
||||
$this->getLinkLabel($link) . ' Total Rx',
|
||||
array_sum(array_column($radioEntry, 'linkRxETHCapacity')),
|
||||
1000
|
||||
);
|
||||
}
|
||||
|
||||
if (!empty($totalOids['tx'])) {
|
||||
$sensors[] = new WirelessSensor(
|
||||
'rate',
|
||||
$this->getDeviceId(),
|
||||
$totalOids['tx'],
|
||||
'total-tx',
|
||||
$index,
|
||||
$this->getLinkLabel($link) . ' Total Tx',
|
||||
array_sum(array_column($radioEntry, 'linkTxETHCapacity')),
|
||||
1000
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $sensors;
|
||||
}
|
||||
|
||||
public function discoverWirelessRssi()
|
||||
{
|
||||
$oids = snmpwalk_cache_oid($this->getDevice(), 'radioPrx', array(), 'SIAE-RADIO-SYSTEM-MIB');
|
||||
$sensors = array();
|
||||
$oids = snmpwalk_cache_oid($this->getDevice(), 'radioPrx', [], 'SIAE-RADIO-SYSTEM-MIB');
|
||||
$sensors = [];
|
||||
|
||||
foreach ($oids as $index => $entry) {
|
||||
$sensors[] = new WirelessSensor(
|
||||
@@ -25,7 +102,8 @@ class SmOs extends OS implements
|
||||
'.1.3.6.1.4.1.3373.1103.80.12.1.3.' . $index,
|
||||
'sm-os',
|
||||
$index,
|
||||
'RSSI Radio ' . $index
|
||||
$this->getRadioLabel($index),
|
||||
$entry['radioPrx']
|
||||
);
|
||||
}
|
||||
return $sensors;
|
||||
@@ -33,8 +111,8 @@ class SmOs extends OS implements
|
||||
|
||||
public function discoverWirelessFrequency()
|
||||
{
|
||||
$oids = snmpwalk_cache_oid($this->getDevice(), 'radioTxFrequency', array(), 'SIAE-RADIO-SYSTEM-MIB');
|
||||
$sensors = array();
|
||||
$oids = snmpwalk_cache_oid($this->getDevice(), 'radioTxFrequency', [], 'SIAE-RADIO-SYSTEM-MIB');
|
||||
$sensors = [];
|
||||
|
||||
foreach ($oids as $index => $entry) {
|
||||
$sensors[] = new WirelessSensor(
|
||||
@@ -43,7 +121,10 @@ class SmOs extends OS implements
|
||||
'.1.3.6.1.4.1.3373.1103.80.9.1.4.' . $index,
|
||||
'sm-os',
|
||||
$index,
|
||||
'Tx Frequency ' . $index
|
||||
'Tx ' . $this->getRadioLabel($index),
|
||||
$entry['radioTxFrequency'],
|
||||
1,
|
||||
1000
|
||||
);
|
||||
}
|
||||
return $sensors;
|
||||
@@ -51,8 +132,8 @@ class SmOs extends OS implements
|
||||
|
||||
public function discoverWirelessMse()
|
||||
{
|
||||
$oids = snmpwalk_cache_oid($this->getDevice(), 'radioNormalizedMse', array(), 'SIAE-RADIO-SYSTEM-MIB');
|
||||
$sensors = array();
|
||||
$oids = snmpwalk_cache_oid($this->getDevice(), 'radioNormalizedMse', [], 'SIAE-RADIO-SYSTEM-MIB');
|
||||
$sensors = [];
|
||||
|
||||
foreach ($oids as $index => $entry) {
|
||||
$sensors[] = new WirelessSensor(
|
||||
@@ -61,9 +142,28 @@ class SmOs extends OS implements
|
||||
'.1.3.6.1.4.1.3373.1103.80.12.1.5.' . $index,
|
||||
'sm-os',
|
||||
$index,
|
||||
'MSE Radio ' . $index
|
||||
$this->getRadioLabel($index),
|
||||
$entry['radioNormalizedMse']
|
||||
);
|
||||
}
|
||||
return $sensors;
|
||||
}
|
||||
|
||||
public function getRadioLabel($index)
|
||||
{
|
||||
if (is_null($this->radioLabels)) {
|
||||
$this->radioLabels = snmpwalk_group($this->getDevice(), 'radioLabel', 'SIAE-RADIO-SYSTEM-MIB');
|
||||
}
|
||||
|
||||
return $this->radioLabels[$index]['radioLabel'] ?? $index;
|
||||
}
|
||||
|
||||
public function getLinkLabel($index)
|
||||
{
|
||||
if (is_null($this->linkLabels)) {
|
||||
$this->linkLabels = snmpwalk_group($this->getDevice(), 'linkLabel', 'SIAE-RADIO-SYSTEM-MIB');
|
||||
}
|
||||
|
||||
return $this->linkLabels[$index]['linkLabel'] ?? $index;
|
||||
}
|
||||
}
|
||||
|
61
includes/discovery/sensors/state/sm-os.inc.php
Normal file
61
includes/discovery/sensors/state/sm-os.inc.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
use LibreNMS\OS;
|
||||
|
||||
$modulation = snmpwalk_group($device, 'linkAcmRxModulation', 'SIAE-RADIO-SYSTEM-MIB', 2);
|
||||
$modulation = snmpwalk_group($device, 'linkAcmTxModulation', 'SIAE-RADIO-SYSTEM-MIB', 2, $modulation);
|
||||
|
||||
$state_name = 'smosLinkAcmModulation';
|
||||
$states = [
|
||||
['value' => 1, 'generic' => 0, 'graph' => 1, 'descr' => 'BPSK'],
|
||||
['value' => 2, 'generic' => 0, 'graph' => 1, 'descr' => '4QAM'],
|
||||
['value' => 3, 'generic' => 0, 'graph' => 1, 'descr' => '8PSK'],
|
||||
['value' => 4, 'generic' => 0, 'graph' => 1, 'descr' => '16QAM'],
|
||||
['value' => 5, 'generic' => 0, 'graph' => 1, 'descr' => '32QAM'],
|
||||
['value' => 6, 'generic' => 0, 'graph' => 1, 'descr' => '64QAM'],
|
||||
['value' => 7, 'generic' => 0, 'graph' => 1, 'descr' => '128QAM'],
|
||||
['value' => 8, 'generic' => 0, 'graph' => 1, 'descr' => '256QAM'],
|
||||
['value' => 9, 'generic' => 0, 'graph' => 1, 'descr' => '512QAM'],
|
||||
['value' => 10, 'generic' => 0, 'graph' => 1, 'descr' => '1024QAM'],
|
||||
['value' => 11, 'generic' => 0, 'graph' => 1, 'descr' => '2048QAM'],
|
||||
['value' => 12, 'generic' => 0, 'graph' => 1, 'descr' => '4096QAM'],
|
||||
];
|
||||
|
||||
|
||||
if (!empty($modulation)) {
|
||||
create_state_index($state_name, $states);
|
||||
}
|
||||
|
||||
if (!$os instanceof OS) {
|
||||
$os = OS::make($device);
|
||||
}
|
||||
|
||||
foreach ($modulation as $link => $linkEntry) {
|
||||
foreach ($linkEntry as $radio => $radioEntry) {
|
||||
$index = "$link.$radio";
|
||||
if (isset($radioEntry['linkAcmRxModulation'])) {
|
||||
discover_sensor(
|
||||
$valid['sensor'],
|
||||
'state',
|
||||
$device,
|
||||
".1.3.6.1.4.1.3373.1103.80.17.1.6.$index",
|
||||
"rx-$index",
|
||||
$state_name,
|
||||
$os->getLinkLabel($link) . ' Rx ' . $os->getRadioLabel($radio)
|
||||
);
|
||||
create_sensor_to_state_index($device, $state_name, "rx-$index");
|
||||
}
|
||||
if (isset($radioEntry['linkAcmTxModulation'])) {
|
||||
discover_sensor(
|
||||
$valid['sensor'],
|
||||
'state',
|
||||
$device,
|
||||
".1.3.6.1.4.1.3373.1103.80.17.1.7.$index",
|
||||
"tx-$index",
|
||||
$state_name,
|
||||
$os->getLinkLabel($link) . ' Tx ' . $os->getRadioLabel($radio)
|
||||
);
|
||||
create_sensor_to_state_index($device, $state_name, "tx-$index");
|
||||
}
|
||||
}
|
||||
}
|
@@ -2,11 +2,14 @@
|
||||
|
||||
$smos_data = snmp_get_multi_oid(
|
||||
$device,
|
||||
['softwareEquipmentReleaseBench1.0','unitPartNumber.1'],
|
||||
'-OUQn',
|
||||
['softwareEquipmentReleaseBench1.0','unitPartNumber.1', 'unitLabel.1', 'unitParentSerialNumber.1'],
|
||||
'-OUQs',
|
||||
'SIAE-SOFT-MIB:SIAE-UNIT-MIB'
|
||||
);
|
||||
$version = $smos_data['.1.3.6.1.4.1.3373.1103.7.2.0'];
|
||||
$hardware = $smos_data['.1.3.6.1.4.1.3373.1103.6.2.1.11.1'];
|
||||
|
||||
|
||||
$version = $smos_data['softwareEquipmentReleaseBench1.0'];
|
||||
$hardware = "{$smos_data['unitLabel.1']} ({$smos_data['unitPartNumber.1']})";
|
||||
$serial = $smos_data['unitParentSerialNumber.1'];
|
||||
|
||||
unset($smos_data);
|
||||
|
@@ -26,7 +26,7 @@
|
||||
"sysDescr": "ALFOplus2 - SIAE Microelettronica",
|
||||
"sysContact": "<private>",
|
||||
"version": "N50052 01.05.00",
|
||||
"hardware": "GC8503",
|
||||
"hardware": " (GC8503)",
|
||||
"features": null,
|
||||
"os": "sm-os",
|
||||
"type": "wireless",
|
||||
@@ -51,9 +51,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -143,9 +145,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -158,9 +158,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 2,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -250,9 +252,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -265,9 +265,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 3,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -357,9 +359,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -372,9 +372,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 4,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -464,9 +466,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -479,9 +479,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 5,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -571,9 +573,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -586,9 +586,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 6,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -678,9 +680,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -693,9 +693,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 7,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -785,9 +787,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -800,9 +800,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 8,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -892,9 +894,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -907,9 +907,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 9,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -999,9 +1001,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1014,9 +1014,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 10,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -1106,9 +1108,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1121,9 +1121,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 21,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
@@ -1213,9 +1215,7 @@
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1232,9 +1232,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": 100000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 100,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "up",
|
||||
@@ -1324,9 +1326,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1339,9 +1339,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 2,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "down",
|
||||
@@ -1431,9 +1433,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1446,9 +1446,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 3,
|
||||
"ifSpeed": 2500000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 2500,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": "up",
|
||||
"ifAdminStatus": "up",
|
||||
@@ -1538,9 +1540,7 @@
|
||||
"ifOutMulticastPkts": 4901035,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1553,9 +1553,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 4,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "down",
|
||||
@@ -1645,9 +1647,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1660,9 +1660,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 5,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "down",
|
||||
@@ -1752,9 +1754,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1767,9 +1767,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 6,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": "up",
|
||||
"ifAdminStatus": "up",
|
||||
@@ -1859,9 +1861,7 @@
|
||||
"ifOutMulticastPkts": 4866491,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1874,9 +1874,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 7,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "down",
|
||||
@@ -1966,9 +1968,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -1981,9 +1981,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 8,
|
||||
"ifSpeed": 2500000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 2500,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": "up",
|
||||
"ifAdminStatus": "up",
|
||||
@@ -2073,9 +2075,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -2088,9 +2088,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 9,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "down",
|
||||
@@ -2180,9 +2182,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -2195,9 +2195,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 10,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "down",
|
||||
"ifOperStatus_prev": "down",
|
||||
"ifAdminStatus": "down",
|
||||
@@ -2287,9 +2289,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
},
|
||||
{
|
||||
"port_descr_type": null,
|
||||
@@ -2302,9 +2302,11 @@
|
||||
"portName": null,
|
||||
"ifIndex": 21,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": "false",
|
||||
"ifPromiscuousMode": "false",
|
||||
"ifHighSpeed": 1000,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": "up",
|
||||
"ifAdminStatus": "up",
|
||||
@@ -2394,9 +2396,7 @@
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifHighSpeed_prev": null
|
||||
"ifOutMulticastPkts_rate": null
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2448,7 +2448,7 @@
|
||||
"sensor_class": "mse",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "MSE Radio 1",
|
||||
"sensor_descr": "1",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2469,7 +2469,7 @@
|
||||
"sensor_class": "mse",
|
||||
"sensor_index": "2",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "MSE Radio 2",
|
||||
"sensor_descr": "2",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2490,7 +2490,7 @@
|
||||
"sensor_class": "rssi",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "RSSI Radio 1",
|
||||
"sensor_descr": "1",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2511,7 +2511,7 @@
|
||||
"sensor_class": "rssi",
|
||||
"sensor_index": "2",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "RSSI Radio 2",
|
||||
"sensor_descr": "2",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2532,8 +2532,8 @@
|
||||
"sensor_class": "frequency",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "Tx Frequency 1",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_descr": "Tx 1",
|
||||
"sensor_divisor": 1000,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 6271365,
|
||||
@@ -2557,7 +2557,7 @@
|
||||
"sensor_class": "mse",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "MSE Radio 1",
|
||||
"sensor_descr": "1",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2578,7 +2578,7 @@
|
||||
"sensor_class": "mse",
|
||||
"sensor_index": "2",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "MSE Radio 2",
|
||||
"sensor_descr": "2",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2599,7 +2599,7 @@
|
||||
"sensor_class": "rssi",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "RSSI Radio 1",
|
||||
"sensor_descr": "1",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2620,7 +2620,7 @@
|
||||
"sensor_class": "rssi",
|
||||
"sensor_index": "2",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "RSSI Radio 2",
|
||||
"sensor_descr": "2",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
@@ -2641,11 +2641,11 @@
|
||||
"sensor_class": "frequency",
|
||||
"sensor_index": "1",
|
||||
"sensor_type": "sm-os",
|
||||
"sensor_descr": "Tx Frequency 1",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_descr": "Tx 1",
|
||||
"sensor_divisor": 1000,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 6271365,
|
||||
"sensor_current": 6271.365,
|
||||
"sensor_prev": 6271365,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
|
3343
tests/data/sm-os_gc8607.json
Normal file
3343
tests/data/sm-os_gc8607.json
Normal file
File diff suppressed because it is too large
Load Diff
1112
tests/snmpsim/sm-os_gc8607.snmprec
Normal file
1112
tests/snmpsim/sm-os_gc8607.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user