Enabling RSVP Traceoptions
Purpose
Global routing protocol tracing operations track all general routing operations and record them in a log file. Any global tracing operations that you configure are inherited by the individual routing protocols. To modify the global tracing operations for an individual protocol, enable tracing when configuring that protocol.
The error descriptions logged by the remote operations daemon can often provide more detailed information to help you solve the problem faster.
Action
To enable traceoptions for RSVP packets in your network, follow these steps:
- In configuration mode, go to the following hierarchy level:
[edit]user@host#edit protocols rsvp traceoptions- Configure the RSVP log file:
[editprotocols rsvp traceoptions]user@host#set filefilename.log- Configure the tracing operations:
[editprotocols rsvp traceoptions]user@host#set flag packets- Verify and commit the configuration:
user@host#showuser@host#commit- View the contents of the log file:
user@host#run show log rsvp.log- Stop monitoring the
rsvplog file:[edit protocols rsvp]user@host#deactivate traceoptions- Verify and commit the new configuration:
user@host#showuser@host#commitSample Output
user@R1>editEntering configuration mode[edit]user@R1#edit protocols rsvp traceoptions[edit protocols rsvp traceoptions]user@R1#set file rsvp.log[edit protocols rsvp traceoptions]user@R1#set flag packets[edit protocols rsvp traceoptions]user@R1#showfile rsvp.log;flag packets;[edit protocols rsvp traceoptions]user@R1#commitcommit complete[edit protocols rsvp traceoptions]user@R1#run show log rsvp.logAug 26 10:05:54 trace_on: Tracing to "/var/log/rsvp.log" startedAug 26 10:05:54 RSVP send Hello New 10.1.13.1->10.1.13.2 Len=32 so-0/0/2.0Aug 26 10:05:55 RSVP recv Resv 10.1.13.2->10.1.13.1 Len=128 so-0/0/2.0Aug 26 10:05:55 RSVP send Hello New 10.1.12.1->10.1.12.2 Len=32 so-0/0/0.0Aug 26 10:05:55 RSVP send Hello New 10.1.15.1->10.1.15.2 Len=32 so-0/0/1.0Aug 26 10:05:55 RSVP recv Hello New 10.1.12.2->10.1.12.1 Len=32 so-0/0/0.0Aug 26 10:05:55 RSVP recv Hello New 10.1.15.2->10.1.15.1 Len=32 so-0/0/1.0Aug 26 10:05:57 RSVP recv Path 10.0.0.6->10.0.0.1 Len=208 so-0/0/1.0Aug 26 10:05:57 RSVP send Resv 10.1.15.1->10.1.15.2 Len=120 so-0/0/1.0---(more)---[abort][edit protocols rsvp traceoptions]user@R1#up[edit protocols rsvp]user@R1#deactivate traceoptions[edit protocols rsvp]user@R1#showinactive: traceoptions {file rsvp.log;flag packets;}interface so-0/0/0.0;interface so-0/0/1.0;interface so-0/0/2.0;interface fxp0.0 {disable;}[edit protocols rsvp]user@R1#commitcommit completeWhat It Means
The sample output shows the configuration of RSVP traceoptions, the output for the log file, and the deactivation of the traceoptions configuration.
To specify more than one tracing operation, include multiple flag statements in the configuration, at the following hierarchy level:
[editprotocols rsvp traceoptions]user@R1#set flagflag
For more information on configuring traceoptions, see the JUNOS MPLS Applications Configuration Guide and the JUNOS Routing Protocols Configuration Guide.