> 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/smcp/how-to/how-to-compare-the-admin-password-in-the-mongo-database-to-the-o.md).

# How to Compare the Admin Password in the Mongo Database to the one in the Backup?

## Problem

How to Compare the Admin Password in the Mongo Database to the one in the backup?

## Environment

* Platform9 Edge Cloud - v5.3 (LTS1)

## Procedure

* Note the password from the **get-cred** command. This command fetched the username and password from MongoDB.

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

```bash
/opt/pf9/airctl/airctl get-creds --config /opt/pf9/airctl/conf/airctl-config.yaml
```

{% endtab %}
{% endtabs %}

* Untar backup file

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

```bash
tar -xf <back_up_file>

Ex: tar -xf airctl_state.tar.gz
```

{% endtab %}
{% endtabs %}

* Change directory to mongo

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

```bash
cd mongo
```

{% endtab %}
{% endtabs %}

* Get admin\_pass from `du_data.json`

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

```bash
vi du_data.json    #search for "admin_pass" and make a note of admin_pass value

Ex:
"passwords": {
                        "admin_pass": "airctl-1-33xxx54-31-pf9-localnet-admin_pass",
```

{% endtab %}
{% endtabs %}

* Get the Password from `secrets.json`

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

```bash
vi secrets.json   #search for admin_pass value copied in previous step

Ex:
{
        "_id": {
                "$oid": "66bdfe9xxxxxxx1262d9f"
        },
        "tag": "airctl-1-33xxx54-31-pf9-localnet-admin_pass",
        "context": "customer",
        "driver": "null",
        "record": {
                "HYAT!": "c194ZxxxRaxxCk",
                "binary": false
        }
}
```

{% endtab %}
{% endtabs %}

* Compare passwords.


---

# 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 dynamically by asking a question.

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

```
GET https://platform9.com/kb/smcp/how-to/how-to-compare-the-admin-password-in-the-mongo-database-to-the-o.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
