I have a scenario where I need to wait for the copy to be 100% in the following output
There can be multiple devices in the copy session so I need to wait till everything becomes 100%, also we can look for the protected tracks t0 become 0
opey # symclone -sid 822 -v -f /symclone_mappings.txt query
SELECTING the list of Source devices in the group:
Device: 008C [SELECTED]
SELECTING Target devices in the group:
Device: 00F5 [SELECTED]
PAIRING of Source and Target devices:
Devices: 008C(S) - 00F5(T) [PAIRED]
Device File Name : /symclone_mappings.txt
Device's Symmetrix ID : 000290300822
Source Device Target Device State Copy
--------------------------------- ---------------------------- ------------ ----
Protected Modified Modified
Logical Sym Tracks Tracks Logical Sym Tracks CGDP SRC <=> TGT (%)
--------------------------------- ---------------------------- ------------ ----
N/A 008C 28208 0 N/A 00F5 0 X... PreCopy 12
Total -------- -------- --------
Track(s) 28208 0 0
MB(s) 1763.0 0.0 0.0
Legend:
(C): X = The background copy setting is active for this pair.
. = The background copy setting is not active for this pair.
(G): X = The Target device is associated with this group.
. = The Target device is not associated with this group.
(D): X = The Clone session is a differential copy session.
. = The Clone session is not a differential copy session.
(P): X = The pre-copy operation has completed one cycle
. = The pre-copy operation has not completed one cycle