This article explains one of the ways to collect logs from each member of the EX8200 Virtual Chassis; primary/backup XRE and Routing-Engine/(s) of member switches (EX8200 with single/dual routing-engines)
Typically it would be sufficient to collect logs from the following members on an EX8200 Virtual Chassis setup. However, this article includes how to log into the line cards of member switches (EX82XX) if required. 1. Primary XRE 2. Backup XRE 3. Primary routing-engine of EX82XX 4. Backup routing-engine of EX82XX
1. Log into the primary XRE and check the virtual-chassis topology to identify each member and its member ID.
{master:8} root@XRE200-LC-DC-XRE1> show virtual-chassis Preprovisioned Virtual Chassis Virtual Chassis ID: 5f3d.2290.b587 Virtual Chassis Mode: Enabled Mastership Neighbor List Member ID Status Serial No Model priority Role ID Interface 0 (FPC 0-15) Prsnt BA0911152292 ex8216 0 Linecard 8 vcp-0/0 1 vcp-14/0/6 1 vcp-14/0/7 1 vcp-6/0/6 1 vcp-6/0/7 1 (FPC 16-31) Prsnt BA0909250255 ex8216 0 Linecard 9 vcp-0/0 8 vcp-0/1 0 vcp-14/0/6 0 vcp-14/0/7 0 vcp-6/0/6 0 vcp-6/0/7 8 (FPC 128-143) Prsnt 122010000100 ex-xre 129 Master* 0 vcp-0/0 9 vcp-1/0 1 vcp-1/1 9 (FPC 144-159) Prsnt 122010000078 ex-xre 129 Backup 1 vcp-0/0 8 vcp-1/0
/var/log
LOGS-MASTER-XRE.tar
/var/tmp
{master:8} root@XRE200-LC-DC-XRE1>file archive source /var/log destination member8:/var/tmp/LOGS-MASTER-XRE
{master:8} root@XRE200-LC-DC-XRE1> request session member 9 root@XRE200-LC-NC-XRE1:BK:9% cli warning: This chassis is operating in a non-master role as part of a virtual-chassis (VC) system. warning: Use of interactive commands should be limited to debugging and VC Port operations. warning: Full CLI access is provided by the Virtual Chassis Master (VC-M) chassis. warning: The VC-M can be identified through the show virtual-chassis status command executed at this console. warning: Please logout and log into the VC-M to use CLI.
LOGS-BACKUP-XRE.tar
{backup:9} root@XRE200-LC-NC-XRE1>file archive source /var/log destination member8:/var/tmp/LOGS-BACKUP-XRE
{backup:9} root@XRE200-LC-NC-XRE1> exit root@XRE200-LC-NC-XRE1:BK:9% exit rlogin: connection closed {master:8} root@XRE200-LC-DC-XRE1>
{master:8} root@XRE200-LC-DC-XRE1> request session member 0 root@:RE:1% cli warning: This chassis is operating in a non-master role as part of a virtual-chassis (VC) system. warning: Use of interactive commands should be limited to debugging and VC Port operations. warning: Full CLI access is provided by the Virtual Chassis Master (VC-M) chassis. warning: The VC-M can be identified through the show virtual-chassis status command executed at this console. warning: Please logout and log into the VC-M to use CLI. {master:1} root> file archive source /var/log destination member8:/var/tmp/LOGS-MEM0-RE0
root> request routing-engine login backup root@:BK:0% cli warning: This chassis is operating in a non-master role as part of a virtual-chassis (VC) system. warning: Use of interactive commands should be limited to debugging and VC Port operations. warning: Full CLI access is provided by the Virtual Chassis Master (VC-M) chassis. warning: The VC-M can be identified through the show virtual-chassis status command executed at this console. warning: Please logout and log into the VC-M to use CLI. {backup:0} root> file archive source /var/log destination member8:/var/tmp/LOGS-MEM0-RE1
master:8} root@XRE200-LC-DC-XRE1> file list /var/tmp/ /var/tmp/: .snap/ LOGS-BACKUP-XRE.tar LOGS-MASTER-XRE.tar LOGS-MEM0-RE0.tar LOGS-MEM1-RE0.tar LOGS-MEM1-RE1.tar LOGs-MEM0-RE1.tar
root@XRE200-LC-DC-XRE1:RE:8% rlogin -Ji member0-fpc2 root@fpc2%
'test1.txt
root@fpc2% rcp -Ji /var/tmp/test1.txt member8:/var/tmp/
2021-02-18: minor non-technical edits.