Skip to main content

bmcuser command

Use the bmcuser command to manage all BMC user accounts.

bmcuser command syntax

OneCli.exe misc bmcuser <command>[options...]
Table 1. bmcuser commands
CommandSyntax exampleDescription
create
OneCli.exe misc bmcuser create --username name 
--password pass --role admin --bmc
USERID:PASSWORD@xx.xx.xx.xx
Create a new user.
delete
OneCli.exe misc bmcuser delete --id 1 --bmc 
USERID:PASSWORD@xx.xx.xx.xx
Delete the specified user.
deletesshkey
OneCli.exe misc bmcuser deletesshkey --id 1 --keyid 
id --bmc USERID:PASSWORD@xx.xx.xx.xx
Delete the specified SSH key.
importsshkey
OneCli.exe misc bmcuser importsshkey --id 1 –file 
file_path --description “sshkey” --bmc
USERID:PASSWORD@xx.xx.xx.xx
Add a SSH key.
info
OneCli.exe misc bmcuse info --bmc USERID:PASSWORD@
xx.xx.xx.xx
Display the specified user information.
list
OneCli.exe misc bmcuser list --bmc USERID:PASSW0RD@
xx.xx.xx.xx
List all user information.
set
OneCli.exe misc set --id id --password password 1 --bmc 
USERID:PASSWORD@xx.xx.xx.xx
Modify the specified user information.
showsshkey
OneCli.exe misc bmcuser showsshkey --id 1  --bmc USERID:
PASSWORD@xx.xx.xx.xx
Display the SSH key of the specified user.
Table 2. bmcuser command specific parameters
ParameterRequired/OptionalNotes
--descriptionOptionalSpecify the descripton of SSH key description.
--fileRequiredSpecify the SSH key file.
--id -iRequiredSpecify user ID.
--keyidRequiredSpecify the ID of the SSH key.
--newpwdOptionalSpecify the new password of BMC default account.
--passwordRequiredSpecify the newly created user password.
--role , -rRequiredSpecify the newly created user role. The valid choices include: admin, operator, and user.
--username, -uRequiredSpecify the newly created user name.
  • --bmc, -b

  • --bmc-username, -u

  • --bmc-password, -w

  • --check-trust, -C

  • --config

  • --help,-h

  • --never-check-trust, -N

  • --node, -n

  • --nolog, -n

  • --output, -o

  • --quiet, -q

Optional

Refer to Table 2.

Example of the bmcuser command

OneCli.exe misc bmcuser set --id admin --password test001 --bmc USERID:PASSWORD@xx.xx.xx.xx