I tried, with the script below, to extract the RSRP in a variable. But there is a strange reaction from RouterOS. In the first part it wil return with, say, index 4. The LTE interface can be asked out on the fourth position. If you look at the interfaces pane in Winbox, correct... But I want the "/interfaces lte". The second part uses the same command to extract the RSRP with position 4, but it is position 0 if you want anything meaningful. I have the idea that two different arrays are created. One from the /interfaces and one from the /interfaces lte.
Code: Select all
:foreach i in=[/interface lte find] do={:if ([:typeof [:find [/interface lte get $i name] "lte1"]]!="nil") do={:global "LTE01 RSRP Value" ([ / interface lte info [ :pick [ find ] $i ] once as-value ]->"rsrp")}}
Does anyone have a good idea.