Routing
Routing

Event-script cli on MX80 vs vMX?

‎06-14-2019 02:25 AM

Hi all,

 

In the vMX i can see "redudancy-event" option but i'm not see on MX80? So if my event script like vMX below so how to apply it in MX80?

 

Appreciate any feedback

 

vMX

root@vMX# set ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
> destinations List of destinations referred to in 'then' clause
> event-script Configure event-scripts
> generate-event Generate an internal event
max-policies Number of policies that can be executed simultaneously
> policy Event policy for event policy manager
> redundancy-event Events for policies to take action on
> traceoptions Trace options for the event processing daemon

 

 

[edit event-options]
root@vMX# show
policy SHUT-LINK {
events LINK-DOWN;
within 30 {
trigger on 3;
}
then {
event-script link_down.slax;
}
}
event-script {
file link_down.slax;
}
redundancy-event LINK-DOWN {
monitor {
link-down {
ge-0/0/0;
ge-0/0/1;
ge-0/0/2;
}
}
}

 

MX80

root@MX80# set ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
> destinations List of destinations referred to in 'then' clause
> event-script Configure event-scripts
> generate-event Generate an internal event
max-policies Number of policies that can be executed simultaneously
> policy Event policy for event policy manager
> traceoptions Trace options for the event processing daemon

 

5 REPLIES 5
Routing

Re: Event-script cli on MX80 vs vMX?

‎06-14-2019 02:33 AM

Hi,

you can match on snmp trap under the policy like the following example

set event-options policy link_down events snmp_trap_link_down
set event-options policy link_down within 60 trigger on
set event-options policy link_down within 60 trigger 3
set event-options policy link_down attributes-match snmp_trap_link_down.interface-name matches ge-0/0/1
set event-options policy link_down attributes-match snmp_trap_link_down.interface-name matches ge-0/0/2
set event-options policy link_down attributes-match snmp_trap_link_down.interface-name matches ge-0/0/3
set event-options policy link_down then event-script link_down.slax
set event-options event-script file link_down.slax
 
 
 
------------------
 

If this solves your problem, please mark this post as "Accepted Solution.

Regards,
A.A.
Routing
Solution
Accepted by topic author kronicklez
‎06-14-2019 02:39 AM

Re: Event-script cli on MX80 vs vMX?

‎06-14-2019 02:36 AM

Hi kronicklez,

 

What is junos release on the MX and VMX ?

 

Regards,

Mohamed

Routing

Re: Event-script cli on MX80 vs vMX?

‎06-14-2019 02:39 AM

Hi Asaleh,

 

Thanks you so much.

 

 

 

 

 

Highlighted
Routing

Re: Event-script cli on MX80 vs vMX?

‎06-14-2019 02:41 AM

Hi Asaleh,

 

Sorry, i click the wrong accept solution. Sorry again, not sure how to reselect again you advise as accepted solution.

 

 

Thanks

 

Routing

Re: Event-script cli on MX80 vs vMX?

‎06-14-2019 02:43 AM

Hi mohamed,

 

vMX using version 17.1 and MX80 using ver 17.1R2

 

 

Thanks