07-09-2013 06:01 AM
Hello Community,
Can someone show me how to add multiple strings to an environment variable? For example, the following environment variable just has FasthEthernet 0/0. I would like to add multiple interfaces e.g FasthEthernet1/0 and Gigabit0/0
event manager environment wan_load_interface FastEthernet0/0
Cheers
Carlton
07-09-2013 08:20 AM
It depends on what the policy expects of the environment variable value format. But you can add multiple values by separating them with spaces, commas, semicolons, etc. The envvar values are just considered arbitrary data to the IOS parser.
07-09-2013 08:25 AM
Hi Joeseph,
Thanks again for getting back to me.
I was actually referring to the wan_load_alarm.tcl.
Would the following be ok;
event manager environment wan_load_interface FastEthernet0/0, Gigabit0/0, FastEthernet0/1
Cheers
07-09-2013 09:48 AM
No, the script would have to be rewritten to accommodate multiple interfaces. It was only designed to monitor load on one WAN interface.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide