2. Display Real-Time RSVP Log Entries
Action
To display real-time log entries on your computer screen, enter the following JUNOS CLI operational mode command:
user@host>monitor startfilenameSample Output
user@R1>monitor start rsvp-loguser@R1>*** rsvp-log ***Jun 16 17:12:23R1 clear-log[9511]: logfile clearedJun 16 18:34:51trace_on: Tracing to "/var/log/rsvp-log" startedJun 16 18:35:09RSVP send Path 10.0.0.1->10.0.0.5Len=216 so-0/0/2.0Jun 16 18:35:09 Session7 Len 16 10.0.0.5(port/tunnel ID 26619) Proto 0Jun 16 18:35:09 Hop Len 12 10.1.13.1/0x08678198Jun 16 18:35:09 Time Len 8 30000 msJun 16 18:35:09 SrcRoute Len 28 10.1.13.2 S 10.1.36.2 S 10.1.56.1 SJun 16 18:35:09 LabelRequest Len 8 EtherType 0x800Jun 16 18:35:09 Properties Len 12 Primary pathJun 16 18:35:09 SessionAttribute Len 16 Prio (7,0) flag 0x0 "R1-to-R5"Jun 16 18:35:09 Sender7 Len 12 10.0.0.1(port/lsp ID 3)Jun 16 18:35:09 Tspec Len 36 rate 0bps size 0bps peak Infbps m 20 M 1500Jun 16 18:35:09 ADspec Len 48 MTU 1500Jun 16 18:35:09 RecRoute Len 12 10.1.13.1Jun 16 18:35:27RSVP recv Path 10.0.0.5->10.0.0.1Len=216 so-0/0/2.0Jun 16 18:35:27 Session7 Len 16 10.0.0.1(port/tunnel ID 23942) Proto 0Jun 16 18:35:27 Hop Len 12 10.1.13.2/0x08680198Jun 16 18:35:27 Time Len 8 30000 msJun 16 18:35:27 SrcRoute Len 12 10.1.13.1 SJun 16 18:35:27 LabelRequest Len 8 EtherType 0x800Jun 16 18:35:27 Properties Len 12 Primary pathJun 16 18:35:27 SessionAttribute Len 16 Prio (7,0) flag 0x0 "R5-to-R1"Jun 16 18:35:27 Sender7 Len 12 10.0.0.5(port/lsp ID 2)Jun 16 18:35:27 Tspec Len 36 rate 0bps size 0bps peak Infbps m 20 M 1500Jun 16 18:35:27 ADspec Len 48 MTU 1500Jun 16 18:35:27 RecRoute Len 28 10.1.13.2 10.1.36.2 10.1.56.1monitor stopSample Output
The sample output shows real-time tracing information displayed on your computer screen (
*** rsvp-log ***), and that display to the computer screen was started (monitor start) and then stopped (monitor stop). Even though you have stopped displaying log file entries on your screen, the tracing is still occurring on the router configured with trace options. The log file displays a Path message that was sent fromR1toR5, and another thatR1received fromR5, indicating that the two unidirectional LSPs betweenR1andR5are established. For more information about Path messages, see Examining RSVP Log Messages.If you stop monitoring to your screen and want to view the contents of the log file, use the
show logfilenamecommand. For steps to view the log file, see View the RSVP Log File.