# Collecting Cluster Dump For Management Cluster

**PCD Dump** is a powerful utility 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.

PCD Dump is available here - <https://github.com/platform9/PCDDump>

## Prerequisites

* Internet connectivity to download the script.
* `curl` installed
* `kubconfig` should be exported and `kubectl` installed with sufficient permissions:

{% tabs %}
{% tab title="Command" %}
{% code title="Verify kubeconfig and internet connectivity" %}

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

# Verify connectivity
kubectl get nodes
```

{% endcode %}
{% endtab %}
{% endtabs %}

## Installation

{% hint style="warning" %}
Before running the script, ensure that the prerequisites are met.
{% endhint %}

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

{% tabs %}
{% tab title="Quick Run" %}
{% code title="One-line quick run" %}

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

{% endcode %}
{% endtab %}
{% endtabs %}

* For manual execution:

{% tabs %}
{% tab title="Bash" %}
{% code title="Manual download and run" %}

```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
```

{% endcode %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
The tar output file is saved under /tmp as /tmp/pcddump-$(date +%F\_%H-%M-%S).tar.gz
{% endhint %}

## Additional Information

You 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/private-cloud-director/2026.1/getting-started/self-hosted/troubleshooting-and-log-files/collecting-cluster-dump-for-management-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
