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