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 connect to or access files on individual members on a EX-series Switch Virtual Chassis

0

0

Article ID: KB12690 KB Last Updated: 04 Jan 2010Version: 1.0
Summary:
This article explains how to access or copy files from individual members in a Virtual Chassis (VC).


Symptoms:
How do I access files on another member (fpc) in a Virtual Chassis (VC) that is not the master in a VC, such as a linecard or backup RE?
Solution:
There are 2 ways to access or reference files on a member (fpc) of a Virtual Chassis (VC).  This is very useful when collecting files from the /var/log (or other directories) on individual members in a Virtual Chassis (VC).
  1. To connect to a member (fpc) in a Virtual Chassis (VC) do the following: request session <fpc-number> logs into the member (fpc) defined and you can access or reference files on the member (fpc).
  1. To copy or access files on another member (fpc) from the master member (fpc) use the fpc<n>:/path/file syntax where <n> is the fpc number.
EXAMPLE:

file list fpc3:/var/log/messages (will list contents of messages file on fpc3 flash)

or

file copy fpc3:/var/log/messages /var/log/fpc3-messages (will copy the same file into the flash directory /var/log as filename fpc3-messages on the master switch).

After requesting session to a member all files in the directory can be compressed into a single file using the shell command :

tar -cvzf /var/fpc3-logs.tgz /var/log/*

Then we can copy this compressed tgz file into the master fpc.

file copy fpc3:/var/fpc3-logs.tgz /var/log

The files can then be easily extracted from JWEB maintenance window or using ftp from shell.
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