63 lines
2.2 KiB
PHP
63 lines
2.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage discovery
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
$infomcs[0] = 'BPSK (0)';
|
|
$infomcs[1] = 'QPSK (1)';
|
|
$infomcs[2] = 'QPSK (2)';
|
|
$infomcs[3] = '16-QAM (3)';
|
|
$infomcs[4] = '16-QAM (4)';
|
|
$infomcs[5] = '64-QAM (5)';
|
|
$infomcs[6] = '64-QAM (6)';
|
|
$infomcs[7] = '64-QAM (7)';
|
|
$infomcs[8] = '256-QAM (8)';
|
|
$infomcs[9] = '256-QAM (9)';
|
|
|
|
|
|
echo(" MIMOSA-NETWORKS-BFIVE-MIB P2P-MIB ");
|
|
|
|
// Get radio data
|
|
$data_chain = snmpwalk_cache_oid($device, '1.3.6.1.4.1.43356.2.1.2.6.1.1', [], "MIMOSA-NETWORKS-BFIVE-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
|
$data_stream = snmpwalk_cache_oid($device, '1.3.6.1.4.1.43356.2.1.2.6.2', [], "MIMOSA-NETWORKS-BFIVE-MIB", NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
|
|
|
$i = 0;
|
|
// Goes through the SNMP radio data
|
|
foreach ($data_chain as $key => $value) {
|
|
$radio['radio_name'] = $data_chain[$key]['mimosaCenterFreq'] . ' ' . $data_chain[$key]['mimosaPolarization'];
|
|
$radio['radio_status'] = 'ok';
|
|
$radio['radio_loopback'] = ['NULL'];
|
|
$radio['radio_tx_mute'] = ['NULL'];
|
|
$radio['radio_tx_freq'] = $data_chain[$key]['mimosaCenterFreq'] * 1000;
|
|
$radio['radio_rx_freq'] = $data_chain[$key]['mimosaCenterFreq'] * 1000;
|
|
$radio['radio_tx_power'] = $data_chain[$key]['mimosaTxPower'];
|
|
$radio['radio_rx_level'] = $data_chain[$key]['mimosaRxPower'];
|
|
$radio['radio_e1t1_channels'] = ['NULL'];
|
|
$radio['radio_bandwidth'] = ['NULL'];
|
|
$radio['radio_modulation'] = $infomcs[$data_stream[$key]['mimosaTxMCS']];
|
|
$radio['radio_total_capacity'] = ['NULL'];
|
|
$radio['radio_eth_capacity'] = ['NULL'];
|
|
$radio['radio_rmse'] = ['NULL']; // Convert to units
|
|
$radio['radio_gain_text'] = ['NULL'];
|
|
$radio['radio_carrier_offset'] = ['NULL'];
|
|
$radio['radio_sym_rate_tx'] = ['NULL'];
|
|
$radio['radio_sym_rate_rx'] = ['NULL'];
|
|
$radio['radio_standard'] = ['NULL'];
|
|
$radio['radio_cur_capacity'] = $data_stream[$key]['mimosaTxPhy'] * 1000000;
|
|
|
|
|
|
print_debug_vars($radio);
|
|
|
|
poll_p2p_radio($device, 'IGNITENET-MIB', $key, $radio);
|
|
|
|
}
|
|
|