SRX Getting Started - Troubleshooting Commands
SRX Getting Started - Troubleshooting Commands
Description
This article contains instructions for troubleshooting your SRX device. It includes common commands for
monitoring, viewing log files, and configuring traceoptions and packet capture.
Symptoms
Solution
Monitoring commands
The most common, important commands for monitoring the SRX hardware, interfaces, sessions, and alarms are
as follows:
Command Description
If you are familiar with ScreenOS, refer to KB14000 for a mapping of common troubleshooting commands from
ScreenOS to Junos.
https://supportportal.juniper.net/s/article/SRX-Getting-Started-Troubleshooting-Commands?language=en_US 1/3
17/02/2023, 16:26 SRX Getting Started - Troubleshooting Commands
Log Files
System messages can be viewed in the log files with the 'show log messages' command. Variations of the
command are as follows:
Command Description
Debugging (Traceoptions)
The traceoptions feature in Junos is used for capturing debug data. The following two KB articles explain how
to use traceoptions with examples:
Note: The Packet Capture Feature can also be used to capture 'self-traffic' (e.g. Dynamic Routing Protocol
messages, ARP, management traffic, ICMP to Routing Engine). However, this Packet Capture feature is not
available on the SRX High-End devices.
For SRX High-End devices, packet capture can be achieved using the datapath-debug feature. Refer to the
following:
http://www.juniper.net/techpubs/en_US/junos11.4/information-products/topic-
collections/security/software-all/monitoring-and-troubleshooting/index.html?jd0e26803.html
KB21563 - How to capture packets on High-End SRX devices
https://supportportal.juniper.net/s/article/SRX-Getting-Started-Troubleshooting-Commands?language=en_US 2/3
17/02/2023, 16:26 SRX Getting Started - Troubleshooting Commands
(Routing Engine) of the Junos device. This feature is useful for troubleshooting why one can't telnet to the SRX
device, or for troubleshooting if a SNMP request is being received and transmitted from the SRX device, or for
troubleshooting OSPF, BGP, and PPP connectivity issues.
Notes:
This feature is not promiscuous mode. This feature only captures traffic to/from the RE of the SRX or J
Series device itself. It does not capture transit traffic (forwarding plane).
ICMP traffic is excluded. (ICMP stays within the forwarding plane, and 'monitor traffic' is tracking the RE
(control plane)).
Related Information
KB21781 - [SRX] Data Collection Checklist - Logs/data to collect for troubleshooting
KB15719 - SRX Getting Started - CLI Modes and Features
https://supportportal.juniper.net/s/article/SRX-Getting-Started-Troubleshooting-Commands?language=en_US 3/3