- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 07:38 AM
thanks a lot for update us
have a nice day
MHM

- « Previous
-
- 1
- 2
- Next »