cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
506
Views
0
Helpful
4
Replies

EEM Applet

kirandeep.singh
Level 1
Level 1

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?

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

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.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

kirandeep.singh
Level 1
Level 1

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

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.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

Review Cisco Networking for a $25 gift card