Great !
Thanks Thomas & Holly ..
Now i've got two working solutions .. ;-)
.. great hobbit-community ...
thanks & cheers
martin
On Fri, 4 Jan 2008, Kern, Thomas wrote:
When using the DSMCAD for automatic launching, the logfile is monolithic
and the availability of a timestamp is (I think) a function of which
TSM/client version/release you are using. My client is at the Version 5,
Release 4, Level 1.0 level. Because of previous problems with DSMCAD and
memory leaks (and a DBA who likes backups to run at set times), I have
switched to using CRON to initiate the backups and then I can run each
day's output into its own file as well as a monolithic log for our TSM
admin.
When I was using the DSMCAD scheduler and had timestamps, I used this
kind of a subsetting to get a block of status messages for the email
list and separately for reporting to BigBrother/Hobbit. But it you don't
have date/time stamps on each record, you might have to grab the last
nnnn records after making sure that the dsmsched.log was indeed updated
on the day you expect it to be updated on (today/yesterday, etc).
linux:~/bin # cat tsmrpt
#! /bin/sh
grep `date '+%m/%d/%y' --date='yesterday'` /var/log/tsm/dsmsched.log \
| grep --before-context=30 'SCHEDULEREC STATUS END' \
| grep --after-context=30 'SCHEDULEREC STATUS BEGIN' \
| mail -s "TSM Backup Statistics" user-a0ecc2496b16@xymon.invalid
/Thomas Kern
/XXX-XXX-XXXX (O)
/XXX-XXX-XXXX (M)
-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Friday, January 04, 2008 11:59
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Monitor for client TSM-Backup
Great, Thanks !!
i will check it ... the first thing what i
saw, which could be problematical for me is,
that my tsm-log-file is not proberly sorted with date
but only in one file .. but i figure it out ..
many thanks
martin
Gruss
Martin Flemming
Martin Flemming
DESY / IT office : Building 2b / 008a
Notkestr. 85 phone : XXX - XXXX - XXXX
22603 Hamburg mail : user-f286aaa49a76@xymon.invalid