Resetting admin and ZTP user passwords

If the admin or ztp user login is permanently locked after unsuccessful logins attempts, use the fss-change-passwords.sh utility on the deployer VM to unlock it.

Perform this procedure only during a maintenance window.
  1. Create a JSON password configuration file that contains the new password for the admin or ztp user or both.
    The following example shows the contents of the /root/sample-password-values.json file in the deployer VM with only the new passwords for the admin and ztp users:
    {
      "fss": {
        "passwords": {
          "keycloak": {
            "ztp": {
              "current": "",
              "new": "fssNewPass@123"
            },
            "admin": {
              "current": "",
              "new": "fssNewPass@123"
            }
          }
        }
      }
    }
    
  2. Reset the passwords.
    [root@ fss-deployer ~]# fss-change-passwords.sh configure reset-pass.json
    SUCCESS keycloak : ztp
    SUCCESS keycloak : admin
    Waiting for all the pods to come up...
         All pods are Running!