Skip to content

stalinstepin/nsrpasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

NetWorker - nsrpasswd

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.


How do I use it?

  • 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.

Here is the list of tasks that the script performs:

  • 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.

Screenshots:

WINDOWS:


LINUX:


About

Automating NMC password reset process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages