This post is more than 5 years old
2 Intern
•
374 Posts
1
240589
February 25th, 2015 08:00
Create users on multiple iDracs via command line?
Howdy,
We have a bunch of servers with iDrac on them and we want to create a standard user on each of them. Is there any way to do this using the racadm command or anything else that would let me run a script from one central computer and have it add the user to all our various servers so I don't have to remote to each one individually?
Could this maybe be combined with Powershell's invoke-command command to do it?
Also, can anyone point me to the most simple way to create a user using Racadm if that's what I need to use to do this? I'll set the uesrname, password, and make it an admin user.
Thanks!



DELL-Shine K
4 Operator
•
3K Posts
1
February 25th, 2015 09:00
You can use remote racadm commands to create iDRAC users. Below are the command which need to be used.
racadm -r -u -p config -g cfgUserAdmin -I -o cfgUserAdminUserName
racadm -r -u -p config -g cfgUserAdmin -I -o cfgUserAdminPassword
racadm -r -u -p config -g cfgUserAdmin -I -o cfgUserAdminPrivilege 0x1ff
racadm -r -u -p config -g cfgUserAdmin -I -o cfgUserAdminEnable 1
kelemvor33
2 Intern
•
374 Posts
0
February 25th, 2015 09:00
Thanks!
So is the username and password an existing iDrac user? Our problem is that we only have the root user but some of the passwords have been changed and not everyone knows what they all are.
Up until now I've been going in through OMSA and creating a new user that way and am just trying to automate that task. If it requires an existing iDrac user/pass then this probably won't work for me.
And is just which numbered location the user goes in? Does it just overwrite a user if there's already in that spot or will it kick back an error?
Thanks.
DELL-Shine K
4 Operator
•
3K Posts
0
February 25th, 2015 19:00
If you have OMSA installed you can run below racadm commands from Operating System. This does not require iDRAC username and password.
racadm config -g cfgUserAdmin -i -o cfgUserAdminUserName
racadm config -g cfgUserAdmin -i -o cfgUserAdminPassword
racadm config -g cfgUserAdmin -i -o cfgUserAdminPrivilege 0x1ff
racadm config -g cfgUserAdmin -i -o cfgUserAdminEnable 1
i option here is user index. If index already have a user it will overwrite the setting. If requirement is to change root password you can run below command
racadm config -g cfgUserAdmin -i 2 -o cfgUserAdminPassword
kelemvor33
2 Intern
•
374 Posts
0
March 6th, 2015 06:00
Can I use those OMSA commands remotely or do they have to be done from each system individually?
Thanks!
kayasax
1 Message
0
November 2nd, 2015 03:00
on DRAC 7, I had to use -i instead of -I