[Contents] [Prev] [Next] [Index] [Report an Error]


Step 2: Configure Routing Protocol Tracing for a Specific Routing Protocol

Action

To configure routing protocol tracing for a specific routing protocol, follow these steps:

  1. In configuration mode, go to the following hierarchy level:
  2. [edit]
    
    user@host# edit protocol protocol-name traceoptions
    
    
    
  3. Configure the file, file size, number, and flags:
  4. [edit protocols protocol name traceoptions]
    
    user@host# set file filename size size files number
    
    [edit protocols protocol name traceoptions]
    
    user@host# set flag flag
    
    
    

For example:

[edit protocols ospf traceoptions]
user@host# set file ospflog size 10240 files 10
[edit protocols ospf traceoptions]
user@host# set flag general 

  1. Verify the configuration:
  2. user@host# show
    
    
    

For example:

[edit protocols ospf traceoptions]
user@host# show 
file ospflog size 10k files 10;
flag general;

  1. Commit the configuration:
  2. user@host# commit
    
    
    
  3. View the contents of the file containing the detailed messages:
  4. user@host# run show log filename
    
    
    

For example:

[edit protocols ospf traceoptions]
user@pro4-a# run show log ospflog 
Sep 17 14:23:10 trace_on: Tracing to "/var/log/ospflog" started
Sep 17 14:23:10 rt_flash_update_callback: flash OSPF (inet.0) start
Sep 17 14:23:10 OSPF:  multicast address 224.0.0.5/32, route ignored
Sep 17 14:23:10 rt_flash_update_callback: flash OSPF (inet.0) done
Sep 17 14:23:10 CHANGE   10.255.245.46/32   gw 10.10.208.67  OSPF     
pref 10/0 metric 1/0 fe-0/0/0.0 <Delete Int>
Sep 17 14:23:10 CHANGE   10.255.245.46/32   gw 10.10.208.67  OSPF     
pref 10/0 metric 1/0 fe-0/0/0.0 <Active Int>
Sep 17 14:23:10 ADD      10.255.245.46/32   gw 10.10.208.67  OSPF     
pref 10/0 metric 1/0 fe-0/0/0.0 <Active Int>
Sep 17 14:23:10 CHANGE   10.255.245.48/32   gw 10.10.208.69  OSPF     
pref 10/0 metric 1/0 fe-0/0/0.0 <Delete Int>
Sep 17 14:23:10 CHANGE   10.255.245.48/32   gw 10.10.208.69  OSPF     
pref 10/0 metric 1/0 fe-0/0/0.0 <Active Int>
Sep 17 14:23:10 ADD      10.255.245.48/32   gw 10.10.208.69  OSPF     
pref 10/0 metric 1/0 fe-0/0/0.0 <Active Int>
Sep 17 14:23:10 rt_close: 4/4 routes proto OSPF
[...Output truncated...]

What It Means

Table 54 lists standard tracing options that are available globally or that can be applied to specific protocols. You can also configure tracing for a specific BGP peer or peer group. For more information, see the JUNOS System Basics Configuration Guide.


Table 54: Standard Trace Options for Routing Protocols
Tracing Flag
Description

all

All operations

general

Normal operations and routing table changes

normal

Normal operations

policy

Policy operations and actions

route

Routing table changes

state

State transitions

task

Interface transactions and processing

timer

Timer usage



[Contents] [Prev] [Next] [Index] [Report an Error]