HP Virtual Connect 1Gb Ethernet Cookbook
Appendix D: Useful VC CLI Command sets 93
Appendix D: Useful VC CLI Command sets
The following are a collection of useful VC CLI commands. These CLI commands and many more are
documented in detail in Virtual Connect Manager Command Line Interface Version 1.31 (or later)
User Guide. The following CLI commands can be copied and pasted into an SSH session with the
VCM and will apply immediately upon paste.
VC Domain Configuration
#Enclosure Setup
#Import Enclosure and Set Domain Name
#Ensure password matches the OA password
import enclosure username=Administrator password=Administrator
set domain name=VC_Domain_1
#Importing additional or multiple Enclosures to an existing VC Domain
# Importing an Enclosure into an existing VC Domain (Note: As of this writing (VC firmware 2.30) the following
commands must be executed individually and cannot be part of a larger script).
#The IP address, login and password information used in this command are from the OA of the enclosure being
imported.
Import enclosure 10.0.0.60 UserName=Administrator Password=password
Import enclosure 10.0.0.30 UserName=Administrator Password=password
Import enclosure 10.0.0.40 UserName=Administrator Password=password
#Configure MAC and WWN to VC Defined and select pool #1
set domain mactype=vc-defined macpool=1
set domain wwntype=vc-defined wwnpool=1
set serverid type=vc-defined poolid=1
#Change Administrator
set user Administrator password=Administrator
# Set Advanced Ethernet Settings to "Map VLAN Tags" and set "Force server connections" to disabled
set enet-vlan vlantagcontrol=map sharedservervlanid=false
# Set Advanced Ethernet Settings to "Tunnel VLAN Tags"
set enet-vlan vlantagcontrol=tunnel
# Set Advanced Ethernet Settings to a Preferred speed of 500Mb and a Max Speed of 2500Mb
set enet-vlan PrefSpeedType=Custom PrefSpeed=500 MaxSpeedType=Custom MaxSpeed=2500
#Add additional User to VCM, creates User jimbo
add user jimbo password=password privileges=domain,network,server,storage
Creating Shared Uplink Sets
#Create Shared Uplink Set "Prod-Net" and configure a single uplink on VC module 1, port 2
add uplinkset Prod-Net
add uplinkport enc0:1:2 Uplinkset=Prod-Net speed=auto
#Add an additional uplink on port 3 to Prod-Net
add uplinkport enc0:1:3 Uplinkset=Prod-Net speed=auto
#Create Shared Uplink Set "Prod-Net" and configure multiple uplinks on VC Module 1, Ports 1, 2 and 3
add uplinkset Prod-Net
add uplinkport enc0:1:1 Uplinkset=Prod-Net speed=auto
add uplinkport enc0:1:2 Uplinkset=Prod-Net speed=auto
add uplinkport enc0:1:3 Uplinkset=Prod-Net speed=auto