Dell DRAC - idracadm7 procura usuário pelo nome de usuário

1

Portanto, há anos que estamos usando o comando idracadm7 para gerenciar algumas senhas de conta DRAC (por exemplo, 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

E funciona, mas recebo esses avisos:

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

Estou tentando descobrir como usar o subcomando get para substituir o subcomando getconfig . E enquanto eu posso ver como encontrar um usuário por número de índice

idracadm7 -r dracIP -u root -p rootpassword get iDRAC.Users.3.UserName | grep UserName=
UserName=sam

Não consigo encontrar uma maneira de encontrar o número de índice do usuário chamado sam , como eu posso, com o comando getconfig -u .

Estou perdendo isso em algum lugar?

    
por hymie 31.10.2018 / 19:08

0 respostas

Tags