Networking NVIDIA NVOS User Manual for InfiniBand Switches

User Account Commands

nv show system aaa user


nv show system aaa user

Displays the list of users with their full names, roles, and states.

Syntax Description

N/A

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show system aaa user

Username  Full-name             Role     State
--------  --------------------  -------  -------
admin     System Administrator  admin    enabled
monitor   System Monitor        monitor  enabled

REST API

GET https://<ip>/nvue_v1/system/aaa/user

Related Commands

nv set system aaa user

nv show system aaa user id


nv show system aaa user <user-id>

Displays the configuration of a user.

Syntax Description

user-id

The username, for example, monitor or test.

Default

N/A

History

25.02.2002 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system aaa user admin
                    operational           applied
------------------  --------------------  --------------------
state               enabled               enabled
role                admin                 admin
full-name           System Administrator  System Administrator
password            *                     *
hashed-password     *                     *
ssh
  [authorized-key]

REST API

GET https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv set system aaa user

nv show system aaa user ssh authorized-key


nv show system aaa user <user-id> ssh authorized-key

Lists all SSH keys associated with the specified user.

Syntax Description

user-id

The username, for example, monitor or test.

Default

N/A

History

25.02.2002 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system aaa user admin ssh authorized-key

SSH Key Name  Key string  Key Type
------------  ----------  -------------------
key1          *           ecdsa-sha2-nistp256

REST API

GET https://<ip>/nvue_v1/system/aaa/user/<user-id>/ssh/authorized-key

Notes

NVOS obfuscates the key string but does not treat it as a secret.

nv show system aaa user ssh authorized-key id


nv show system aaa user <user-id> ssh authorized-key <ssh-authorized-key-id>

Displays the details of a specific SSH key.

Syntax Description

user-id

The username, for example, monitor or test.

ssh-authorized-key-id

The name of an SSH key that is saved for the user.

Default

N/A

History

25.02.2002 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system aaa user admin ssh authorized-key key1

      operational          applied
----  -------------------  -------------------
key   *                    *
type  ecdsa-sha2-nistp256  ecdsa-sha2-nistp256

REST API

GET https://<ip>/nvue_v1/system/aaa/user/<user-id>/ssh/authorized-key/<ssh-authorized-key-id>

Notes

NVOS obfuscates the key string but does not treat it as a secret.

nv show system aaa user ssh


nv show system aaa user <user-id> ssh

Displays the SSH configuration of the user.

Syntax Description

user-id

The username, for example, monitor or test.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show system aaa user admin ssh

                  operational  applied
----------------  -----------  -------
[authorized-key]  key1         key1

REST API

GET https://<ip>/nvue_v1/system/aaa/user/<user-id>/ssh

Notes

NVOS obfuscates the key string but does not treat it as a secret.

nv show system aaa allow-reset-local-passwords


nv show system aaa allow-reset-local-passwords

Displays whether a long press of the reboot button resets the passwords of local users.

Syntax Description

N/A

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv show system aaa allow-reset-local-passwords
       operational  applied
-----  -----------  -------
state  enabled      enabled

REST API

GET https://<ip>/nvue_v1/system/aaa/allow-reset-local-passwords

Related Commands

nv set system aaa allow-reset-local-passwords state

nv show system aaa user spiffe-id


nv show system aaa user <user-id> spiffe-id

Displays all SPIFFE IDs of the user.

Syntax Description

user-id

The username, for example, monitor or test.

Default

N/A

History

25.02.4002

Example

admin@nvos:~$ nv show system aaa user admin spiffe-id

Spiffe Id
-----------------------
spiffe://example.com/prod

REST API

GET https://<ip>/nvue_v1/system/aaa/user/<user-id>/spiffe-id

Related Commands

nv set system aaa user <user-id> spiffe-id <spiffe-id>

Notes

As with certificates, the value of each SPIFFE ID is empty.

nv set/unset system aaa user ssh authorized-key


nv set system aaa user <user-id> ssh authorized-key <ssh-authorized-key-id> key <key>
nv set system aaa user <user-id> ssh authorized-key <ssh-authorized-key-id> type <type>
nv unset system aaa user <user-id> ssh authorized-key [<ssh-authorized-key-id> [key | type]]

Configures an authorized SSH key for the user.
The unset form of the command clears the authorized SSH key configuration of the user.

Syntax Description

user-id

The name of a local user.

ssh-authorized-key-id

The name of the SSH key (up to 100 characters).

key

The Base64 contents of the key (up to 10000 characters).

type

The type of the encoded key: ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, ssh-ed25519, or ssh-rsa.

Default

key: N/A
type: ssh-rsa

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user admin ssh authorized-key key1 key AAAdnfs…==
admin@nvos:~$ nv set system aaa user admin ssh authorized-key key1 type ecdsa-sha2-nistp384
admin@nvos:~$ nv unset system aaa user admin ssh authorized-key
admin@nvos:~$ nv unset system aaa user admin ssh authorized-key key1
admin@nvos:~$ nv unset system aaa user admin ssh authorized-key key1 type
admin@nvos:~$ nv unset system aaa user admin ssh authorized-key key1 key

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>/ssh/authorized-key/<ssh-authorized-key-id>

nv set/unset system aaa user


nv set system aaa user <user-id>
nv unset system aaa user <user-id>

Creates a user account with the specified username. New users are initially created with admin privileges.
The unset form of the command deletes the user account.

Syntax Description

user-id

The username.
The username can be up to 32 characters long. It must begin with a letter or an underscore, followed by letters, digits, underscores, or dashes. It can end with a dollar sign ($).

Default

The default user accounts are admin and monitor.

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user test

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv set system aaa user password

Notes

  • New users must have a password.

  • You cannot delete default users.

nv set/unset system aaa user full-name


nv set system aaa user <user-id> full-name <full-name>
nv unset system aaa user <user-id> full-name

Configures the full name of the user (the GECOS field).
The unset form of the command clears the full name of the user.

Syntax Description

user-id

The username.

full-name

The full name of the user.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user test full-name "Test User"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv set system aaa user

nv set/unset system aaa user state


nv set system aaa user <user-id> state <enabled | disabled>
nv unset system aaa user <user-id> state

Enables or disables the user account.
The unset form of the command returns the user account state to the default (enabled).

Syntax Description

user-id

The username.

Default

enabled

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user test state disabled

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv set system aaa user

Notes

Disabling a user account terminates all bash terminals of the user.

nv set/unset system aaa user role


nv set system aaa user <user-id> role <role-id>
nv unset system aaa user <user-id> role

Configures the role (capabilities) of the user.
The unset form of the command returns the user role to the default (admin).

Syntax Description

user-id

The username.

role-id

The name of the role (up to 100 characters).

Default

admin

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user test role monitor

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv show system aaa role
nv set system aaa user

nv set/unset system aaa user password


nv set system aaa user <user-id> password <password>
nv unset system aaa user <user-id> password

Configures the login password in cleartext.
The unset form of the command clears the password of a non-default user. For a default user, the default password expires and you must change it at the next login.

Syntax Description

user-id

The username.

password

The password for the user, as a string.

If the password contains special Linux characters, enclose it in quotation marks or add a backslash (\) before each special character. For example:
pass\!word
"pass!word"

You must escape a leading dot even if the password is in quotation marks. For example:
"\.password"
\\.password

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user test password "pa\!sswOrd"

admin@nvos:~$ nv set system aaa user test password
Enter new password:
Confirm password:

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv set system aaa user

Notes

  • If you do not specify a password, NVOS prompts you to enter one.

  • If password hardening is enabled, the new password must meet all configured policies.

  • If the password contains special Linux characters, enclose it in quotation marks or add a backslash (\) before each special character. For example:
    pass\!word
    "pass!word"

    You must escape a leading dot even if the password is in quotation marks. For example:
    "\.password"
    \\.password

  • A password is required. You must configure a password before you apply new configurations.

nv set/unset system aaa user hashed-password


nv set system aaa user <user-id> hashed-password <hashed-password>
nv unset system aaa user <user-id> hashed-password

Configures the login password as a hashed string.
The unset form of the command clears the hashed password of the user.

Syntax Description

user-id

The username.

hashed-password

The hashed password string for the user.
You must escape special Linux characters: add a backslash (\) before each special character.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system aaa user test hashed-password "\$y\$j9T\$YwHwJEhi5c2oCgNNVJZgR0\$TboB1DcoS2iGmneLa/9Y54hsAgq9milQKGYmmkRffJC"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>

Related Commands

nv show system aaa user
nv set system aaa user
nv set system aaa user password

Notes

  • If password hardening is enabled, you cannot configure a hashed password.

  • You must escape special Linux characters: add a backslash (\) before each special character.

  • A password is required. You must configure a password before you apply new configurations.

nv set/unset system aaa allow-reset-local-passwords state


nv set system aaa allow-reset-local-passwords state <enabled | disabled>
nv unset system aaa allow-reset-local-passwords state

Enables or disables resetting the passwords of local users with a long press of the reboot button.
The unset form of the command returns the feature to the default state (enabled).

Syntax Description

state

enabled or disabled

Default

enabled

History 

25.02.2002 

Example

admin@nvos:~$ nv set system aaa allow-reset-local-passwords state disabled

REST API

PATCH https://<ip>/nvue_v1/system/aaa/allow-reset-local-passwords

Related Commands

nv show system aaa allow-reset-local-passwords

nv set/unset system aaa user spiffe-id


nv set system aaa user <user-id> spiffe-id <spiffe-id>
nv unset system aaa user <user-id> spiffe-id

Maps a SPIFFE ID to the user. A user can have multiple SPIFFE IDs.
The unset form of the command clears all SPIFFE IDs of the user.

Syntax Description

user-id

The username.

spiffe-id

The SPIFFE ID to map to the user.

The SPIFFE ID must be in the format spiffe://trust-domain/path, where the trust domain and path contain only letters, numbers, dots, dashes, and underscores. The maximum length is 512 characters.

Default

N/A

History

25.02.4002

Example

admin@nvos:~$ nv set system aaa user admin spiffe-id spiffe://trust/domain

REST API

PATCH https://<ip>/nvue_v1/system/aaa/user/<user-id>/spiffe-id/<spiffe-id>

Related Commands

nv show system aaa user spiffe-id

Last updated: