Remote Copy Status Script?

Post Reply
silenthill
Posts: 7
Joined: Mon Jun 27, 2016 3:59 pm

Remote Copy Status Script?

Post by silenthill »

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?
silenthill
Posts: 7
Joined: Mon Jun 27, 2016 3:59 pm

Re: Remote Copy Status Script?

Post by silenthill »

bump!
l-53
Posts: 4
Joined: Mon Feb 13, 2017 11:27 am

Re: Remote Copy Status Script?

Post by l-53 »

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).

https://github.com/hpe-storage/python-3parclient

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.
JamelEaglin
Posts: 1
Joined: Wed Nov 23, 2022 5:17 pm

Re: Remote Copy Status Script?

Post by JamelEaglin »

l-53 wrote: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).

https://github.com/hpe-storage/python-3parclient

There's a getRemoteCopyGroups function which should (depending on OS version) return the items from this article about gyno and 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.


Python supports ssh, and the process I can tell you is as follows:
-Open the list of your servers. Click the one you need and click the button "Instructions".
-Open a terminal (for Linux) or a command line (for Windows) on your computer. Enter the ssh username.
-The connection will ask you a password
NormanC
Posts: 1
Joined: Mon Oct 30, 2023 10:30 am

Re: Remote Copy Status Script?

Post by NormanC »

JamelEaglin wrote:
l-53 wrote: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).

https://github.com/hpe-storage/python-3parclient

There's a getRemoteCopyGroups function which should (depending on OS version) return the items from this article about gyno and 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.


Python supports ssh, and the process I can tell you is as follows:
-Open the list of your servers. Click the one you need and click the button "Instructions".
-Open a terminal (for Linux) or a command line (for Windows) on your computer. Enter the ssh username.
-The connection will ask you a password

I want to add some more words,
SSH or Secure Socket Shell, is a network protocol that provides a secure way to access a remote computer. Secure Shell provides strong authentication and secure encrypted data communications between two computers connecting over an insecure network such as the Internet.
User avatar
Richard Siemers
Site Admin
Posts: 1333
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Remote Copy Status Script?

Post by Richard Siemers »

Yeah the SDK does most functions with an API call, but some functions need SSH. Ran into this issue with a client implemented network ACLs and didnt't allow SSH.

The Powershell toolkit is good too.
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
Post Reply