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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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
Cisco Employee

EEM Scripting Assistance

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.

New Member

EEM Scripting Assistance

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

Cisco Employee

EEM Scripting Assistance

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

190
Views
0
Helpful
3
Replies