How do I change an auxiliary database user password?

Purpose
 

Log in to a station that has access to the NSP cluster.


Open a console window.


Issue the following RESTCONF API call:

Note: In order to issue a RESTCONF API call, you require a token; see the My First NSP API Client tutorial on the Network Developer Portal for information.

POST https://address/restconf/data/nsp-auxdb-user:users/user=username/change-password

where

address is the NSP advertised address

username is the username, for example, samauxdb, samuser, samanalytic, or samanalytic_ano

The request body is the following, in which you specify the new and current passwords:

{

    "nsp-auxdb-user:input" : {

        "new-password": "new_password",

        "current-password": "current_password

    }

}

The following is an example of a success response:

{

    "nsp-auxdb-user:output": {},

    "statusCode": "OK"

}


Synchronize the auxiliary database password with the NSP cluster.

  1. Log in as the root user on the NSP deployer host.

  2. Open a console window.

  3. Enter the following:

    cd /opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/tools/database ↵

  4. Enter the following:

    ./sync-auxdb-password.bash ↵

    Messages like the following are displayed:

    timestamp: Synchronizing password for Auxiliary DB Output...

    timestamp: deployment.apps/tlm-vertica-output scaled

    timestamp: secret/tlm-vertica-output patched

    timestamp: deployment.apps/tlm-vertica-output scaled

    timestamp: Synchronization completed.


Close the console window.

End of steps