there is a snapmirror log parsing tool available on the tools section of NOW, if it doesn't do what you want it should be easily extendable (its in perl)
from the NOW page blurb:
SnapMirror Log Parser (parse_smlog) This Perl script is an example of how the SnapMirror log file can be parsed so that they can be more easily understood. This script runs under Perl5 and should run on most Unix based systems.
steve.
-----Original Message----- From: Todd C. Merrill [mailto:tmerrill@mathworks.com] Sent: Wednesday, March 05, 2003 8:08 AM To: toasters@mathworks.com Subject: etc/log/snapmirror.log parsing
Has anyone written anything to parse the snapmirror logs to convert:
dst Wed Mar 5 03:00:00 EST xxxxx:/vol/vol0/- yyyyy:/vol/vol1/xxxxx_vol0 Request (Scheduled) dst Wed Mar 5 03:00:04 EST xxxxx:/vol/vol0/- yyyyy:/vol/vol1/xxxxx_vol0 Start dst Wed Mar 5 03:51:58 EST xxxxx:/vol/vol0/- yyyyy:/vol/vol1/xxxxx_vol0 End (28215980 KB)
into something a bit more useful, like:
dst Wed Mar 5 03:51:58 EST bat07:/vol/vol0/- bat00bak:/vol/vol1/bat07_vol0 End (28215980 kB, 00:51:54, 530 MB/min)?
which adds elapsed time and transfer rate? Or, something further that completely parses the log and reports:
Source Size Elapsed Rate ------------------------------------------------------------------ xxxxx:/vol/vol0/- 28215980 kB 00:51:54 530 MB/min zzzzz:/vol/vol0/qtree 4345164 kB 00:16:13 262 MB/min [...]
for all my snapmirror transfers for the night?
Until next time...
The MathWorks, Inc. 508-647-7000 x7792 3 Apple Hill Drive, Natick, MA 01760-2098 508-647-7001 FAX tmerrill@mathworks.com http://www.mathworks.com ---