Page 1 of 1

Script to output the primary state of Vvols

Posted: Mon Oct 13, 2014 1:29 am
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.

Re: Script to output the primary state of Vvols

Posted: Thu Oct 30, 2014 11:14 am
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.