Changing Swarm admin password for Swarm 7.2 or higher

To modify an existing Swarm administrator password, the following steps are required:

1. Change the password in the config file.

  • CSN users: change the admin password to the new password using the GUI.

  • Non-CSN users: change the admin password to the new password in the cluster.cfg file:

    security.administrators = {'admin': 'newpassword', 'snmp': 'ourpwdofchoicehere'}

2. Set the new password for EACH AND EVERY Swarm node using SNMP. The new password does not require a reboot to take effect:

snmpset -v2c -c<CURRENT ACTIVE SNMP PASSWORD> -m ALL <SWARM NODE IP> addModifyAdministrator s "admin:<NEW ADMIN PASSWORD>"

Example:

snmpset -v2c -c ourpwdofchoicehere -m ALL 172.20.3.85 addModifyAdministrator s "admin:newpassword"

Specify the Caringo MIB file if the snmp command is run on a regular linux server such as a PXE server instead of a CSN server.

Example below assumes the MIB file is in the local directory:

Output displays as follows:

3. Optional - Read the settings stream using the new credentials to verify the password change took effect. The settings stream UUID can be found in the "Settings" window linked from the Swarm admin console:

ALTERNATIVE TO SNMP FROM THE COMMAND LINE

Another way to change the Swarm administrator password is by using the snmp-castor-tool.sh script found in the DataCore Swarm support bundle: swarm-support-tools.tgz

Use this command to change the Swarm administrator password:

Example:

The password is changed to "mynewpassword"

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.