Unassigning multiple profiles, Supporting comments and blank lines in cli scripts – HP Virtual Connect Flex-10 10Gb Ethernet Module for c-Class BladeSystem User Manual
Page 9
Introduction 9
Unassigning multiple profiles
The unassign profile command includes the ability to unassign multiple profiles from device bays with
a single command.
The following example illustrates four server profiles being unassigned from device bays with a single CLI
command. If an operation fails on one of the device bays, an error message appears for that server or device
bay, but the remaining operations continue.
->unassign profile *
SUCCESS: Profile1 unassigned from device bay enc0:1
SUCCESS: MyProfile2 unassigned from device bay enc0:2
SUCCESS: GreenProfile unassigned from device bay enc0:3
SUCCESS: RedProfile unassigned from device bay enc0:4
Supporting comments and blank lines in CLI scripts
The CLI supports command scripts that contain blank lines and comments. Support for comments and blank
lines enables you to maintain descriptive notes within the configuration script.
The following sample script illustrates a CLI script that contains this type of formatting. All comment lines must
begin with "#".
#------------------------------------------------------------------------
# This is my sample Virtual Connect Domain Configuration Script
# Revision 1.0.1.2
# February 15, 2014
#------------------------------------------------------------------------
# Add Users
add user SomeNetworkUser password=pass1 role=network
add user SomeStorageUser password=pass2 role=storage
add user SomeDomainUser password=pass6 role=domain
add user SomeAdminUser password=pass3 role=*
add user DomainNetworkUser password=764dhh role=domain,network
# Add Profiles with Default VC-Enet and VC-FC Connections
add profile MyProfile
add profile AnotherProfile
add profile Profile45
# Add VC-Enet Networks
add network MyNetwork
add network Network2
- Virtual Connect 8Gb 20-port Fibre Channel Module for c-Class BladeSystem Virtual Connect FlexFabric-20.40 F8 Module for c-Class BladeSystem Virtual Connect 4Gb Fibre Channel Module for c-Class BladeSystem Virtual Connect 8Gb 24-port Fibre Channel Module for c-Class BladeSystem Virtual Connect FlexFabric 10Gb24-port Module for c-Class BladeSystem