Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Q: How to create new CLI via EEM ?

I would like to build an applet/EEM-script that would run in the CLI when performing an exec level CLI command, eg: "show foobar status". What is the best option to do this ?

 


 

1 REPLY
Cisco Employee

You would register an applet

You would register an applet using the CLI event detector with the "enter" keyword.  The enter keyword tells the parser not to deal with the command.  This will allow you to create your own command.  For example:

event manager applet test

 event cli pattern "^show foobar state" enter

 action 1.0 puts "FOO!"

220
Views
0
Helpful
1
Replies
CreatePlease to create content