Unassigning multiple profiles, Cli command execution modes – HP Virtual Connect 8Gb 24-port Fibre Channel Module for c-Class BladeSystem User Manual

Page 16

Advertising
background image

Introduction 16


# Done!!!

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

CLI command execution modes

The Virtual Connect Manager CLI provides two different methods for executing commands: interactive shell
mode and non-interactive mode.
Interactive Shell Mode
This mode is used to invoke CLI command operations with the dedicated management shell. The shell is
provided after you log in with valid credentials, and only accepts known VCM CLI commands as input. You
can quit the shell by using the exit command. See the example of logging in to the interactive management

shell below. In the example, the primary VCM is located at IP address 192.168.0.120.

>ssh 192.168.0.120

login as: michael

password: ***********

--------------------------------------------------------------------

HP Virtual Connect Management CLI v3.30

(C) Copyright 2006-2011 Hewlett-Packard Development Company, L.P.

All Rights Reserved

--------------------------------------------------------------------

GETTING STARTED:

help : displays a list of available subcommands

exit : quits the command shell

<subcommand> ? : displays a list of managed elements for a subcommand

<subcommand> <managed element> ? : displays detailed help for a command

->

Non-Interactive Mode
In some cases, you might want to write automated scripts that execute a single command at a time. These
scripts can be used to batch several commands in a single script file from the SSH client. See the example of

how to use the non-interactive mode for CLI command execution below. In the example, the primary VCM is
located at IP address 192.168.0.120.

->ssh [email protected] show enclosure

<command output displayed to user's screen>

Advertising