> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pcd-ts/self-hosted/collecting-cluster-dump-for-troubleshooting-pcd-management-clust.md).

# PCDDump for PCD Management Cluster Troubleshooting

## Overview

**PCDDump** - A powerful utility script for collecting comprehensive PCD Management cluster information for offline troubleshooting. This script gathers detailed cluster dump information from <code class="expression">space.vars.self\_hosted\_product\_name</code> Control Plane, providing administrators with comprehensive diagnostics and troubleshooting data for effective cluster management and issue resolution.

## Features

* **Comprehensive Data Collection** - Gathers detailed cluster diagnostics.
* **Platform9 Optimized** - Specifically designed for Platform9 Managed Control Plane.
* **Easy Deployment** - Simple one-line installation and execution.
* **Admin-Friendly** - Provides actionable troubleshooting information.

## Prerequisities

* Internet connectivity to download the script first time.
* cURL installed
* KUBECONFIG should be exported and kubectl with sufficient permission:

{% tabs %}
{% tab title="Command" %}

```bash
$ export KUBECONFIG=</path/to/your/pcd-management-cluster-kubeconfig.yaml>

# Verify connectivity
$ kubectl get nodes
```

{% endtab %}
{% endtabs %}

## Installation:

{% hint style="warning" %}
**Warning**

Before running the script, ensure the prerequisities are met:.
{% endhint %}

* Run this script to initiate the PCD cluster dump generation:

{% tabs %}
{% tab title="Quick Run" %}

```bash
$ bash <(curl -Ls https://raw.githubusercontent.com/platform9/PCDDump/refs/heads/main/pcddump.sh)
```

{% endtab %}
{% endtabs %}

* For Manual execution:

{% tabs %}
{% tab title="Bash" %}

```bash
# Download the script
$ curl -L https://raw.githubusercontent.com/platform9/PCDDump/refs/heads/main/pcddump.sh -o pcddump.sh

# Make it executable
$ chmod +x pcddump.sh

# Execute the script
$ ./pcddump.sh
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Info**

The tar output file get saved under `/tmp` directory as `/tmp/pcddump-$(date +%F_%H-%M-%S).tar.gz`
{% endhint %}

## Additional Information:

User can upload the `/tmp/pcddump-$(date +%F_%H-%M-%S).tar.gz` file as suggested by the Platform9 support team. More information in <https://github.com/platform9/PCDDump>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pcd-ts/self-hosted/collecting-cluster-dump-for-troubleshooting-pcd-management-clust.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
