Script to output the primary state of Vvols

Post Reply
dardan
Posts: 9
Joined: Wed Sep 03, 2014 7:58 am

Script to output the primary state of Vvols

Post by dardan »

Hi everyone,

Last time we're having re-occurrent issues with remote copy links, which make that the Remote Copy Groups get stuck on stopped, also on secondary state.
This is very annoying as to solve it we need to break the remote copy group and recreate it again, but we don't know on which side the Primary resides.

Can somebody help on creating a basic script (as I'm new to CLI & 3PAR) which outputs the RC Status to txt or csv on daily basis?

Would appreciate your help.

Regards,
D.
hdtvguy
Posts: 576
Joined: Sun Jul 29, 2012 9:30 am

Re: Script to output the primary state of Vvols

Post by hdtvguy »

You need to update the ARRAYNAME variable in the beginning of the script. We run this every 2 hours and then you have to use the return code of non-zero to trigger some other action like send an email. The other nice thing is it creates an output file of all your RC groups and their interval.
Attachments
checkrc.txt
(3.74 KiB) Downloaded 3780 times
Post Reply