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

How to collect /var/log files from all members of an EX Switch Virtual Chassis (VC) using file archive compress method

0

0

Article ID: KB19620 KB Last Updated: 07 Aug 2020Version: 4.0
Summary:

How to collect /var/log files from all members of an EX Switch Virtual Chassis (VC) using file archive compress method.

Symptoms:

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)

Solution:
Use the commands listed below to archive /var/log/ directory files from Master (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 Jweb session to the EX switch by http://<Ip-address-EX>  and you can download the files under this path : Maintain ->Files-> Temporary Files (/var/tmp)

NOTE: Another method is by using the "tar" command from shell.  This is documented in the KB link listed below.
Modification History:
2020-08-06: Added KB20569 to related links.

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