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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Passing an Argument to EEM Policy

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
Silver

Re: Passing an Argument to EEM Policy

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

118
Views
0
Helpful
1
Replies