Description

This article provides information on how to collect logs from both of the QFX3100 Directors by using the createpblogs.sh script. It is an inbuilt script in the Qfabric system and it collects logs from all the Node Groups and DGs.

Symptoms

  • createpblogs.sh is designed to collect logs from both of the QFX3100 directors.

  • The createpblogs.sh script fails to collect logs from the remote DG if Junos version 12.2, as it does not know the user configured root password to establish an SCP session to the remote DG. This issue has been fixed from 13.1 releases.

Solution

The createpblogs.sh script resides in the /root directory. If the Qfabric system has a user defined DG root password, it fails to make an SCP connection to the remote peer due to authentication failure (Junos 12.2):

[root@dg0 ~]# createpblogs.sh
mkdir -p /tmp/fabriclogs
Gathering logging data

Collecting the logs from the components
Log archive logs gathering (-L) not requested.
Testing peer address
Peer host is pingable. Checking for scp connection...
*** Warning: Peer node is inaccessible. Consider running /root/genpblogs.sh on peer manually
Testing peer address
Peer host is pingable. Checking for scp connection...
*** Warning: Peer node is inaccessible. Consider running /root/genpblogs.sh on peer manually
*** Warning: Failed to locate peer on any interface; consider running /root/genpblogs.sh on peer manually
Generating logs locally
*** Warning: Skipping logs on missing peer
*** Warning: Skipping xlog on missing peer

Use the -p option with createpblogs.sh to collect logs from the peer DG as well. It will force the user to enter the DG root password and the local DG can successfully make a SCP connection to the remote peer:

[root@dg0 ~]# createpblogs.sh -p
mkdir -p /tmp/fabriclogs

Enter password:  < Enter DG root password
Gathering logging data

Collecting the logs from the components
Log archive logs gathering (-L) not requested.
Testing peer address
Peer host is pingable. Checking for scp connection...
Peer node is accessible
Generating logs on peer
Successfully started collecting logs
Generating logs locally
Successfully copied logs locally
Successfully cleaned up remote logs
Successfully copied xlog locally
tar cpvfz /tmp/pblogs.tgz 1.1.1.2.pblogs.tgz common.xlog.log dg0.pblogs.tgz genpblogs.done
genpblogs.files.log genpblogs.peer.done genpblogs.sh.1.1.1.2.out get_logs_from_fabric.pl.out
1.1.1.2.pblogs.tgz
common.xlog.log
dg0.pblogs.tgz
genpblogs.done
genpblogs.files.log
genpblogs.peer.done
genpblogs.sh.1.1.1.2.out
get_logs_from_fabric.pl.out
The logfile is /tmp/createpblog.20121106014138.log

Resulting tarfile: /tmp/pblogs.tgz

Note: You do not need to use this option '-p' from Junos Release 13.1X50-D10.