Juniper EX9200 Features Manual page 193

Vpls feature guide ex series
Hide thumbs Also See for EX9200:
Table of Contents

Advertisement

Step-by-Step
Procedure
Step-by-Step
Procedure
Copyright © 2016, Juniper Networks, Inc.
Configuring Trace Operations
The following example requires you to navigate various levels in the configuration
hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration
Mode in the CLI User Guide.
To configure the trace operations:
Configure trace operations on the logical system.
1.
[edit logical-systems A protocols bgp group internal-peers]
user@host# set traceoptions file bgp-log
user@host# set traceoptions file size 10k
user@host# set traceoptions file files 2
user@host# set traceoptions flag update detail
If you are done configuring the device, commit the configuration.
2.
[edit]
user@host# commit
Viewing the Trace File
To view the trace file:
In operational mode on the main router, list the directories on the logical system.
1.
user@host> file list /var/logical-systems/A
/var/logical-systems/A:
config/
log/
tmp/
In operational mode on the main router, list the log files on the logical system.
2.
user@host> file list /var/logical-systems/A/log/
/var/logical-systems/A/log:
bgp-log
View the contents of the
3.
user@host> file show /var/logical-systems/A/log/bgp-log
Aug 10 17:12:01 trace_on: Tracing to "/var/log/A/bgp-log" started
Aug 10 17:14:22.826182 bgp_peer_mgmt_clear:5829: NOTIFICATION sent to
192.163.6.4 (Internal AS 17): code 6 (Cease) subcode 4 (Administratively
Reset), Reason: Management session cleared BGP neighbor
Aug 10 17:14:22.826445 bgp_send: sending 21 bytes to 192.163.6.4 (Internal
AS 17)
Aug 10 17:14:22.826499
Aug 10 17:14:22.826499 BGP SEND 192.168.6.5+64965 -> 192.163.6.4+179
Aug 10 17:14:22.826559 BGP SEND message type 3 (Notification) length 21
Aug 10 17:14:22.826598 BGP SEND Notification code 6 (Cease) subcode 4
(Administratively Reset)
Aug 10 17:14:22.831756 bgp_peer_mgmt_clear:5829: NOTIFICATION sent to
192.168.40.4 (Internal AS 17): code 6 (Cease) subcode 4 (Administratively
Reset), Reason: Management session cleared BGP neighbor
Aug 10 17:14:22.831851 bgp_send: sending 21 bytes to 192.168.40.4 (Internal
AS 17)
Aug 10 17:14:22.831901
Aug 10 17:14:22.831901 BGP SEND 192.168.6.5+53889 -> 192.168.40.4+179
file.
bgp-log
Chapter 14: Operational Commands
175

Advertisement

Table of Contents
loading

Table of Contents