06-02-2015 04:29 AM
Hi,
Does anyone know how to include the directory details in the "jobs summary" report? Or how to create a basic report with directory details in it? Not only how many files and folder exists but the names of the folders in it etc.
Thanks,
LEVD
Solved! Go to Solution.
06-03-2015 08:42 AM
The following is a rudimentary perl script which I've used to pull that info out of the detailed TXT job log:
#!c:/perl/bin/perl -w
use strict;
my ($in, $out, $buf, @wds, $w);
my $DEBUG = 0;
if ($#ARGV != 1) { &usage; }
$in = $ARGV[0];
$out = $ARGV[1];
open(IN,$in)||die "Can't open $ARGV[0] ($!)\n";
open(OUT,">$out")||die "Can't create output ($!)\n";
while(<IN>) {
chomp $_;
$buf = $_;
@wds = split /\s+/, $buf;
$buf="";
foreach $w (@wds) {
if ( $DEBUG && ($w=~ /\\/ ) ) {print $w."\n"};
if ($w =~ /\\/ ) {print OUT $w."\n";}
}
}
close(IN);
close(OUT);
print "Check output file $out\n";
exit 1;
sub usage() {
print "$0 Infile Outfile\n";
exit 1;
}
If Symantec hasn't changed the format of the logs from Ver. 12, it'll work for a Windows format. There's a different format for *nix logs.
06-02-2015 04:54 AM
...check the canned reports, or you can create a customised report with the specific fields you are looking at.
Thanks!
06-02-2015 05:06 AM
I looked at the custom reports and cant find how to show backed up folder names etc.
Do you have some more information?
06-02-2015 05:09 AM
...if you increase the level of logging in your backup job log it will detail file and folder level at the expense of a larger job log size.
Thanks!
06-02-2015 05:24 AM
ok thanks i allready did that in settings, but i guess i have to wait a bit more.
Thanks!
06-03-2015 08:42 AM
The following is a rudimentary perl script which I've used to pull that info out of the detailed TXT job log:
#!c:/perl/bin/perl -w
use strict;
my ($in, $out, $buf, @wds, $w);
my $DEBUG = 0;
if ($#ARGV != 1) { &usage; }
$in = $ARGV[0];
$out = $ARGV[1];
open(IN,$in)||die "Can't open $ARGV[0] ($!)\n";
open(OUT,">$out")||die "Can't create output ($!)\n";
while(<IN>) {
chomp $_;
$buf = $_;
@wds = split /\s+/, $buf;
$buf="";
foreach $w (@wds) {
if ( $DEBUG && ($w=~ /\\/ ) ) {print $w."\n"};
if ($w =~ /\\/ ) {print OUT $w."\n";}
}
}
close(IN);
close(OUT);
print "Check output file $out\n";
exit 1;
sub usage() {
print "$0 Infile Outfile\n";
exit 1;
}
If Symantec hasn't changed the format of the logs from Ver. 12, it'll work for a Windows format. There's a different format for *nix logs.
07-08-2015 12:24 AM
thx!