nsrpasswd
is a tool that is written in Python to automate the NMC password reset process. This will help the customers to reset the password without having to touch any file and to find the base64 encoded format of the password which needs to be added to the JSON file. This will make the reset process a lot easier and error free.
- Download the Python script and make an executable file:
- Place the executable under /usr/sbin for Linux and C:\Program Files\EMC NetWorker\nsr\bin for Windows on NetWorker Server.
- Execute the binary by running the following command from terminal for Linux:
/usr/sbin/nsrpasswd
- Navigate to C:\Program Files\EMC NetWorker\nsr\bin and execute the binary by running the following command from command prompt for Windows:
nsrpasswd
- From here all that you need to provide is the password and the rest is taken care by the script.
- Converts the provided plain text password to base64 encoded string.
- Makes a copy of the JSON file and keeps in buffer which will be used for password reset.
- Replaces the password in the JSON file and saves the file under 'C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\conf\authc-local-config.json' on Windows and '/nsr/authc/conf/authc-local-config.json' on Linux.
- Restarts the NetWorker services to the changes to the applied to the authc Database.
- Reports each step performed by the tool to nsrpasswd.log file under /nsr/logs on Linux and C:\Program Files\EMC NetWorker\nsr\logs on Windows. Kindly see the last snippet which has an example of the logging.
WINDOWS:
LINUX: