HPE Storage Users Group

A Storage Administrator Community




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Script to check Remote Copy Groups are started
PostPosted: Wed Mar 20, 2013 6:53 am 

Joined: Sun Jul 29, 2012 9:30 am
Posts: 576
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 3377 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Script to check Remote Copy Groups are started
PostPosted: Sat Mar 23, 2013 1:31 am 
Site Admin
User avatar

Joined: Tue Aug 18, 2009 10:35 pm
Posts: 1328
Location: Dallas, Texas
Excellent. Thanks for sharing.

_________________
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.


Top
 Profile  
Reply with quote  
 Post subject: Re: Script to check Remote Copy Groups are started
PostPosted: Thu Apr 04, 2013 10:37 am 

Joined: Sun Jul 29, 2012 9:30 am
Posts: 576
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 3472 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group | DVGFX2 by: Matt