HPE Storage Users Group
https://3parug.com/

Script to check Remote Copy Groups are started
https://3parug.com/viewtopic.php?f=17&t=290
Page 1 of 1

Author:  hdtvguy [ Wed Mar 20, 2013 6:53 am ]
Post subject:  Script to check Remote Copy Groups are started

So I do not pretend to be a script person, it has been years since I did any real scripting/coding so take this for what is is worth. I have created a script that will check the status of all remote copy groups and create output files and return an error code if any remote copy group is not in a Started status. I figured that there are others like me that need some scripts so anything I can find and plagiarize I am open to offering the same from my work. The one output file is also a good way to get a list of all your remote copy groups without all the noise of the showrcopy command.

Attachments:
checkrcstate.txt [2.22 KiB]
Downloaded 3452 times

Author:  Richard Siemers [ Sat Mar 23, 2013 1:31 am ]
Post subject:  Re: Script to check Remote Copy Groups are started

Excellent. Thanks for sharing.

Author:  hdtvguy [ Thu Apr 04, 2013 10:37 am ]
Post subject:  Re: Script to check Remote Copy Groups are started

OK again apologies for rough scripting, but here is a newer modified version. This is a bit cleaner (IMO) and also will now output the last sync time and replication interval to the console and the output file will have the group name, status and interval converted to minutes. With over 100 remote copy groups this makes it easy to get a csv that can be sorted by a uniform interval.

Attachments:
checkrcstate.txt [3.59 KiB]
Downloaded 3552 times

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/