lspair

Use the lspair command to list the source and target of the copy service pairs and their status.

Syntax

Read syntax diagramSkip visual syntax diagram>>-repcli-- --lspair-- --+--seq-- --sequence_name---+-- -------->
                         '--cpset-- --source_vol_id-'

>--+----+-- --+---------------------+-- -- --------------------->
   +--s-+     '--state--+-defined-+-'
   '--l-'               '-active--'

>--+------------------+-- --+---------------+-- ---------------->
   '--shadow--+-yes-+-'     '--new--+-yes-+-'
              '-no--'               '-no--'

>--+---------------+-- --session_name--------------------------><
   '--err--+-yes-+-'
           '-no--'

Parameters

-seq sequence_name
Displays only pairs of the sequence name specified. Mutually exclusive with -cpset.
-cpset source_vol_id
Specifies the source volume ID of the copyset on which you want a list of pairs. Mutually exclusive with -seq.
-s
An optional parameter that displays information about only pairs.
-l
An optional parameter that displays the default output, including pairs.
-state defined | active
An optional parameter that shows the state as defined or active.
-shadow yes | no
An optional parameter that displays only pairs that are in the new state.
-new yes | no
An optional parameter that displays only pairs that are in the new state specified.
-err yes | no
An optional parameter that displays only pairs that are in the error state.
session_name
The session name by which the pairs are identified.

Description

You can use the lspair command to list the source and target of the copy service pairs and their status.

Return values

For each pair, the following information is listed:

Column Label Details
SourceID Volume ID of source volume. Displayed in short output along with Target Volume ID
TargetID Volume ID of target volume. Displayed in short output along with Source Volume ID.
State Defined or Active.
Recov Yes or No to indicate if this pair can be considered recoverable.
Shadow Yes or No to indicate if this pair can be considered shadowing.
New Yes or No to indicate if this pair can be considered a new pair.
Copyset Source volume id of the copyset that the pair is associated with.
Timestamp Date and time when the volume was suspended.
Last result The last message issued for this pair. If message ends in E or W then the pair is considered an exception pair

Possible failures

Examples

An invocation example:

repcli lspair -s

The resulting output:

SourceID                      TargetID
=====================================================
ESS:2105.65312:VOL:2002      ESS:2105.65312:VOL:2103

Related topics

(C) Copyright International Business Machines Corporation 2004