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

Passing an Argument to EEM Policy

dboyko
Level 1
Level 1

Is there a way to pass an arguement from the command line to an EEM Policy. For example, if I have a policy foo.tcl, and want to be able to issue commands on a specific interface within the policy by issuing: "event manager run foo.tcl FastEthernet1/2", how can I get foo.tcl to be passed "FastEthernet1/2" as an argument? Ideally I'd like to create an alias, checkfoo, so I can run "checkfoo FastEtnernet1/2" and have it run the EEM policy passing it that parameter. I know it can be done by setting an environment variable first, but I'd like to avoid the extra step (and going into config mode), and instead have it all done in one command line statement, keeping it simple for my IOS admins).

1 Reply 1

purohit_810
Level 5
Level 5

There is no either way. You has to follow the same configuration mode.

http://www.cisco.com/en/US/products/hw/switches/ps708/products_white_paper0900aecd805457c3.shtml

Regards,

Dharmesh Purohit

Review Cisco Networking products for a $25 gift card