[Veritas-bu] Report functionality in NetBackup
2001-07-03 10:50:45
I just tried out the reporting script backup_report.pl and ran into some
problems. Basically the Gbytes reported was incorrect and the summarys
weren't printing as expected. I had jobs backing up ~ 30 Mbytes that were
reporting 3+ Gbytes.
I thought I would pass along the changes I made to get this working as
expected in case anyone is interested.
Code changes:
After the following comment, add the next to lines, (approx line 38)
############
# Grab any flags or switches that
# may have been passed from the
# command line
############
$omit_fulls = 0;
$omit_incs = 0;
Change the line that begins with (approximately line 230),
if ($type =~ /Full/) {
to
if ($type =~ /full/i) {
change (approx line 240)
elsif ($type =~ /Incremental/) {
to
elsif ($type =~ /incr/i) {
To fix the total Gbytes field, make the following changes, (approx line 366)
$end= $jobs_hash{$job}[5];
$gbytes= $jobs_hash{$job}[4];
$gbytes= sprintf ("%6.4f", $gbytes); # <- add this line
$elapsed= $jobs_hash{$job}[6];
That should take care of if. If you don't want a 20 digit Gbyte value under
the summary, you could probably also add a similiar sprintf statement for the
$total_full_gb and $total_inc_gb variables prior to the print statements.
Cheers.
John Meyers
Computing Services
Wright State University
E-mail: john.meyers AT wright DOT edu
|
|
|