Purpose
Routing protocol process (rpd) tracing tracks all general routing operations and records them in a log file.
To configure routing protocol process (rpd) tracing and monitor trace file messages, follow these steps:
Action
To configure routing protocol process (rpd) tracing, follow these steps:
- [edit routing-options traceoptions]
- user@host# set file filename size size file number
- [edit routing-options traceoptions]
- user@host# set flag flag
For example:
For example:
![]() |
Note: Some traceoptions flags generate an extensive amount of information. Tracing can also slow down the operation of routing protocols. Delete the traceoptions configuration if you no longer require it. |
For example:
- [edit routing-options traceoptions]
- user@pro4-a# run show log daemonlog
- Sep 17 14:17:31 trace_on: Tracing to "/var/log/daemonlog"
started
- Sep 17 14:17:31 Tracing flags enabled: general
- Sep 17 14:17:31 inet_routerid_notify: Router ID: 10.255.245.44
- Sep 17 14:17:31 inet_routerid_notify: No Router ID assigned
- Sep 17 14:17:31 Initializing LSI globals
- Sep 17 14:17:31 LSI initialization complete
- Sep 17 14:17:31 Initializing OSPF instances
- Sep 17 14:17:31 Reinitializing OSPFv2 instance master
- Sep 17 14:17:31 OSPFv2 instance master running
- [...Output truncated...]
Meaning
Table 51 lists tracing flags and example output for JUNOS-supported routing protocol daemon tracing.
Table 51: Routing Protocol Daemon Tracing Flags
Action
To configure routing protocol tracing for a specific routing protocol, follow these steps:
- [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:
For example:
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...]
Meaning
Table 52 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 52: Standard Trace Options for Routing Protocols
To monitor messages in near-real time as they are being written to a trace file.
To monitor messages in near-real time as they are being written to a trace file, use the following JUNOS command-line interface (CLI) operational mode command:
user@host> monitor start isis user@host> *** isis *** Sep 15 18:32:21 Updating LSP isis5.02-00 in database Sep 15 18:32:21 Updating L2 LSP isis5.02-00 in TED Sep 15 18:32:21 Adding a half link from isis5.02 to isis6.00 Sep 15 18:32:21 Adding a half link from isis5.02 to isis5.00 Sep 15 18:32:21 Adding a half link from isis5.02 to isis6.00 Sep 15 18:32:21 Adding a half link from isis5.02 to isis5.00 Sep 15 18:32:21 Scheduling L2 LSP isis5.02-00 sequence 0xd87 on interface fxp2.3 Sep 15 18:32:21 Updating LSP isis5.00-00 in database Sep 15 18:32:21 Updating L1 LSP isis5.00-00 in TED Sep 15 18:32:21 Sending L2 LSP isis5.02-00 on interface fxp2.3 Sep 15 18:32:21 sequence 0xd87, checksum 0xc1c8, lifetime 1200
Action
To stop monitoring a trace file in near-real time, use the following JUNOS CLI operational mode command after you have started monitoring:
Sample Output
user@host> monitor start isis user@host> *** isis *** Sep 15 18:32:21 Updating LSP isis5.02-00 in database Sep 15 18:32:21 Updating L2 LSP isis5.02-00 in TED Sep 15 18:32:21 Adding a half link from isis5.02 to isis6.00 Sep 15 18:32:21 Adding a half link from isis5.02 to isis5.00 Sep 15 18:32:21 Adding a half link from isis5.02 to isis6.00 Sep 15 18:32:21 Adding a half link from isis5.02 to isis5.00 Sep 15 18:32:21 Scheduling L2 LSP isis5.02-00 sequence 0xd87 on interface fxp2.3 Sep 15 18:32:21 Updating LSP isis5.00-00 in database Sep 15 18:32:21 Updating L1 LSP isis5.00-00 in TED Sep 15 18:32:21 Sending L2 LSP isis5.02-00 on interface fxp2.3 Sep 15 18:32:21 sequence 0xd87, checksum 0xc1c8, lifetime 1200 monitor stop isis user@host>