Description

The article has been redirected to a more elaborate article: KB20569 [juniper.net]


The "file archive compress" method can be used to collect all /var/log files from all members of an EX Switch Virtual Chassis (VC). This is useful for troubleshooting purposes or for providing detailed logs to Juniper Technical Assistance Center (JTAC).

This article explains how to collect these files using the method specified.

Solution

Use the commands listed below to archive /var/log/ directory files from Primary (FPC0) and Backup (FPC1):

{master:0}
root> file archive compress source /var/log/ destination /var/tmp/varlog-mem0

{master:0}
root> request session member 1 (use appropriate member id to login to that FPC)

root% cli

{backup:1}
root> file archive compress source /var/log/ destination /var/tmp/varlog-mem1

{backup:1}
root> exit

root% exit

{master:0}
root> file copy fpc1:/var/tmp/varlog-mem1.tgz fpc0:/var/tmp/

Now you can open a J-Web session to the EX switch by using http:// <Ip-address-EX> and you can download the files using this path: Maintain > Files > Temporary Files ( /var/tmp ).

NOTE:  Another method is by using the " tar " command from shell. This is documented in KB15186 - Alternate method using the tar command to collect /var/log files from all members of an EX Switch Virtual Chassis (VC) [juniper.net] .

Modification History

  • 2020-08-06: Added KB20569 [juniper.net] to related links

  • 2021-04-05: Updated the article terminology to align with Juniper's Inclusion & Diversity initiatives

Related Information