Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configure Routing Protocol Process Tracing

Action

To configure routing protocol process (rpd) tracing, follow these steps:

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

    For example:

    [edit routing-options traceoptions]user@host# set file daemonlog size 10240 files 10 [edit routing-options traceoptions]user@host# set flag general
  3. Verify the configuration:
    user@host# show

    For example:

    [edit routing-options traceoptions]user@host# show file daemonlog size 10k files 10;flag general;
  4. Commit the configuration:
    user@host# commit

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.

  1. View the contents of the file containing the detailed messages:
    user@host# run show log filename

    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" startedSep 17 14:17:31 Tracing flags enabled: generalSep 17 14:17:31 inet_routerid_notify: Router ID: 10.255.245.44Sep 17 14:17:31 inet_routerid_notify: No Router ID assignedSep 17 14:17:31 Initializing LSI globalsSep 17 14:17:31 LSI initialization completeSep 17 14:17:31 Initializing OSPF instancesSep 17 14:17:31 Reinitializing OSPFv2 instance masterSep 17 14:17:31 OSPFv2 instance master running[...Output truncated...]

Meaning

Table 1 lists tracing flags and example output for Junos-supported routing protocol daemon tracing.

Table 1: Routing Protocol Daemon Tracing Flags

Tracing Flag

Description

Example Output

all

All operations

Not available.

general

Normal operations and routing table change

Not available.

normal

Normal operations

Not available.

policy

Policy operations and actions

Nov 29 22:19:58 export: Dest 10.0.0.0 proto Static
Nov 29 22:19:58 policy_match_qual_or: Qualifier proto Sense: 0
Nov 29 22:19:58 policy_match_qual_or: Qualifier proto Sense: 0
Nov 29 22:19:58 export: Dest 10.10.10.0 proto IS-IS

route

Routing table changes

Nov 29 22:23:59
Nov 29 22:23:59 rtlist_walker_job: rt_list walk for RIB inet.0 started with 42 entries
Nov 29 22:23:59 rt_flash_update_callback: flash KRT (inet.0) start
Nov 29 22:23:59 rt_flash_update_callback: flash KRT (inet.0) done
Nov 29 22:23:59 rtlist_walker_job: rt_list walk for inet.0 ended with 42 entries
Nov 29 22:23:59
Nov 29 22:23:59 KRT Request: send len 68 v14 seq 0 CHANGE route/user af 2 addr 172.16.0.0 nhop-type unicast nhop 10.10.10.33
Nov 29 22:23:59 KRT Request: send len 68 v14 seq 0 ADD route/user af 2 addr 172.17.0.0 nhop-type unicast nhop 10.10.10.33
Nov 29 22:23:59 KRT Request: send len 68 v14 seq 0 ADD route/user af 2 addr 10.149.3.0 nhop-type unicast nhop 10.10.10.33
Nov 29 22:24:19 trace_on: Tracing to "/var/log/rpdlog" started
Nov 29 22:24:19 KRT Request: send len 68 v14 seq 0 DELETE route/user af 2 addr 10.10.218.0 nhop-type unicast nhop 10.10.10.29
Nov 29 22:24:19 RELEASE 10.10.218.0 255.255.255.0 gw 10.10.10.29,10.10.10.33 BGP pref 170/-101 metric so-1/1/0.0,so-1/1/1.0 <Release Delete Int Ext> as 65401
Nov 29 22:24:19 KRT Request: send len 68 v14 seq 0 DELETE route/user af 2 addr 172.18.0.0 nhop-type unicast nhop 10.10.10.33

state

State transitions

Not available.

task

Interface transactions and processing

Nov 29 22:50:04 foreground dispatch running job task_collect for task Scheduler
Nov 29 22:50:04 task_collect_job: freeing task MGMT_Listen (DELETED)
Nov 29 22:50:04 foreground dispatch completed job task_collect for task Scheduler
Nov 29 22:50:04 background dispatch running job rt_static_update for task RT
Nov 29 22:50:04 task_job_delete: delete background job rt_static_update for task RT
Nov 29 22:50:04 background dispatch completed job rt_static_update for task RT
Nov 29 22:50:04 background dispatch running job Flash update for task RT
Nov 29 22:50:04 background dispatch returned job Flash update for task RT
Nov 29 22:50:04 background dispatch running job Flash update for task RT
Nov 29 22:50:04 task_job_delete: delete background job Flash update for task RT
Nov 29 22:50:04 background dispatch completed job Flash update for task RT
Nov 29 22:50:04 background dispatch running job Flash update for task RT
Nov 29 22:50:04 task_job_delete: delete background job Flash update for task RT

timer

Timer usage

Nov 29 22:52:07 task_timer_hiprio_dispatch: ran 1 timer
Nov 29 22:52:07 main: running normal priority timer queue
Nov 29 22:52:07 main: ran 1 timer
Nov 29 22:52:07 task_timer_hiprio_dispatch: running high priority timer queue
Nov 29 22:52:07 task_timer_hiprio_dispatch: ran 1 timer
Nov 29 22:52:07 main: running normal priority timer queue
Nov 29 22:52:07 main: ran 1 timer
Nov 29 22:52:07 main: running normal priority timer queue
Nov 29 22:52:07 main: ran 2 timers

Published: 2012-12-10

Published: 2012-12-10