Support Support Downloads Knowledge Base Juniper Support Portal 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

[QFX] How to collect logs from both QFX3100 Directors by using the 'createpblogs.sh' script

0

0

Article ID: KB26233 KB Last Updated: 24 Oct 2013Version: 2.0
Summary:
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.
Cause:
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
Solution:
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.

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