This example logs you in to vShell, creates a template and two linked devices; turns on, connects to, logs in to the devices, and defines IP addresses; and logs out and disconnects from the devices.
user@ubuntu:~$ vsh For help anytime, type '?' When you're done, type '^D' (vsh)
root@VLAB1:~# vsh Bridge address : 10.0.0.64/24 Default gateway : 10.0.0.1 For help anytime, type '?' When you're done, type '^D' (vsh)
(vsh) create template TMPL1-AV slx9540 /slxos-dist Building SLX9540 Image ... ***** Created VM PB4000 ***** PB4000 created.
(vsh) show templates Name Type SLXOS Version Snapshots ................................................ TMPL1-AV slx9540 slx-os17r.2.00 0
(vsh) create chassis av1 1U TMPL1-AV Domain PB_1_av1 defined from /VM/templates/snapsh/av1/BVM_PB_SIM_1.xml (vsh) create chassis av2 1U TMPL1-AV Domain PB_1_av2 defined from /VM/templates/snapsh/av2/BVM_PB_SIM_1.xml
(vsh) create workstation h1 linux Converting qcow2 image to raw format. Please wait a few seconds...Done /VM/templates/host/snapsh/h1/HOST_VM_DEF_S.xml Domain h1 defined from /VM/templates/host/snapsh/h1/HOST_VM_DEF_S.xml
(vsh) show system Device Name Type Power .................................................... av1 SLX 9540 off av2 SLX 9540 off h1 VPC off
(vsh) poweron av1 The device is powered on successfully (1) (vsh) 2 poweron av2 The device is powered on successfully (1) (vsh) poweron h1
Device Name Type Power .................................................... av1 SLX 9540 on av2 SLX 9540 on h1 VPC on
(vsh) create link av1 0/1 av2 0/1
Note
If you were to run show link and show link status at this point, they would display "Down" and "Both sides down", respectively. The link will be up only after you log in to SLX-OS and configure av1 0/1 and av2 0/1, as described below.(vsh) connect av1 SLX-OS (SLX)SLX login: admin password: password device# configure terminal device(config)# interface ethernet 0/1 device(conf-if-eth-0/1)# ip address 10.0.0.1/24 device(conf-if-eth-0/1)# no shut
device(conf-if-eth-0/1)# end
device# exit
SLX-OS (SLX) Ctrl-]
(vsh)
(vsh) connect av2 SLX-OS (SLX)SLX login: admin password: password device# configure terminal device(config)# interface ethernet 0/1 device(conf-if-eth-0/1)# ip address 10.0.0.2/24 device(conf-if-eth-0/1)# no shut
device(conf-if-eth-0/1)# end
device# exit
SLX-OS (SLX) Ctrl-]
(vsh)
(vsh) show link Name Port Name Port State ..................................................................... av1 0/1 <--> av2 0/1 Up
(vsh) poweroff av1 Stopping gos servers for chassis av1 The device is powered off successfully (1) (vsh) poweroff av2 Stopping gos servers for chassis av2 The device is powered off successfully (1) (vsh) poweroff h1