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

mode
  • custom—Support for custom debug collection. The values are rpd, normal, lite, l2, evpn-mpls, l3, cos, dot1x, mclag, vrrp, lacp, infra, sr-mpls, jflow, mcast, vxlan, lsof, aegon_fabric, logs, extensive, default, platform_diag, no-logs, no-cores. You can use this option to specify one or more modes, such as l2, lacp, and infra, separated by commas.

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

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

  • show-all—You can use this option in the debug collector to list all supported modes before selecting the required mode.

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.

noninteractive

Skips any user interaction.

outdir

Output directory for log collection. You can use this option to specify an output directory for storing debug collector log files in a customised path, instead of the default /var/tmp/ directory.

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, if you do not specify the outdir option. The system stores the debug_collector.log files by default in 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.

You can use the show version detail no-forwarding and show version node all commands within the debug collector to display version information stored in the debug_collector.log files under /var/tmp/ directory. These commands provide detailed version information and node version outputs to simplify debugging and version validation

Required Privilege Level

view

Sample Output

request system debug-info

request system debug-info outdir

request system debug-info mode show-all

Release Information

Command introduced in Junos OS Evolved Release 18.3R1.

Option noninteractive introduced in Junos OS Release 23.4R2.

Option outdir introduced in Junos OS Evolved Release 25.3R1.

Option show-all mode introduced in Junos OS Evolved Release 25.3R1.