Итак, в течение многих лет мы использовали idracadm7
команда для управления паролем паролей учетных записей DRAC (например, sam
):
INDEX=`idracadm7 -r dracIP -u root -p rootpasswd getconfig -u sam | grep Index | cut -d= -f2`
idracadm7 -r dracIP -u root -p rootpassword config -i $INDEX -g cfgUserAdmin -o cfgUserAdminPassword sampassword
И это работает, но я получаю такие предупреждения:
RAC1168: The RACADM "getconfig" command will be deprecated in a
future version of iDRAC firmware. Run the RACADM
"racadm get" command to retrieve the iDRAC configuration parameters.
For more information on the get command, run the RACADM command
"racadm help get".
RAC1169: The RACADM "config" command will be deprecated in a
future version of iDRAC firmware. Run the RACADM
"racadm set" command to configure the iDRAC configuration parameters.
For more information on the set command, run the RACADM command
"racadm help set".
Итак, я пытаюсь понять, как использовать get
подкоманда для замены getconfig
подкоманда. И пока я вижу, как найти пользователя по номеру индекса
idracadm7 -r dracIP -u root -p rootpassword get iDRAC.Users.3.UserName | grep UserName=
UserName=sam
Я не могу найти способ найти порядковый номер пользователя с именем sam
как я могу с getconfig -u
команда.
Я где-то скучаю?