SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Backup Express (BEX) Report Generation
Author Message
Post Backup Express (BEX) Report Generation 
Hi folks,

I desperately need to generate a CSV file on a regular basis of the jobs being done in Backup Express. I can find how to generate a CSV file by stepping through the pdf procedures, but do not know how to automate this. Any ideas? Would the best thing be to just use post-scripts when jobs complete to append to a file and work that way?

Thanks.

Gregg Yurchak

View user's profile Send private message
Post  
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

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB