Skip to content

get and sync replication groups#649

Open
miriam19 wants to merge 3 commits intovmware:masterfrom
miriam19:replication1
Open

get and sync replication groups#649
miriam19 wants to merge 3 commits intovmware:masterfrom
miriam19:replication1

Conversation

@miriam19
Copy link
Copy Markdown

@miriam19 miriam19 commented Jul 27, 2020

Two samples :-
get_replication_groups.py
sync_replication_group.py

The samples have been tested on the replication testbed for vvol.
root@sc-rdops-vm12-dhcp-120-130:~/pyvmomi_testing# python3 final_sample/get_replication_groups.py -s 10.193.33.76 -u '' -p ''

Replication group Id:
device Id: 21350236-1d95-49d9-906d-c30f8f4fab41
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
State: TARGET

Replication group Id:
device Id: 2bb243e8-ae5d-4328-afb3-d54b9311dcd2
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
State: TARGET

Replication group Id:
device Id: 2fca2036-291b-41ce-a780-886ff60a283f
fault domain Id: 1b542711-9bcb-48b0-941d-8c45a3fbef6e
State: TARGET

Replication group Id:
device Id: 35765be0-ede9-4412-8926-e11ac034fa8d
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
State: TARGET

Replication group Id:
device Id: c3bfb139-a2b9-4408-98ab-c3a29a5a5628
fault domain Id: 1b542711-9bcb-48b0-941d-8c45a3fbef6e
State: INTEST

Replication group Id:
device Id: eb244ec0-fb05-4c10-a588-e6e750e4c680
fault domain Id: 1b542711-9bcb-48b0-941d-8c45a3fbef6e
Source Replication Group Name: cokerg2
State: SOURCE

root@sc-rdops-vm12-dhcp-120-130:~/pyvmomi_testing# python3 final_sample/sync_replication_group.py -s 10.193.33.76 -u '' -p '' -r '21350236-1d95-49d9-906d-c30f8f4fab41' -n 'pit82'

(sms.TaskInfo) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'SmsTask-135',
task = 'sms.Task:SmsTask-135',
object = 'sms.provider.VasaProvider:vasaProvider-12',
error = ,
result = ,
startTime = 2020-06-19T08:00:01.416Z,
completionTime = ,
state = 'running',
progress = 1
}
root@sc-rdops-vm12-dhcp-120-130:~/pyvmomi_testing# python3 get_target_point_in_time_replicas.py -s 10.193.33.76 -u '' -p '' -r '21350236-1d95-49d9-906d-c30f8f4fab41' -n 'pit82'

pitName: pit82
Creation Time: 2020-06-19 08:00:02+00:00
Replication Group:
device group Id: 21350236-1d95-49d9-906d-c30f8f4fab41
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
Pit Id: 15ce6429-6e95-40d4-8dce-fe5def40b9c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant