Not totally sure if this is a cnmaestro issue, configuration, or just my python requests but I figured it couldn’t hurt to ask.
My end goal is to return current rx_power for a dozen PTP670’s. I use a function which successfully returns the mac address of the units in a list, which I then loop through with a for statement.
The script runs clean and produces no errors or warning. All microwave links are stable and static.
My problem is, I am receiving 3 different types of output (examples below)
There is no pattern as to which device returns which respone (1, 2 or 3), and is different each time I send the get request. Every device has at one time returned the full output desired, so I think that rules out configuration issues. At first I thought maybe I was sending get requests too fast, or too many,… but sometimes it is the first few responses that return the severly limited output(‘data’ value = null) and then the rest are fine?
Any suggestions ???
1. full output with paging[‘total’] = 2,
response:
{'data': [{'ethernet': {'aux_interface': {'pkt_error': 0, 'rx': 0, 'tx': 0},
'link_loss': 77,
'main_psu_interface': {'pkt_error': 0,
'rx': 639.41,
'tx': 009.74},
'pcb_temperature': 46,
'rx_capacity': 23.540000915527344,
'rx_power': -53,
'sfp_interface': {'rx': 0, 'tx': 0},
'ssr': 0.699999988079071,
'tx_power': 23,
'tx_throughput': 7483.9,
'vector_error': -31.600000381469727},
'mac': 'xx:xx:xx:xx:xx:xx',
'managed_account': '',
'mode': 'bhs',
'name': 'dd-orth-2',
'network': 'pine',
'timestamp': '2021-01-11T11:02:14+00:00',
'tower': 'DD',
'type': 'ptp'},
{'ethernet': {'tx_capacity': 23.540000915527344,
'tx_channel_util': 2.08},
'mac': 'xx:xx:xx:xx:xx:xx',
'managed_account': '',
'mode': 'bhs',
'name': 'dd-orth-2',
'network': 'pine',
'timestamp': '2021-01-11T11:02:39+00:00',
'tower': 'DD',
'type': 'ptp'}],
'paging': {'limit': 100, 'offset': 0, 'total': 2}}
2. trunctuated output with with paging[‘total’] = 1,
response:
{'data': [{'ethernet': {'aux_interface': {'pkt_error': 0, 'rx': 0, 'tx': 0},
'link_loss': 77.19999694824219,
'main_psu_interface': {'pkt_error': 0,
'rx': 59825.94,
'tx': 931641.7},
'pcb_temperature': 36,
'rx_capacity': 23.540000915527344,
'rx_power': -53.20000076293945,
'sfp_interface': {'rx': 0, 'tx': 0},
'ssr': 0.10000000149011612,
'tx_power': 23,
'tx_throughput': 480.33,
'vector_error': -30.700000762939453},
'mac': 'xx:xx:xx:xx:xx:xx',
'managed_account': '',
'mode': 'bhm',
'name': 'dd-orth-1',
'network': 'pine',
'sm_count': 1,
'timestamp': '2021-01-11T11:02:39+00:00',
'tower': 'DD',
'type': 'ptp'}],
'paging': {'limit': 100, 'offset': 0, 'total': 1}}
3. and severly limited output with paging[‘total’] = 0
{'data': [], 'paging': {'limit': 100, 'offset': 0, 'total': 0}}
with response[‘data’] being null.