lscluster

Use the lscluster command to list all clusters or specified clusters that are on a Storwize V7000 Unified storage system.

Syntax

Read syntax diagramSkip visual syntax diagramtpctoollscluster-user user_name -pwd password -url url -devdevice_id-cluster   cluster_id-l-fs character-header -help-qs character?-silent

Parameters and arguments

-user user_name
Specifies an IBM Spectrum Control user ID.
-pwd password
Specifies the password for the IBM Spectrum Control user ID.
-url url
Specifies the Device server. The format of the URL is system:port_number, where system represents either the host name or IP address, and port_number represents the IBM Spectrum Control Device server port.
-dev dev_id | -cluster cluster_id...
Specifies that information is displayed for all clusters that are on a storage system. This parameter requires the globally unique identifier (GUID) of the storage system. You can use the lsdev command to return information, including the GUID, for all storage systems that were discovered.
The -cluster parameter specifies that information is displayed only for specific clusters. You can enter one or multiple cluster IDs. Use a comma to separate multiple IDs.
-l
Specifies that the following information is listed.
ID
An ID for the cluster that is composed of the cluster name, storage system name, and storage system format.
Cluster
The name of the cluster.
Cluster ID
The cluster ID as defined by the Storwize V7000 Unified file module.
Type
One or more of the following types: interface, management, or storage.
If you omit this parameter, only the ID is returned.
-fs character
Specifies the 7-bit character that separates the information in the output. If you omit this parameter, the information is separated by blank spaces.
-header
Suppresses the column headings in the output. If you omit this parameter, the column headings are included.
-help | -h | -?
Lists help information for the command.
-qs character
Specifies the 7-bit character that surrounds character strings and date stamps in the output. If you omit this parameter, character strings and date stamps are enclosed by double quotation marks (").
-silent
Suppresses all output for the command. If you omit this parameter, output is included.

Example: Listing all clusters that are on a storage system

The following command generates a list of all clusters that are on a Storwize V7000 Unified storage system.
tpctool> lscluster -dev 00000200A0E0005C+0 -l

The following output is returned:

ID                                                  Cluster                         
====================================================================================
storage2.storage.tucson.ibm.com+00000200A0E0005C+0 storage2.storage.tucson.ibm.com
Cluster ID           Type
======================================
12402779238946656959 interface,storage