Routing

last person joined: 2 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Event-script cli on MX80 vs vMX?

    Posted 06-14-2019 02:26

    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

     

     



  • 2.  RE: Event-script cli on MX80 vs vMX?

     
    Posted 06-14-2019 02:34

    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.



  • 3.  RE: Event-script cli on MX80 vs vMX?

    Posted 06-14-2019 02:40

    Hi Asaleh,

     

    Thanks you so much.

     

     

     

     

     

     



  • 4.  RE: Event-script cli on MX80 vs vMX?

    Posted 06-14-2019 02:41

    Hi Asaleh,

     

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

     

     

    Thanks

     

     



  • 5.  RE: Event-script cli on MX80 vs vMX?
    Best Answer

    Posted 06-14-2019 02:37

    Hi kronicklez,

     

    What is junos release on the MX and VMX ?

     

    Regards,

    Mohamed



  • 6.  RE: Event-script cli on MX80 vs vMX?

    Posted 06-14-2019 02:43

    Hi mohamed,

     

    vMX using version 17.1 and MX80 using ver 17.1R2

     

     

    Thanks