cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1187
Views
0
Helpful
1
Replies

Q: How to create new CLI via EEM ?

eckert
Level 4
Level 4

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 1

Joe Clarke
Cisco Employee
Cisco Employee

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!"