Basic vShell Tasks

Perform these tasks to log in to vShell, access CLI Help, and configure virtual devices.

Starting vShell

Note

Note

If needed, you can open multiple vShell sessions from different Linux shells.

To start vShell, enter vsh.

$ vsh
 For help anytime, type '?'
 When you're done, type '^D'
(vsh)

Displaying vShell Keyboard Shortcuts

To display vShell keyboard shortcuts, enter help.

(vsh) help
  ?  - for help
 Tab - auto fill
 ^P  - previous command
 ^N  - next command
 ^D  - end of the session
 ^A  - move cursor to the beginning
 ^E  - move cursor to the end
 ^W  - delete a word
 ^U  - delete from the beginning
 ^K  - delete to the end

Displaying vShell commands

To display available commands, enter a question mark (?).

(vsh) ?
 clear                   Clear
 connect                 Connect console
 create                  Provisioning
 delete                  Destroy
 exit                    Exit shell
 help                    Get help
 list                    Show running devices
 poweroff                Power off device
 poweron                 Power on device
 show                    Show info
 start                   Power on and connect
 system                  Bridge daemon control

Displaying Command Options

To display command parameters, type the command, press the Space key, and then type a question mark (?) .

(vsh) create chassis link ?
 -bridge                 Bridge
 -interface              Interface
 -probe                  Probe
 String                  Device name
 

Creating a Template

To create a device template, enter the create template command.

Note

Note

For details, refer to create template.

The following example shows how to create a required template type.

(vsh) create template 9540_templ slx9540 /slxos-dist 

Creating a Virtual Device

To create a virtual device, enter the create chassis command.

Note

Note

For details, refer to create chassis.

Deleting a Virtual Device

To delete a virtual device, enter the delete chassis command. The following example includes two devices, test1 and test2. After delete test1, the show chassis command displays only test2.

(vsh) show chassis
 Chassis Name            Type            Power
 ....................................................
 test1                   SLX 9540        on
 test2                   SLX 9540        off

(vsh) delete chassis test1

(vsh) show chassis
 Chassis Name            Type            Power
 ....................................................
 test2                   SLX 9540        off

Turning on and Turning off a Virtual Device

To turn on a virtual device, enter the poweron command. To turn off a virtual device, enter the poweroff command .

(vsh) show system
 Device Name             Type            Power
 ....................................................
 av1                     SLX 9540        off
 av2                     SLX 9540        off
 host1                   VPC             off
 host2                   VPC             off

(vsh) poweron av2

(vsh) show system
 Device Name             Type            Power
 ....................................................
 av1                     SLX 9540        off
 av2                     SLX 9540        on
 host1                   VPC             off
 host2                   VPC             off

Creating a Virtual Workstation

To create a virtual PC workstation, enter the create workstation command.

(vsh) create workstation linux_ws_01 linux

Connecting to a Virtual Device

To connect the current vsh session to the console of a virtual workstation or chassis, enter the connect command.

(vsh) connect test1 

SLX-OS (SLX)
SLX login:

Disconnecting from a Virtual Device

To disconnect from a vSLX virtual device, press Ctrl-]. (Press the ] key while holding down the Ctrl key.)