Skip to content

Files

Latest commit

1aa74fc · Mar 11, 2025

History

History

PX_Gather_Logs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 14, 2025
Mar 11, 2025

px_gather_logs.sh

Description

Collects logs and other information related to Portworx/PX Backup for issue analysis. This can be executed from anywhere we have kubectl/oc command access to the cluster. Script will generate a tarball file in /tmp folder

Usage

Passing Inputs as Parameters

For Portworx:

px_gather_logs.sh -n <Portworx namespace> -c <k8s cli> -o PX

Example:

px_gather_logs.sh -n portworx -c kubectl -o PX

For PX Backup:

px_gather_logs.sh -n <Portworx Backup namespace> -c <k8s cli> -o PXB

Example:

px_gather_logs.sh -n px-backup -c oc -o PXB

Without Parameters

If no parameters are passed, the script will prompt for input.

Execute Using Curl

You can download and execute the script directly from GitHub using the following command:

curl -ssL https://raw.githubusercontent.com/portworx/scripts/refs/heads/main/PX_Gather_Logs/px_gather_logs.sh | bash -s -- -n <namespace> -c <kubectl/oc> -o <PX/PXB>

Example:

curl -ssL https://raw.githubusercontent.com/portworx/scripts/refs/heads/main/PX_Gather_Logs/px_gather_logs.sh | bash -s -- -n portworx -c kubectl -o PX