Trace only unusual or abnormal operations to the file routing-log, and trace detailed information about all OSPF packets to the file ospf-log:
- [edit]
- routing-options {
-
- traceoptions {
- file routing-log;
- }
- }
- protocols {
-
- ospf {
-
- traceoptions {
- file ospf-log size 10k files 5;
- flag lsa-ack;
- flag database-description;
- flag hello;
- flag lsa-update;
- flag lsa-request;
- }
-
- area 0.0.0.0 {
- interface 10.0.0.1;
- }
- }
- }
Trace SPF calculations:
- [edit]
- protocols {
-
- ospf {
-
- traceoptions {
- file ospf-log;
- flag spf;
- }
-
- area 0.0.0.0 {
- interface 10.0.0.1;
- }
- }
- }
Trace the creation, receipt, and retransmission of all link-state advertisements:
- [edit]
- protocols {
-
- ospf {
-
- traceoptions {
- file ospf-log;
- flag lsa-request;
- flag lsa-update;
- flag lsa-ack;
-
- area 0.0.0.0 {
- interface 10.0.0.1;
- }
- }
- }
- }