DGX-1 with V100-32BMC Password Rotation

We have a hundred or more Nvidia DGX-1 with V100-32. Is there a way to update the BMC password on all these servers non interactively

Moving this topic to the DGX Users forum for better visibility.

Hi @Bobby_C ,

The DGX-1 systems support IPMI, so you can update the password using ipmitool noninteractively.

For example, use ipmitool user list 1 to find the ID of the user you want to change:

dgxuser ~$ sudo ipmitool user list 1
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
1                    false   false      true       ADMINISTRATOR
2   qct.admin        false   false      true       ADMINISTRATOR
3                    true    false      false      NO ACCESS
4   dgxuser          true    false      true       ADMINISTRATOR
5   scottetest       true    false      false      NO ACCESS
6                    true    false      false      NO ACCESS
7                    true    false      false      NO ACCESS
8                    true    false      false      NO ACCESS
9                    true    false      false      NO ACCESS
10                   true    false      false      NO ACCESS

To give the user scottetest (ID 5) a new password, you’d issue the ipmitool user set password 5 command to set the password:

dgxuser :~$ sudo ipmitool user set password 5 scottetestpass
Set User Password command successful (user 5)

If you don’t know the current password, but can SSH into your systems, you do the above across the systems with pdsh (pdsh(1) - Linux man page) or any number of ways. If you do know the current password, ipmitool supports doing this over the network by adding the -H (host), -U (username), -P (password), and -I (interface) arguments.

For example:

ipmitool -H 10.110.20.52 -U scottetest-P currentscottetestpass-I lanplus user set password 5 scottetestpass

You could then just script that to run across all the IPs.

1 Like

Yup, thank you Scott that worked great, quick for loop on a file conatining the IP’s

Cheers

Bobby @GM