beautypg.com

Command output filtering, Command line overview, Command line syntax – HP Virtual Connect Flex-10 10Gb Ethernet Module for c-Class BladeSystem User Manual

Page 14

background image

Introduction 14

Command output filtering

The CLI provides output filtering capabilities that enable you to display only properties of interest. This feature
is useful for filtering large amounts of output data for specific information. One or more properties can be

specified in the output filtering rules.
The following examples illustrate some common usage scenarios for output filtering:
Example 1: Displaying all enabled users

->show user enabled=true

Example 2: Displaying all VC Ethernet modules

->show interconnect type=VC-ENET

Example 3: Displaying all external uplinks that have a link established

->show uplinkport status=linked

Example 4: Displaying all uplink ports with connector type of RJ-45 and speed configured to Auto

->show uplinkport type=RJ45 Speed=Auto

Example 5: Displaying all servers currently powered on

->show server power=On

Command line overview

The VCM Command Line Interface can be used as an alternative method for administering the VCM. Using
the CLI can be useful in the following scenarios:

You can develop tools that utilize VCM functions for data collection and for executing provisioning and
configuration tasks.

When no browser is available or you prefer to use a command line interface, you can access
management data and perform configuration tasks.

You can batch commands using script files. These script files can be run manually or scheduled to run
automatically.

Command line syntax

CLI input is case-insensitive, except when otherwise noted. The general CLI syntax format is as follows:

[] []

Item

Description

subcommand

Operation performed on a managed element

managed element

Target management entity

parameters

Command extensions for a particular management operation

options

Attributes used to customize or control command execution behavior such as output
format, quiet-mode, and others

properties

One or more name and value pairs that are accessories to the command operation,

mainly for set and add operations

Example: ->add user mark password=asdf89g fullname="Mark Smith" enabled=true