Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] How to collect /var/log files from all EX Switch VC members using file archive compress method

0

0

Article ID: KB19620 KB Last Updated: 05 Apr 2021Version: 5.0
Summary:

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).

Modification History:
  • 2020-08-06: Added KB20569 to related links

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

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search