06-15-2022 03:08 PM
is there any way to call $_cli_result variable in action cli command string?
I am trying to run this command
action 3.0 cli command" cellular 0/2/0 lte sms send 1-xxx-xxx-xxxx $_cli_result"
but unable to see the variable value in received text. anything I am missing?
06-16-2022 12:12 AM
What device is this, and what IOS code running, and post a complete EEM Script to understand the issue.
$_cli_result (it stored the previous cli command results).
example :
action x.0 cli command "show run | include hostname"
$_cli_result - will be your hostname.
06-16-2022 07:49 AM
c1100-universalk9.17.06.01a.SPA.bin
ISR 1100 Series C1121-4PLTEP
conf t
event manager applet RSSI
event syslog pattern "SMS sender 1XXX-XXX-XXXX"
action 1.0 cli command "enable"
action 1.5 cli command "show cellular 0/2/0 radio"
action 2.0 cli command "cell 0/2/0 lte sms send 1XXX-XXX-XXXX $_cli_result"
exit
end
06-16-2022 08:26 AM
action 1.5 cli command "show cellular 0/2/0 radio"
if this is large then it wont be holding all the informaiton i guess here.
what is the goal here, what SMS you looking to send, can provide the information, so we can asists better.
06-16-2022 08:44 AM
XXXX_WBU_TestKit#sh cellular 0/2/0 radio
Radio power mode = Online
LTE Rx Channel Number(PCC) = 1111
LTE Tx Channel Number(PCC) = 2555
LTE Band = X
LTE Bandwidth = 20 MHz
Current RSSI = -48 dBm
Current RSRP = -74 dBm
Current RSRQ = -8 dB
Current SNR = 15.4 dB
Physical Cell Id = XX
Number of nearby cells = 2
Idx PCI (Physical Cell Id)
--------------------------------
1 XX
2 XX
Radio Access Technology(RAT) Preference = AUTO
Radio Access Technology(RAT) Selected = LTE
Network Change Event = unknown
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide