cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1358
Views
0
Helpful
3
Replies

EEM Scripting Assistance

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

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

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.

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

No, the script would have to be rewritten to accommodate multiple interfaces.  It was only designed to monitor load on one WAN interface.