28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Jun 14 22:00:26 CHANGE 192.168.17.1/32 gw 10.0.16.2 OSPF pref 10/0<br />

metric 2/0 fe-0/0/0.0 <br />

Jun 14 22:00:26 CHANGE 192.168.18.1/32 gw 10.0.16.2 OSPF pref 10/0<br />

metric 2/0 fe-0/0/0.0 <br />

Jun 14 22:00:26 rt_close: 8/11 routes proto OSPF<br />

Jun 14 22:00:26<br />

Jun 14 22:00:26 CHANGE 224.0.0.5/32 OSPF pref 10/0 metric 1/0 <br />

Jun 14 22:00:26 rt_close: 1/1 route proto OSPF<br />

Jun 14 22:00:26<br />

Jun 14 22:00:26 Terminating OSPFv2 I/0<br />

Over time, the OSPF logfiles can become very large and fill the router’s hard disk. To<br />

save a logfile for future analysis, you can copy the file to a server:<br />

aviva@RouterG> file copy /cf/var/log/ospf-log server1:ospf-log-20050614<br />

If you no longer need the information in the file, you can delete the contents:<br />

aviva@RouterG> clear log ospf-log<br />

Deleting the file’s contents does not turn off tracing.<br />

To stop the tracing altogether, you can remove the traceoptions statement from the<br />

configuration with the delete traceoptions command or leave the statements in the<br />

configuration and simply deactivate them so that they do not take effect when you<br />

commit the configuration:<br />

[edit protocols ospf]<br />

aviva@RouterG# deactivate traceoptions<br />

To delete the logfiles and the rolled-over version of the file, use the file delete command:<br />

aviva@RouterG> file delete ospf-log*<br />

When debugging OSPF, you can set one or more of the following trace flags to capture<br />

OSPF information:<br />

[edit protocols ospf traceoptions]<br />

aviva@RouterG# set flag ?<br />

Possible completions:<br />

all<br />

Trace everything<br />

database-description Trace database description packets<br />

error<br />

Trace errored packets<br />

event<br />

Trace OSPF state machine events<br />

flooding<br />

Trace LSA flooding<br />

general<br />

Trace general events<br />

hello<br />

Trace hello packets<br />

lsa-ack<br />

Trace LSA acknowledgement packets<br />

lsa-request<br />

Trace LSA request packets<br />

lsa-update<br />

Trace LSA update packets<br />

normal<br />

Trace normal events<br />

packet-dump<br />

Dump the contents of selected packet types<br />

packets<br />

Trace all OSPF packets<br />

policy<br />

Trace policy processing<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Tracing OSPF Protocol Traffic | 415

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!