lsexport

Use the lsexport command to list all exports or specified exports that are associated with a cluster that is on a Storwize® V7000 Unified storage system. You can also list exports by file system, Netapp, or server that is managed by a Storage Resource Agent (SRA).

Syntax


1  tpctool lsexport  -user  user_name -pwd  password   -url  url
1  -cluster cluster_id
1  -filesystem +  file_system_id
1  -export +  export_id
1  -svr +  server_id
2? -l
2?  -fs  character
2?  -header 
2?  -help
2?  -qs  character
2?   -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.
-cluster cluster_id | -filesystem file_system_id... | -export export_id... | -svr svr_id...
The -cluster parameter specifies that information is displayed for all exports that are associated with a cluster. You can use the lscluster command to return information, including the cluster IDs, for all clusters that were discovered.
The -filesystem parameter specifies that information is displayed only for exports that are associated with specific file systems. You can enter one or multiple file system IDs. Use a comma to separate multiple IDs. You can use the lsfs command to return information, including the file system IDs, for all file systems that were discovered.
The -export parameter specifies that information is displayed only for specific exports. You can enter one or multiple export IDs. Use a comma to separate multiple IDs.
The -svr parameter specifies that information is displayed for all exports that are associated with a specific server. You can use the lssvr command to return information, including the server IDs, for all servers that were discovered.
-l
Specifies that the following information is listed.
ID
An ID for the export. For a filer, the ID is composed of the export name, cluster name, storage system name, and storage system format. For a server, it is composed of the export name and server name.
Export
The name of the export.
Path
The path on the computer where the export is located.
Protocol
The protocol for the export can be one of following values: HTTP, FTP, SCP, CIFS, or NFS.
Active
Indicates whether the export is active or inactive in the cluster. The value can be true or false. If an export is inactive, it is included in the list of exports, but the data that is associated with the export cannot be accessed.
Options
The configuration options that were set for the export. This column contains information only if the protocol is CIFS or NFS.
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: List all nodes that are on a cluster

The following command generates a list of all exports that are on a Storwize V7000 Unified cluster.
tpctool> lsexport  -cluster storage2.storage.tucson.ibm.com+00000200A0E0005C+0 -l

The following output is returned:

ID                                                                  Export       
=================================================================================
RandomExport1+storage2.storage.tucson.ibm.com+00000200A0E0005C+0   RandomExport1
RandomExport1+storage2.storage.tucson.ibm.com+00000200A0E0005C+0   RandomExport1
RandomExport1+storage2.storage.tucson.ibm.com+00000200A0E0005C+0   RandomExport1
testadd+storage2.storage.tucson.ibm.com+00000200A0E0005C+0         testadd
testadd+storage2.storage.tucson.ibm.com+00000200A0E0005C+0         testadd
smcho2+storage2.storage.tucson.ibm.com+00000200A0E0005C+0          smcho2
smcho2+storage2.storage.tucson.ibm.com+00000200A0E0005C+0          smcho2
smcho2+storage2.storage.tucson.ibm.com+00000200A0E0005C+0          smcho2
smcho2+storage2.storage.tucson.ibm.com+00000200A0E0005C+0          smcho2
            
Path                     Active Protocol Options
=============================================================================
/ibm/gpfs0/randomexport1 false  NFS      tbl435 (rw,no_wdelay)
/ibm/gpfs0/randomexport1 false  CIFS     access control=Everyone:ALLOWED:FULL
/ibm/gpfs0/randomexport1 false  HTTP
/ibm/testadd             true   NFS      tbl435 (rw,no_wdelay)
/ibm/testadd             true   CIFS     read only;access control=Everyone:
																																											ALLOWED:FULL
/ibm/gpfs0/smcho         true   CIFS     access control=Everyone:ALLOWED:FULL
/ibm/gpfs0/smcho         true   HTTP
/ibm/gpfs0/smcho         true   FTP
/ibm/gpfs0/smcho         true   SCP