users command
Use this command to access all user accounts and their authority levels.
The users command is also used to create new user accounts and modify existing accounts. Running the users command with no options displays a list of users and some basic user information.
users [-user_index] [-options]
Option | Description | Values |
---|---|---|
-[user_index] | User account index number. | Where [user_index] is 1 to 12 (inclusive), or all for all users. |
-l | Display password expiration days | |
-n | User account name | Unique string containing only numbers, letters, periods, and underscores. Minimum of 4 characters and maximum of 16 characters. |
-p | User account password | String that contains at least one alphabetic and one non-alphabetic character. Minimum of 6 characters and maximum of 255 characters. Null creates an account without a password that the user must set during their first login. |
-shp | Set hash password | Total 64 characters |
-ssalt | Set salt | Limited to 64 characters |
-ghp | Get hashpassword | |
-gsalt | Get salt | |
-ep | Encryption password (for backup/restore) | Valid password |
-esalt | salt for encrypted password | Only for backup or restore |
-r | Role name | Administrator, Operator, ReadOnly. As listed in roles command command. |
-clear | Erase specified user account | User account index number to erase must be specified, following the form:
Note If you are authorized, you can remove your own account or the account of other users, even if they are currently logged in, unless it is the only account remaining with User Account Management privileges. Sessions that are already in progress when user accounts are deleted will not be automatically terminated. |
-curr | Display users currently logged in | |
-ai | User accessible Interface | web, ssh, redfish, ipmi, snmp, all Note A default value (web|ssh|redfish) will be set if there is no |
-sauth | SNMPv3 authentication protocol | None, HMAC_MD5, HMAC_SHA96, HMAC128_SHA224, HMAC192_SHA256, HMAC256_SHA384, HMAC384_SHA512 |
-spriv | SNMPv3 privacy protocol | None, CBC_DES, CFB128_AES128, AES192, AES256, AES192C, AES256C |
-spw | SNMPv3 privacy password | Valid password |
-sepw | SNMPv3 privacy password (encrypted) | Valid password |
-sacc | SNMPv3 access type | get |
-strap1 | SNMPv3 trap host name 1 | Valid host name |
-strap2 | SNMPv3 trap host name 2 | Valid host name |
-strap3 | SNMPv3 trap host name 3 | Valid host name |
-pk | Display SSH public key for user | User account index number. Note
|
The following options are used along with -pk | ||
-e | Display entire SSH key in OpenSSH format (SSH public key option) | This option takes no arguments and must be used exclusive of all other users -pk options. Note When using the SSH public key options, the |
-remove | Remove SSH public key from user (SSH public key option) | Public key index number to remove must be given as a specific -key_index or -all for all keys assigned to the user. Note When using the SSH public key options, the |
-add | Add SSH public key for user (SSH public key option) | Quote-delimited key in OpenSSH format Note
|
-upld | Upload an SSH public key in OpenSSH or RFC4716 format (SSH public key option) | Requires the -i and -l options to specify key location. Note
|
-dnld | Download the specified SSH public key to a TFTP/SFTP server (SSH public key option) | Requires a -key_index to specify the key to download and the -i and -l options to specify the download location on another computer running a TFTP server. Note
|
-i | IP address of TFTP/SFTP server for uploading or downloading a key file (SSH public key option) | Valid IP address Note The |
-pn | Port number of TFTP/SFTP server (SSH public key option) | Valid port number (default 69/22) Note An optional parameter for the |
-u | User name for SFTP server (SSH public key option) | Valid user name Note An optional parameter for the |
-pw | Password for SFTP server (SSH public key option) | Valid password Note An optional parameter for the |
-l | File name for uploading or downloading a key file via TFTP or SFTP (SSH public key option) | Valid file name Note The |
-af | Accept connections from host (SSH public key option) | A comma-separated list of hostnames and IP addresses, limited to 511 characters. Valid characters include: alphanumeric, comma, asterisk, question mark, exclamation point, period, hyphen, colon and percent sign. |
-cm | Comment (SSH public key option) | Quote-delimited string of up to 255 characters. Note When using the SSH public key options, the |
system> users
Login ID Name Advanced Attribute Role Password Expires
-------- ---- ------------------ ------ ----------------
1 USERID Native Administrator 89 day(s)
system> users -2 -n sptest -p Passw0rd12 -r Administrator
The user is required to change the password when the user logs in to the management server for the first time
ok
system> users
Login ID Name Advanced Attribute Role Password Expires
-------- ---- ------------------ ------ ----------------
1 USERID Native Administrator 90 day(s)
2 sptest Native Administrator Password expired
system> hashpw –sw enabled –re enabled
system> users -5 –n guest5 –shp 292bcbc41bb078cf5bd258db60b63a4b337c8c954409442cfad7148bc6428fee –ssalt abc –r Administrator
system> users -5 ghp
292bcbc41bb078cf5bd258db60b63a4b337c8c954409442cfad7148bc6428fee
system> users -5 gsalt
abc
system>