Routing

last person joined: 5 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.  OSPF logging

    Posted 10-02-2014 11:14

    what is equinivalent juniper command for "log adjacency changes" which we used under ospf config.

     

     



  • 2.  RE: OSPF logging

     
    Posted 10-02-2014 14:51

    Hi,

     

    There is no need for explicit configuration under "protocol ospf", however if you have enabled "notice" severity under syslog, you will see the OSPF events in the corresponding file.

     

    For example if you enable below syslog, you will be OSPF event syslog in file messages:

     

    [edit] show system

    syslog {
        file messages {
            any notice;
        }

    }

     

    Example:

     

    rpd[15029]: RPD_OSPF_NBRDOWN: OSPF neighbor 20.8.1.0 (ae0) state changed from Full to Init due to 1WayRcvd (event reason: neighbor is in one-way mode)
    rpd[1359]: RPD_OSPF_NBRDOWN: OSPF neighbor 10.8.1.1 (realm ospf-v2 xe-1/3/1.0 area 0.0.0.0) state changed from Full to Down due to InActiveTimer (event reason: BFD session timed out and neighbor was declared dead)
    rpd[2986]: RPD_OSPF_NBRDOWN: OSPF neighbor fe80::280:42ff:fe11:e415 (so-0/0/0.10) state changed from Full to Down due to KillNbr (event reason: interface went down)

     

    Regards

    Surya

     



  • 3.  RE: OSPF logging

    Posted 10-02-2014 20:14

    thanks Surya,

     

    But this will apply for all protocol. But i wanted to see syslog message for only  OSPF.



  • 4.  RE: OSPF logging

     
    Posted 10-03-2014 07:22

    Hi,

     

    Yes it does log other events too which would be helpful while one wants to go back and check all the events.

    But in case you want to maintain a syslog file seperatey only for OSPF events, then we can configure something like as below. The file "ospf-event" will have all the OSPF related logs.

     

    [edit system]

    syslog {
        file ospf-event {
            any notice;
            match "(.*RPD_OSPF.*)";
        }
    }

     

     

    Regards

    Surya



  • 5.  RE: OSPF logging

    Posted 10-17-2014 17:33

    we have used this in the past with decent results

     

    traceoptions {
        file ospf-log-events size 5m files 10;
        flag lsa-ack;
        flag database-description;
        flag hello;
        flag lsa-update;
        flag lsa-request;