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).
Listen: https://smarturl.it/CCRS9E25 Follow us: twitter.com/ciscochampions
With applications and users everywhere, the networks are now, more than ever, being tasked with delivering consistent protection while providing an exceptional user exper...