Netskope Help

Additional EEM Applet Examples

You can define more applets using the Embedded Event Manager (EEM) and configure granular failover for your primary and backup GRE tunnels.

(confg)#event manager applet IPSLA_PRIMARY_UP
(config-applet)#event track 3 state down
(config-applet)#action 1 wait 3
(config-applet)#action 2 cli command “enable”
(config-applet)#action 3 cli command “config t”
(config-applet)#action 4 cli command "route-map netskope-tunnel"
(config-applet)#action 5 cli command "no set interface Tunnel3 Tunnel4"
(config-applet)#action 6 cli command "set interface Tunnel4"
(confg)#event manager applet IPSLA_PRIMARY_DOWN
(config-applet)#event track 3 state up
(config-applet)#action 1 wait 3
(config-applet)#action 2 cli command “enable”
(config-applet)#action 3 cli command “config t”
(config-applet)#action 4 cli command "route-map netskope-tunnel"
(config-applet)#action 6 cli command "set interface Tunnel3 Tunnel4"
(confg)#event manager applet IPSLA_FAILOVER_DOWN
(config-applet)#event track 4 state down
(config-applet)#action 1 wait 3
(config-applet)#action 2 cli command “enable”
(config-applet)#action 3 cli command “config t”
(config-applet)#action 4 cli command "route-map netskope-tunnel"
(config-applet)#action 5 cli command "no set interface Tunnel3 Tunnel4"
(config-applet)#action 6 cli command "set interface Tunnel3"
(confg)#event manager applet IPSLA_FAILOVER_UP
(config-applet)#event track 4 state up
(config-applet)#action 1 wait 3
(config-applet)#action 2 cli command “enable”
(config-applet)#action 3 cli command “config t”
(config-applet)#action 4 cli command "route-map netskope-tunnel"
(config-applet)#action 5 cli command "no set interface Tunnel3”
(config-applet)#action 6 cli command "set interface Tunnel3 Tunnel4"

This applet allows you to route all web traffic out of the default gateway or through other route. 

(confg)#event manager applet BOTH_TUNNELS_DOWN
(config-applet)#event tag 1 track 3 state down
(config-applet)#event tag 2 track 4 state down
(config-applet)#trigger occurs 1
(config-applet)#correlate event 1 and event 2
(config-applet)#action 1 wait 3
(config-applet)#action 2 cli command “enable”
(config-applet)#action 3 cli command “config t”
(config-applet)#action 4 cli command "interface GigabitEthernet2"
(config-applet)#action 5 cli command "no ip policy route-map netskope-tunnel"
(confg)#event manager applet BOTH_TUNNELS_UP
(config-applet)#event tag 1 track 3 state up
(config-applet)#event tag 2 track 4 state up
(config-applet)#trigger occurs 1
(config-applet)#correlate event 1 and event 2
(config-applet)#action 1 wait 3
(config-applet)#action 2 cli command “enable”
(config-applet)#action 3 cli command “config t”
(config-applet)#action 4 cli command "interface GigabitEthernet2"
(config-applet)#action 5 cli command "ip policy route-map netskope-tunnel"