Collecting LTE modem fw version from script

There are certain commnads in ROS that print some info in console, but do not return it as a variable.
There is for example command

 /interface lte info lte1 once

which returns something like this in console

           pin-status: no password required
        functionality: full
  registration-status: registered
         manufacturer: "MikroTik"
                model: "R11e-LTE"
             revision: "MikroTik_CP_2.160.000_v012"
     current-operator: MegaFon
                  lac: 00000
       current-cellid: 000000000
               enb-id: 000000
            sector-id: 24
           phy-cellid: 487
    access-technology: Evolved 3G (LTE)
       session-uptime: 6m19s
                 imei: 000000000000000
                 imsi: 000000000000000
                 uicc: 0000000000000000000
    subscriber-number: +CME ERROR: 100
               earfcn: 3048 (band 7, bandwidth 20Mhz)
                 rsrp: -112dBm
                 rsrq: -11dB
                 sinr: 3dB

I need to collect this data into a variable but it always returns empty string (or array?).
There is also no obvious way to access this data by value-name or in any other way.

I was searching for roughly an hour, and found only this topic: http://forum.mikrotik.com/t/how-do-save-interface-lte-cell-monitor-in-file-or-variable/124631/1
It seems the solution wasn’t found.

Since I’m using ansible for the task, I can grab that output and parse it somehow. But the question remains: how could this be done in ROS itself?

Check FW and notify to e-mail:

local Firmware [interface lte firmware-upgrade 0 once as-value ]
if ( $Firmware->"installed" != $Firmware->"latest" ) do={
tool e-mail send subject=("LTE R11e-LTE6 new FW: ".$Firmware->"latest") to=info@sibex.it
}

Please upgrade modem firmware to v13

Via info command:

[marcin.przysowa@SXTR_LTE6] > put [interface lte info lte1 once as-value ]        
access-technology=Evolved 3G (LTE CA2);ca-band=B3@20Mhz earfcn: 1300 phy-cellid: 485;current-cellid=3623436;curren
t-operator=26001;enb-id=14154;functionality=full;imei=356662100047064;imsi=260121000490483;lac=11009;manufacturer=
"MikroTik";model="R11e-LTE6";phy-cellid=16;pin-status=ok;primary-band=B8@5Mhz earfcn: 3526 phy-cellid: 16;registra
tion-status=registered;revision=R11e-LTE6_V022_085TB;rsrp=-99;rsrq=-115;rssi=-70;sector-id=12;session-uptime=13:50
:44;sinr=2;subscriber-number=+CNUM:;uicc=8948121010004904830
[marcin.przysowa@SXTR_LTE6] > put ([interface lte info lte1 once as-value ]->"revision")
R11e-LTE6_V022_085TB
[marcin.przysowa@SXTR_LTE6] >

Thanks a lot!

This actually works!