This post is more than 5 years old
2 Intern
•
146 Posts
0
1150
May 2nd, 2007 20:00
Scripting Help - Blat Script to Notify When Adaptive Copy Tracks < 100MB
I'm trying to create a script to notfiy me when Adaptive Copy is less than 100MB's so I can dial in and swtich a device group into sync mode. Anyone out there have any ideas? A peer recommended using FIND (this is a windows ECC host running the script) however, I don't think that will work.
No Events found!



dynamox
9 Legend
•
20.4K Posts
0
May 8th, 2007 02:00
dynamox
9 Legend
•
20.4K Posts
0
May 3rd, 2007 14:00
is this your system where yon can install tools ? i am running cygwin bash shell on my ECC server. it would be very easy with bash shell to issue symcli command and then filter particular field, check its value and email using windows recource kit utility called postie.
ble1
4 Operator
•
14.3K Posts
0
May 4th, 2007 00:00
dynamox
9 Legend
•
20.4K Posts
0
May 5th, 2007 08:00
dynamox
9 Legend
•
20.4K Posts
0
May 7th, 2007 13:00
ble1
4 Operator
•
14.3K Posts
0
May 7th, 2007 13:00
vincent_corona
2 Intern
•
146 Posts
0
May 7th, 2007 13:00
New host coming online that needs to be replicated. I don't want the first replication/sync to take all the bandwidth to DR, so first thing I'll do is put the group in Adaptive Copy mode so as to not affect the R1 host, as well as set QoS on the device group. When I resume replication, I want to be notified that Adaptive Copy tracks are less than 100MB so I can know when we can flip the device group back into Sync mode. Instead of me vpn'ing in every hour to check how far along it is, I'd like an email when invalid tracks are less than 100MB so I can set mode sync.
dynamox
9 Legend
•
20.4K Posts
0
May 7th, 2007 13:00
dynamox
9 Legend
•
20.4K Posts
0
May 7th, 2007 18:00
so i am going to run this script that will loop and query the "R1 Invalid tracks" value, when that value is less than or equal 100, i will send an email and exit the loop.
dynamox
9 Legend
•
20.4K Posts
0
May 7th, 2007 18:00
vincent_corona
2 Intern
•
146 Posts
0
May 7th, 2007 18:00
dynamox
9 Legend
•
20.4K Posts
0
May 7th, 2007 19:00
Kiran3
410 Posts
0
May 7th, 2007 19:00
To save on installing CygWin, you can use "verify" instead of query.
(from the docs)
Verifies whether one RDF device pair or all RDF device pairs in a
device group are in the Synchronized state. Optionally, it can
verify whether the RDF device pair or all device pairs in a device
group are in the Updated state, or in any valid RDF pair state.
The RDF verify action returns the following unique return codes
if the verify criteria was not met:
Code # Code Symbol and Description
4 CLI_C_NOT_ALL_SYNCHRONIZED
5 CLI_C_NONE_SYNCHRONIZED
6 CLI_C_NOT_ALL_UPDATED
7 CLI_C_NONE_UPDATED
14 CLI_C_NOT_ALL_VALID
15 CLI_C_NONE_VALID
31 CLI_C_NOT_ALL_SUSPENDED
32 CLI_C_NONE_SUSPENDED
33 CLI_C_NOT_ALL_FAILED_OVER
34 CLI_C_NONE_FAILED_OVER
35 CLI_C_NOT_ALL_UPDATEINPROG
36 CLI_C_NONE_UPDATEINPROG
37 CLI_C_NOT_ALL_PARTITIONED
38 CLI_C_NONE_PARTITIONED
39 CLI_C_NOT_ALL_ENABLED
40 CLI_C_NONE_ENABLED
41 CLI_C_NOT_ALL_SYNCHRONIZED_AND_ENABLED
42 CLI_C_NONE_SYNCHRONIZED_AND_ENABLED
43 CLI_C_NOT_ALL_SUSP_AND_ENABLED
44 CLI_C_NONE_SUSP_AND_ENABLED
45 CLI_C_NOT_ALL_SUSP_AND_OFFLINE
46 CLI_C_NONE_SUSP_AND_OFFLINE
70 CLI_C_NOT_ALL_CONSISTENT
71 CLI_C_NONE_CONSISTENT
complete list can be taken from reference docs.
here is sample output from my windows machine (its more simple to check and process return values on *nix box).
c:\>symrdf -sid 123 -rdfg 3 -g myGroup verify
None of the device(s) in the list are in 'Synchronized' state.
c:\>echo %ERRORLEVEL%
5
c:\>
vincent_corona
2 Intern
•
146 Posts
0
May 7th, 2007 19:00
Kiran3
410 Posts
0
May 7th, 2007 19:00
otherwise it will just loop on that command quiet aggressively...