beautypg.com

HP XP Command View Advanced Edition Software User Manual

Page 212

background image




Command line interface commands



212

Command execution example 1: (add pairs to the existing group in the configuration files).

hdvmcli AddConfigFileForReplication -o "D:\logs\XP12000
AddConfigFileForReplication.log" "groupname=group1" "pvolhostid=1"
"pvolinstancenum=11" "svolhostid=1" "svolinstancenum=12"
"pvolarraytype=XP12000" "pvolserialnum=65010001" "pvoldevnum=5"
"svolarraytype=XP12000" "svolserialnum=65010012" "svoldevnum=10"
"replicationfunction=ContinuousAccessSync"

Command execution result 1:

RESPONSE

(Command completed; no data returned)

Method 2: The second method adds a copy group to the RAID Manager configuration definition file
and adds a copy pair definition to the copy group, using the following command:

hdvmcli [URL] AddConfigFileForReplication [option] [groupname=copy-group-name]
pvolhostid=host-ID pvolinstancenum=instance-number [pvolportnum=port-number]
svolhostid=host-ID svolinstancenum=instance-number [svolportnum=port-number]
pvolarraytype=model pvolserialnum=serial-number pvoldevnum=device-number
[pvolportid=port-number|pvolportname=port-name] pvolpoolid=pool-ID svolarraytype=model
svolserialnum=serial-number svoldevnum=device-number [svolportid=port-
number

|svolportname=port-name] svolpoolid=pool-ID [replicationfunction=

{BusinessCopy|ContinuousAccessSync|ContinuousAccessAsync|Snapshot|Continu

ousAccessJournal}] [munum=

Mu-number]

Command execution example 2: (create a group in the configuration files, and then add pairs to
the group).

hdvmcli AddConfigFileForReplication -o "D:\logs\XP1024
AddConfigFileForReplication.log" "pvolhostid=1" "pvolinstancenum=11"
"svolhostid=1" "svolinstancenum=12" pvolarraytype=XP1024" "pvolserialnum=15001"
"pvoldevnum=11" "svolarraytype=XP1024" "svolserialnum=15001" "svoldevnum=12"

Command execution result 2:

RESPONSE

(Command completed; no data returned)

Method 3: The third method creates a new RAID Manager configuration definition file, using the
following command:

hdvmcli [URL] AddConfigFileForReplication [option] [groupname=copy-group-name]
pvolhostid=host-ID [pvolinstancenum=instance-number] pvolportnum=port-number
svolhostid=host-ID [svolinstancenum=instance-number] svolportnum=port-number
pvolarraytype=model pvolserialnum=serial-number pvoldevnum=device-number
[pvolportid=port-number|pvolportname=port-name] pvolpoolid=pool-ID svolarraytype=model
svolserialnum=serial-number svoldevnum=device-number [svolportid=port-
number

|svolportname=port-name] svolpoolid=pool-ID [replicationfunction=

{BusinessCopy|ContinuousAccessSync|ContinuousAccessAsync|Snapshot|Continu

ousAccessJournal}] [munum=

Mu-number]

Command execution example 3: (create configuration files and a group, and then add pairs to the
group).

hdvmcli AddConfigFileForReplication -o "D:\logs\XP1024
AddConfigFileForReplication.log" "pvolhostid=5" "pvolinstancenum=15"
"pvolportnum=50001" "svolhostid=4" "svolinstancenum=15" "svolportnum=50002"
"pvolarraytype=XP1024" "pvolserialnum=15001" "pvoldevnum=11"
"svolarraytype=XP128" "svolserialnum=35001" "svoldevnum=128"
"replicationfunction=ContinuousAccessSync"