[j-nsp] Logging interface flaps

Simon Chen simonchennj at gmail.com
Mon Mar 16 19:24:04 EDT 2009


Using snmp might be another option...

On Sun, Mar 15, 2009 at 9:06 AM, Samit <janasamit at wlink.com.np> wrote:
> Hi,
>
> How do I log the interface flap logs similar to cisco log attached
> below,  in Juniper M7i?
>
> Dec  3 18:26:04.155 NST: %LINEPROTO-5-UPDOWN: Line protocol on Interface
> POS2/0, changed state to down
> Dec  3 18:26:04.375 NST: %LINEPROTO-5-UPDOWN: Line protocol on Interface
> POS3/0, changed state to down
> Dec  3 18:26:05.711 NST: %LINEPROTO-5-UPDOWN: Line protocol on Interface
> POS1/0, changed state to down
> Dec  3 18:29:04.551 NST: %LINEPROTO-5-UPDOWN: Line protocol on Interface
> POS2/0, changed state to up
> Dec  3 18:29:04.551 NST: %LINEPROTO-5-UPDOWN: Line protocol on Interface
> POS3/0, changed state to up
> Dec  3 18:29:05.835 NST: %LINEPROTO-5-UPDOWN: Line protocol on Interface
> POS1/0, changed state to up
>
> I tried this but not getting any logs during the link flap.
>
> [edit interfaces]
>
> traceoptions {
>    file int-log size 1m files 5;
>    flag change-events;
>    flag config-states;
> }
> so-0/1/0 {
>    description "Link1 ";
>    traceoptions {
>        flag all;
>    }
>
> so-0/1/1 {
>    description "Link2 ";
>    traceoptions {
>        flag all;
>    }
> so-0/1/2 {
>    description "Link3 ";
>    traceoptions {
>        flag all;
>    }
>
> Regards,
> Samit
>
>
>
>
>
>
>
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>


More information about the juniper-nsp mailing list