Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch

Rev 1.6.2
Mellanox Technologies
129
Syntax Description username Specifies a username and creates a user account. New
users are created initially with admin privileges but is
disabled.
cap User capabilities:
admin - full administrative capabilities
monitor - read only capabilities and actions, can not
change the running configuration
disable [login | password]
Disable - disable this account
Disable login - disable all logins to this account
Disable password - disable login to this account using a
local password
name Full name of the user.
nopassword The next login of the user will not require password.
0 | 7
0: specifies a login password in cleartext
7: specifies a login password in encrypted text
password Specifies a password for the user in string form. If [0 |
7] was not specified then the password is in cleartext.
Default The following usersnames are available by default:
admin
monitor
xmladmin
xmluser
Modes/Context Config
History 3.1.0000
Role admin
Example
switch (config) # username monitor full-name smith
switch (config) # show usernames
USERNAME FULL NAME CAPABILITY ACCOUNT STATUS
USERID System Administrator admin Password set
admin System Administrator admin Password set
monitor smith monitor Password set
xmladmin XML Admin User admin No password required
xmluser XML Monitor User monitor No password required
switch (config) #
Related Commands show usernames
show users
Note
To enable a user account, just set a password on it (or use the “... nopassword” command to
enable it with no password required for login)
Removing a user account does not terminate any current sessions that user has open; it just
prevents new sessions from being established
Encrypted password is useful for the “show configuration” command, since the cleartext
password cannot be recovered after it is set