CCchris
Joined: 03 Nov 2010
Posts: 3
|
Hi Gregg,
I started work on a perl script scanning through the masterlogs (last day) but then I started using BEXreporter so there was no need.
The codes e.g. SNBLH_xxxxx are the messages and I'm looking at text position xx after space.
Here is part of my code so that you can use the idea.
if ($testtape eq "SNBJH_3462J") { # This is a Tape Backup!!!
$jobid = getvalue("SNBJH_3208J",14,\@data);
$jobname = getvalue("SNBJH_3208J",11,\@data);
$nodename = getvalue("SNBJH_3462J",14,\@data);
$jobtype = getvalue_chopped("SNBJH_3208J",20,\@data);
$rc = gettapejobrc("SNBSCH5674J","SNBSCH5705J",16,\@data);
$starttime = gettime("SNBSCH5607J",\@data);
$endtime = getendtime(\@data);
}
elsif ($testndmp eq "backup_ads" || $testndmp eq "backup_ads_incr" || $testdp eq "SNBDPH_327J") { # This is a NDMP Backup!!!
$jobid = getvalue("SNBJH_3208J",14,\@data);
$jobname = getvalue("SNBJH_3208J",11,\@data);
$nodename = getvalue_chopped("SNBJH_3257J",12,\@data);
$jobtype = getvalue_chopped("SNBJH_3208J",20,\@data);
$rc = gettapejobrc("SNBSCH5674J","SNBSCH5705J",16,\@data);
$starttime = gettime("SNBSCH5607J",\@data);
$endtime = getendtime(\@data);
}
elsif ($testxrs eq "SNBSVH_220J") { # This is a XRS Backup!!!
$jobid = getvalue("SNBSVH_220J",11,\@data);
$jobname = getvalue_chopped("SNBSVH_220J",13,\@data);
$nodename = getvalue_chopped("SNBSVH_278J",13,\@data);
$nodename =~ s/node\(//;
$jobtype = getvalue_chopped("SNBSVH_220J",15,\@data);
$rc = getvalue_chopped("SNBSVH_255J",16,\@data);
$starttime = gettime("SNBSCH5607J",\@data);
$endtime = gettime("SNBSVH_255J",\@data);
}
Best regards
Chris
|