RLINK: rlk_ecims-dr_lloravol_rvg
STATE: ACTIVE
STATUS: has 1833 outstanding writes, occupying 66328 Kbytes (0%) on the SRLis behind by 00:00:08 hours
FLAGS: write enabled attached consistent connected asynchronous
PROTOCOL: UDP/IP
If I wanted to keep an eye on either the percentage or the time, how would you parse this output? More specifically, this is the output of Veritas Replicator. I would like an email if either A) the percentage is higher than 50% or B) more than 3 hours behind.
I would love to see how someone else would do this with a .sh script...
Thanks,
D
RLINK: rlk_ecims-dr_lloravol_rvg
STATE: ACTIVE
STATUS: has 1833 outstanding writes, occupying 66328 Kbytes (0%) on the SRLis behind by 00:00:08 hours
FLAGS: write enabled attached consistent connected asynchronous
PROTOCOL: UDP/IP
If I wanted to keep an eye on either the percentage or the time, how would you parse this output? More specifically, this is the output of Veritas Replicator. I would like an email if either A) the percentage is higher than 50% or B) more than 3 hours behind.
I would love to see how someone else would do this with a .sh script...
Thanks,
D
This is my version
Last edited by praveenkumar_l; 06-01-2007 at 11:02 AM..
Praveen,
Coincidently, my solution is very similar to yours.
The issue that I see in your solution is the fact that you are loading
the entire file into one string.
This can cause problems in the performance for large files.
Here is my solution not loading the entire file into a string: