Cli command execution modes – HP Virtual Connect FlexFabric 10Gb24-port Module for c-Class BladeSystem User Manual

Page 11

Advertising
background image

Introduction 11

Administrator user credential for all enclosures must be consistent to enable VCSU firmware updates for VC

modules in the remote enclosures. All FC-capable modules in the same horizontally adjacent bay pair (bays
1-2, 3-4, and so on) must be of the same type and position in all enclosures.
Multi-enclosure double-dense domains require similar and compatible VC-FC modules in bays 5, 6, 7, and

8 in all enclosures if FC connectivity is required. If a multi-enclosure double-dense configuration contains

incompatible VC-FC modules in bays 5, 6, 7, or 8 in the local or remote enclosures, some or all of the
compatible VC-FC modules in the remote enclosures might be designated INCOMPATIBLE after import.

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.
Press the Tab key to auto complete subcommands and managed-elements. You can also type characters and

then press the Tab key to see a narrowed-down list of command options.
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 v4.10

(C) Copyright 2006-2013 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>

IMPORTANT:

To suppress prompting for a password during login, you must first setup the SSH

encryption keys using the VCM Web GUI, and configure your SSH client properly with the keys.

For additional information on configuring the SSH keys, see the HP Virtual Connect for c-Class
BladeSystem User Guide
.

Advertising