cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
346
Views
2
Helpful
3
Replies

Can I add more than 1 interface to an EEM applet?

hfakoor222
Enthusiast
Enthusiast

Want to monitor traffic.

Currently my EEM is

event manager applet interface_congestion_ping

event interface name Ethernet0/1 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

 

can I add more than 1 interface to this? I've tried extra

 event

commands and they overwrite, haven't found an option to specify extra interfaces in the

event 

command. My idea is not to specify interfaces at all.

 

Any advice/thoughts appreciated.

 

1 Accepted Solution

Accepted Solutions

M02@rt37
Advocate
Advocate

Hello @hfakoor222,

You cannot directly specify multiple interfaces within a single

event 

command. Each

event 

command is associated with a specific interface and its corresponding parameters.

You can achieve your goal of monitoring multiple interfaces for traffic congestion by creating separate

event 

commands for each interface.

event manager applet interface_congestion_ping

event interface name Ethernet0/1 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

event interface name Ethernet0/2 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

event interface name Ethernet0/3 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

By creating separate

event

commands for each interface, you can effectively monitor multiple interfaces for congestion without explicitly specifying the interfaces in a single

event 

command.

 

Best regards
******* If This Helps, Please Rate *******
Ben

View solution in original post

3 Replies 3

M02@rt37
Advocate
Advocate

Hello @hfakoor222,

You cannot directly specify multiple interfaces within a single

event 

command. Each

event 

command is associated with a specific interface and its corresponding parameters.

You can achieve your goal of monitoring multiple interfaces for traffic congestion by creating separate

event 

commands for each interface.

event manager applet interface_congestion_ping

event interface name Ethernet0/1 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

event interface name Ethernet0/2 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

event interface name Ethernet0/3 parameter receive_rate_pps entry-op gt entry-val 100000 entry-type value poll-interval 10
action 1.0 cli command enable
action 1.2 cli command ping 169.254.245.217
action 2.0 syslog msg applet congestion_monitoring has triggered

By creating separate

event

commands for each interface, you can effectively monitor multiple interfaces for congestion without explicitly specifying the interfaces in a single

event 

command.

 

Best regards
******* If This Helps, Please Rate *******
Ben

EEM's seem to have an option of not specifying the interface - not sure if this works. I might test it.

 

Thanks for the reply.

I dont try but I see before you can have multi interface, I will try when I have time but the action ping I can not sure that we can add it. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: