ā04-18-2024 06:13 PM - edited ā04-18-2024 06:15 PM
I'm trying to have EEM script where I run the script manually and it display the output of the results in the session but for some reason I'm unable to do so. This is what I have so far
(config)#event manager applet TestCommand
(config-applet)# event none
(config-applet)# action 1.0 cli command "show version"
(config-applet)# action 2.0 puts "$_cli_result"
(config-applet)#end
When I do "event manager run TestCommand" it shows a blank output with no results.
Solved! Go to Solution.
ā04-23-2024 07:36 AM
i found my solution for this, i had to put single quotations around $_cli_result to get this to work
event manager applet TestCommand
event none
action 1.0 cli command "enable"
action 2.0 cli command "show version"
action 3.0 puts '$_cli_result'
ā04-23-2024 07:38 AM
thanks a lot for update us
have a nice day
MHM
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