B
branigan
I have been trying to come up with a way to report on our brightstor
backups. what I need is a report that will tell me the tape that was
used last night, without all of the other fluff. I parse the log file
and get a dump of everything that occurred on a certain date. However,
what I need is to be able to scan that parse/dump for the tape name. The
output follows:
P:\>findstr /i /c:"Serial #" c:\tools\02m1117.dat
11/17/04 12:01:33 3983 Use media 11/15/04 10:17 AM, serial #
BD8893L1, ID D6DF, sequence #1
11/17/04 12:11:39 3983.32 Backup Session 32 on Media 11/15/04 10:17
AM Serial # BD8893L1
11/17/04 17:34:10 4012 Use media 11/17/04 5:33 PM, serial #
BD8923L1, ID D833, sequence #1
11/17/04 17:45:54 4012.1 Backup Session 1 on Media 11/17/04 5:33PM
Serial # BD8923L1
11/17/04 23:15:31 4012.1 Format BD8592L1 as 11/17/04 5:33 PM (serial
# BD8573L1).
11/17/04 23:42:33 4012.2 Backup Session 2 on Media 11/17/04 5:33 PM
Serial # BD8573L1
11/17/04 23:54:16 4012.3 Backup Session 3 on Media 11/17/04 5:33 PM
Serial # BD8573L1
11/17/04 23:54:31 4012.4 Backup Session 4 on Media 11/17/04 5:33 PM
Serial # BD8573L1
The findstr is pretty consistant with what it provides. I would like to
get only the date i.e. 11/17/04, the time 23:xx and the serial number.
I want the report to look as follows:
11/17/04 17:34:10 BD8923L1
11/17/04 23:42:33 BD8573L1
the diffucult part for me is just getting to the slimmed down output.
backups. what I need is a report that will tell me the tape that was
used last night, without all of the other fluff. I parse the log file
and get a dump of everything that occurred on a certain date. However,
what I need is to be able to scan that parse/dump for the tape name. The
output follows:
P:\>findstr /i /c:"Serial #" c:\tools\02m1117.dat
11/17/04 12:01:33 3983 Use media 11/15/04 10:17 AM, serial #
BD8893L1, ID D6DF, sequence #1
11/17/04 12:11:39 3983.32 Backup Session 32 on Media 11/15/04 10:17
AM Serial # BD8893L1
11/17/04 17:34:10 4012 Use media 11/17/04 5:33 PM, serial #
BD8923L1, ID D833, sequence #1
11/17/04 17:45:54 4012.1 Backup Session 1 on Media 11/17/04 5:33PM
Serial # BD8923L1
11/17/04 23:15:31 4012.1 Format BD8592L1 as 11/17/04 5:33 PM (serial
# BD8573L1).
11/17/04 23:42:33 4012.2 Backup Session 2 on Media 11/17/04 5:33 PM
Serial # BD8573L1
11/17/04 23:54:16 4012.3 Backup Session 3 on Media 11/17/04 5:33 PM
Serial # BD8573L1
11/17/04 23:54:31 4012.4 Backup Session 4 on Media 11/17/04 5:33 PM
Serial # BD8573L1
The findstr is pretty consistant with what it provides. I would like to
get only the date i.e. 11/17/04, the time 23:xx and the serial number.
I want the report to look as follows:
11/17/04 17:34:10 BD8923L1
11/17/04 23:42:33 BD8573L1
the diffucult part for me is just getting to the slimmed down output.