This section describes how to use Gaia CLI commands on VSX Gateways. For more about Gaia CLI commands, see the R77 Gaia Administration Guide.
Included Topics |
Many CLI commands for VSX are run on each context (Virtual Device) separately. Change the context to a different Virtual Device and then run the command.
Use the set virtual-system
or vsenv
command to change context to a different Virtual Device.
set virtual-system
- Run from the CLIvsenv
- Run from Expert modeSyntax
set virtual-system
<vsid>
vsenv <vsid>
Parameter |
Description |
vsid |
ID of the Virtual Device. |
Example
set virtual-system
3
Output
Context is set to vsid 3 |
Configure roles permissions for users on each Virtual Device. When you create Virtual Devices, they do not receive any role permissions. You can use the CLI to:
R77 VSX does not support the Gaia WebUI. You cannot configure role permissions for the WebUI.
For more about configuring roles, see the R77 Gaia Administration Guide.
Syntax
add rba role <name> virtual-system-access <vsid>
delete rba role <name> virtual-system-access <vsid|all>
Parameter |
Description |
name |
Role name as a character string that contains letters, numbers or the underscore (_) character. The role name must start with a letter. |
vsid |
ID of the Virtual Device. Use commas to enter multiple Virtual Devices. |
all |
Deletes access permissions to all Virtual Devices. |
Example
add rba role newRole domain-type System all-features
add rba role newRole virtual-system-access 0,2,3
Use the CLI to create and configure roles for the VSX Gateway. Assign Virtual Devices to a role, so that the users of that role can access them.
To create roles for a VSX Gateway:
add rba role
add rba role <name> virtual-system-access <vsid>
save config
This is an example of creating roles.
GizaVSXGW1:0> add rba role newRole domain-type System all-features GizaVSXGW1:0> add rba role newRole virtual-system-access 0,2,3 GizaVSXGW1:0> save config |
Use the CLI to create new users and assign them to a role.
To add users to a role:
add user <username> uid <user-id> homedir <home directory path>
set user <username> password
add rba user role <role name>
save config
This is an example of creating users.
GizaVSXGW1:0> add user user1 uid 160 homedir /home/user1 WARNING Must set password and a role before user can login. - Use 'set user USER password' to set password. - Use 'add rba user USER roles ROLE' to set a role. - Use 'add rba role ROLE virtual-system-access' to set allowed virtual-system role. GizaVSXGW1:0> set user user1 password New password: Verify new password: GizaVSXGW1:0> add rba user user1 roles newRole |
Use the add
and delete rba role
commands to configure the role permissions for Virtual Devices.
Syntax
add rba role <name> virtual-system-access <vsid>
delete rba role <name> virtual-system-access <vsid|all>
Parameter |
Description |
name |
Role name as a character string that contains letters, numbers or the underscore (_) character. The role name must with a letter. |
vsid |
ID of the Virtual Device. Use commas to enter multiple Virtual Devices. |
all |
Deletes access permissions to all Virtual Devices. |
Example
add rba role newRole virtual-system-access 0,2
delete rba role newRole virtual-system-access all
Use the virtual-system
command to show the Virtual Devices on the VSX Gateway.
Syntax
show virtual-system all
Output
Virtual Systems list VS ID VS NAME 0 VSX_GW 1 VSX_GW1_VSW 2 VS1 3 VS2 |