Description

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