Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

request system debug-info

Syntax

Syntax (Junos EVO devices)

Description

Collect debug information from Junos OS Evolved, such as logs. Logs are stored in the /var/tmp/ directory. Debug collector collects cores, application traces, configurations, commits and so on. It also collects outputs from CLI and CLI-PFE commands. You need to login to the device as root user to use this command. Enter the root password and confirm it when requested.

Options

node node-name

(Optional) Identifier of the node. If a value for node (for example, re0, re1, fpc0) is given, this command collects logs only from the given node. If the node option is not provided, log information is collected from all active nodes.

mode
  • custom—Support for custom debug collection. The values are normal, lite, l2, dot1x, vrrp, lacp, infra, mcast, vxlan, extensive, logs.

  • lite—You can use this option to run selected debug commands.

  • normal—You can use this option to run all debug commands.

since

Specifies the log duration. The supported format is yyyy-mm-dd or #d (ex: 2d) or #h (ex: 5h). By default, you can collect the logs for a duration of 90 days.

Additional Information

Debug collector takes maximum time while collecting journal logs and traces. You can use the request system debug-info command for quick debug collection from /var/tmp in the following sample format:

  • request system debug-info node re0,fpc0,fpc1,fpc2 since 1h—Normal mode with minimal journal and trace logs collection from master RE and all FPCs.

  • request system debug-info node re1 since 1h—Normal mode with minimal journal and trace logs collection from backup RE only.

  • request system debug-info mode lite node re0,fpc0,fpc1,fpc2 since 1h —Lite mode with minimal journal and trace logs collection from master RE and all FPCs.

  • request system debug-info mode lite node re1 since 1h—Lite mode with minimal journal and trace logs collection from backup RE only.

To view the debug_collector.log file:

  1. Go to the /var/tmp/ directory.

  2. Uncompress the /var/tmp/ file.

  3. Go to the /var/tmp/debug_collector_timestamp directory.

  4. Look at the log file.

Required Privilege Level

view

Sample Output

request system debug-info

Release Information

Command introduced in Junos OS Evolved Release 18.3R1.