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
px_gather_logs.sh -n <Portworx namespace> -c <k8s cli> -o PX
Example:
px_gather_logs.sh -n portworx -c kubectl -o PX
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
If no parameters are passed, the script will prompt for input.
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