3PAR Users Group

Remote Copy Status Script?
Page 1 of 1

Author:  silenthill [ Fri Jun 07, 2019 3:24 pm ]
Post subject:  Remote Copy Status Script?

Hey guys,

I have around 28 3Par's I manage. Almost all of them are involved in remote copy.

Does anyone have a script that I can run daily or weekly that will report on the status of all of my remote copy groups to see if they are (Synced, Syncing, Stale, Stopped) and the last sync time?
That is basically all of the information I need, and i'd like it to be in CSV format, but if not i'll survive.

Also, is there anything I need to enable to run the script? Or would i have to use plink?

Author:  silenthill [ Wed Jun 12, 2019 5:22 pm ]
Post subject:  Re: Remote Copy Status Script?


Author:  l-53 [ Thu Jun 13, 2019 9:14 am ]
Post subject:  Re: Remote Copy Status Script?

I don't use remote copy these days but I recommend working with the python sdk. I don't know if all functions are supported when it falls back to using ssh though, so I recommend running the wsapi service (cli reference doc has the commands needed to enable it).


There's a getRemoteCopyGroups function which should (depending on OS version) return the items from the tables starting on page 358 here:
https://support.hpe.com/hpsc/doc/public ... =c03606339

The function is just a GET request against https://<storage_server>:8080/v1/remotecopygroups if you'd rather not use the sdk or if you'd prefer to use powershell or something else to interact with the wsapi.

From there you can format the output however you want and run the script with cron.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group