Passing an Argument to EEM Policy

Unanswered Question
Jul 31st, 2007

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).

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion