Networking NVIDIA NVOS User Manual for InfiniBand Switches

Role Based Access Control Commands

nv show system aaa role


nv show system aaa role

Shows the roles and their classes.

Syntax Description

N/A

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv show system aaa role
Role Name  Class
---------  --------
admin      nvaction
           nvapply
           sudo
monitor    nvshow

REST API

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

Related Commands

nv show system aaa role <role-id>
nv set system aaa role <role-id> class <class-id>

Notes

  • admin: full administrative access

  • monitor: read-only access; cannot change the configuration

nv show system aaa role id


nv show system aaa role <role-id>

Shows the configuration of a role.

Syntax Description

role-id

The name of the role (for example, admin or monitor)

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv show system aaa role monitor
         operational  applied
-------  -----------  -------
groups   adm,nvshow
[class]  nvshow       nvshow

REST API

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

Related Commands

nv show system aaa role
nv set system aaa role <role-id> class <class-id>

Notes

admin: full administrative access
monitor: read-only access; cannot change the configuration


nv show system aaa class


nv show system aaa class

Shows the configuration and state of all classes.

Syntax Description

N/A


Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv show system aaa class
Class Name  Command Path  Permission  Action
----------  ------------  ----------  ------
nvaction    /             act         allow
nvapply     /             rw          allow
nvshow      /             ro          allow
sudo        /             all         allow

REST API

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

Related Commands

nv set system aaa class <class-id> command-path <command-path-id>
nv set system aaa class <class-id> action <arg>

Notes


nv show system aaa class id


nv show system aaa class <class-id>

Shows the configuration and state of a class.

Syntax Description

class-id

The name of the class.

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv show system aaa class nvshow
                applied
--------------  -------
action          allow
[command-path]  /

REST API

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

Related Commands

nv set system aaa class <class-id> command-path <command-path-id>
nv set system aaa class <class-id> action <arg>
nv show system aaa class

Notes


nv show system aaa class id command-path


nv show system aaa class <class-id> command-path [<command-path-id>]

Shows the command paths of a class.

Syntax Description

class-id

The name of the class

command-path-id

The command path (e.g., /interface/eth0)

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv show system aaa class nvshow command-path
Command Path  Permission
------------  ----------
/             ro

REST API

GET https://<ip>/nvue_v1/system/aaa/class/<class-id>/command-path/<command-path-id>

Related Commands

nv set system aaa class <class-id> command-path <command-path-id>
nv set system aaa class <class-id> action <arg>
nv show system aaa class

Notes


nv set/unset system aaa class action


nv set system aaa class <class-id> action <arg>
nv unset system aaa class <class-id> action

Sets the action to take when a command matches the command paths of the class.
The nv unset command resets the action to the default (allow).

Syntax Description

class-id

The name of the class

arg

The action to be taken upon getting a match on the command paths
enum: allow, deny 

Default

allow

History

25.02.3000

Example

admin@nvos:~$ nv set system aaa class ib_enjoyer action allow

REST API

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

Related Commands

nv show system aaa class <class-id>

Notes


nv set/unset system aaa class command-path


nv set system aaa class <class-id> command-path [<command-path-id>] [permission <permission>]
nv unset system aaa class <class-id> command-path [<command-path-id>] [permission]

Sets a command path and its permission for a class.
The nv unset command removes the command path from the class, or all command paths if you do not specify one.

Syntax Description

class-id

The name of the class

command-path-id

The command path (e.g., /interface/eth0)

permission

The permissions on the command path
enum: ro, rw, act, all

Default

all

History

25.02.3000

Example

admin@nvos:~$ nv set system aaa class class3 command-path /interface/eth0/ permission all

REST API

PATCH https://<ip>/nvue_v1/system/aaa/class/<class-id>/command-path/<command-path-id>

Related Commands

nv set system aaa class <class-id> action <arg>

Notes


nv unset system aaa class


nv unset system aaa class [<class-id>]

Deletes a class.

Syntax Description

class-id

The name of the class

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv unset system aaa class ib_enjoyer

REST API

DELETE https://<ip>/nvue_v1/system/aaa/class/<class-id>

Related Commands

nv set system aaa class <class-id> command-path <command-path-id>
nv set system aaa class <class-id> action

Notes

You cannot delete a class that is part of a role.

nv set/unset system aaa role class


nv set system aaa role <role-id> class <class-id>
nv unset system aaa role <role-id> class [<class-id>]

Adds a class to a role.
The nv unset command removes the class from the role, or all classes if you do not specify a class.

Syntax Description

role-id

The name of the role

class-id

The name of the class

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv set system aaa role role1 class class3

REST API

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

Related Commands

nv set system aaa class <class-id> action <arg>
nv set system aaa class <class-id> command-path <command-path-id>
nv set system aaa user <user-id> role <role-id>

Notes


nv unset system aaa role


nv unset system aaa role <role-id>

Deletes a role.

Syntax Description

role-id

The name of the role

Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv unset system aaa role role1

REST API

DELETE https://<ip>/nvue_v1/system/aaa/role/<role-id>

Related Commands

nv set system aaa role <role-id> class <class-id>

Notes

You cannot delete a role that is assigned to a user.


Last updated: