[Veritas-bu] TIR files on the client
Just to clarify. You are saying there are one or two files that reside on the CLIENT, related to TIR. Is this correct? [Shocked] I know there can be several files on the master, depending on how many days the TIR's are kept, but I had not heard of them residing on the CLIENT. We have several of these files going back up to a week ago. What is supposed to clean them up? Regards, Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Exclude lists on Unix clients
New revised version. Automatically gets the version information. The -v switch will allow you to ONLY get the version information. == Begin Code #!/usr/bin/perl use strict; use warnings; use Getopt::Std; # To turn on debuging (i.e. more information) specify -d on the command line our $opt_d = 0; # To get ONLY the version information specify -v on the command line our $opt_v = 0; getopts('dv'); our $debug = $opt_d; my $uname = `uname -n`; chomp $uname; # Desiginate where to write the in/exclude files (must be fully qualified path) our $PWD = $ENV{PWD}; our $output_dir = $PWD/EI_${uname}; if ( ! -d $output_dir ) { mkdir $output_dir } # Location of bp commands our $nbadmin = /usr/openv/netbackup/bin/admincmd; # Generate a list of policies our @policy_list = `$nbadmin/bppllist`; # Used the get output of the bpgetconfig command. Only need for debut purposes our @status = (); foreach my $policy (@policy_list) { chomp $policy; # Get the individual policy information my @policy = `$nbadmin/bppllist $policy -l`; # Extract the info line my @info = grep /^INFO /, @policy; # If the policy type is not standard, ignore if ( (split /\s+/, $info[0])[1] != 0 ) { next } # If the policy is inactive, ignore if ( (split /\s+/, $info[0])[11] != 0 ) { next } # Pull out the clients for this policy and then keep only the client names my @clients = grep /^CLIENT /, @policy; @clients = map { (split /\s+/, $_)[1]} @clients; # Pull out the schedules for this policy and then keep only the schedule names my @schedules = grep /^SCHED /,@policy; @schedules = map { (split /\s+/, $_)[1]} @schedules; # Now for each client foreach my $client (@clients) { if ($debug != 0) { print STDERR $client $policy\n; } # Be sure the client is at leas pingable otherewise the bpgetconfig command will take a long time to fail system(ping -c 1 -W 5 $client /dev/null 21); if ($? != 0 ) { print STDERR $client not pingable\n; next } open VERSION, $output_dir/version.$client or die Couldn't open $output_dir/version.$client for output: $!\n; print VERSION = Version Check of $client ===\n; print VERSION `bpgetconfig -t -A -g $client 21`; print VERSION = End Version Check of $client ===\n; close VERSION; if ( ! $opt_v ) { # get, if any, the basic include and/or exclude files. (i.e. /usr/openv/netbackup/exclude_list or include_list) @status = `$nbadmin/bpgetconfig -e \/$output_dir/exclude.$client.basic\ \$client\ 21`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -exclude no policy failed with $?\n @status } @status = `$nbadmin/bpgetconfig -i \/$output_dir/include.$client.basic\ \$client\ 21`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -include no policy failed with $?\n @status } # get, if any, the policy include and/or exclude files. (i.e. /usr/openv/netbackup/exclude_list.policy or include_list.policy) @status = `$nbadmin/bpgetconfig -e \/$output_dir/exclude.$policy.$client\ \$client\ \$policy\ 21`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -exclude policy only failed with $?\n @status } @status = `$nbadmin/bpgetconfig -i \/$output_dir/include.$policy.$client\ \$client\ \$policy\ 21`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -include policy only failed with $?\n @status } # Now for each schedule in the policy (i.e. /usr/openv/netbackup/exclude.policy.schedule= foreach my $schedule (@schedules) { if ($debug != 0) { print STDERR $client $policy $schedule\n; } @status = `$nbadmin/bpgetconfig -e \/$output_dir/exclude.$policy.$client.$schedule\ \$client\ \$policy\ \$schedule\ 21`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -exclude with policy and schedule failed with $?\n @status } @status = `$nbadmin/bpgetconfig -i \/$output_dir/include.$policy.$client.$schedule\ \$client\ \$policy\ \$schedule\ 21`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -include with policy and schedule failed with $?\n @status } } } } # If any of the bpgetconfigs work the ouput will be in the file name following the -e or -i }
[Veritas-bu] Exclude lists on Unix clients
Sorry, I broke the script. It was taking way too long. Give me another day or two. BTW, it is in Perl and only works for *NIX clients. The normal bpgetconfig -M will get the exclude and include information for Windoze servers. Regards, Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Exclude lists on Unix clients
Ok, here it is. You might also notice that it is written to run on a *NIX master, can be fixed if necessary. If there are any problems let me know and I will attempt to fix them. #=== Begin Code == #!/usr/bin/perl use strict; use warnings; use Getopt::Std; our $opt_d = 0; our $opt_v = 0; getopt ('dv'); our $debug = $opt_d; our $check_version = $opt_v; my $uname = `uname -n`; chomp $uname; # Desiginate where to write the in/exclude files (must be fully qualified path) our $PWD = $ENV{PWD}; our $output_dir = $PWD/EI_${uname}; if ( ! -d $output_dir ) { mkdir $output_dir } # Location of bp commands our $nbadmin = /usr/openv/netbackup/bin/admincmd; # Generate a list of policies our @policy_list = `$nbadmin/bppllist`; # Used the get output of the bpgetconfig command. Only need for debut purposes our @status = (); foreach my $policy (@policy_list) { chomp $policy; # Get the individual policy information my @policy = `$nbadmin/bppllist $policy -l`; # Extract the info line my @info = grep /^INFO /, @policy; # If the policy type is not standard, ignore if ( (split /\s+/, $info[0])[1] != 0 ) { next } # If the policy is inactive, ignore if ( (split /\s+/, $info[0])[11] != 0 ) { next } # Pull out the clients for this policy and then keep only the client names my @clients = grep /^CLIENT /, @policy; @clients = map { (split /\s+/, $_)[1]} @clients; # Pull out the schedules for this policy and then keep only the schedule names my @schedules = grep /^SCHED /,@policy; @schedules = map { (split /\s+/, $_)[1]} @schedules; # Now for each client foreach my $client (@clients) { if ($debug != 0) { print STDERR $client $policy\n; } # Be sure the client is at leas pingable otherewise the bpgetconfig command will take a long time to fail system(ping -c 1 -W 5 $client /dev/null 21); if ($? != 0 ) { print STDERR $client not pingable\n; next } # If version check is set if ($check_version) { print STDERR `bpgetconfig -t -L -g $client` } # get, if any, the basic include and/or exclude files. (i.e. /usr/openv/netbackup/exclude_list or include_list) @status = `$nbadmin/bpgetconfig -e \/$output_dir/exclude.$client.basic\ \$client\`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -exclude no policy failed with $?\n @status } @status = `$nbadmin/bpgetconfig -i \/$output_dir/include.$client.basic\ \$client\`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -include no policy failed with $?\n @status } # get, if any, the policy include and/or exclude files. (i.e. /usr/openv/netbackup/exclude_list.policy or include_list.policy) @status = `$nbadmin/bpgetconfig -e \/$output_dir/exclude.$policy.$client\ \$client\ \$policy\`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -exclude policy only failed with $?\n @status } @status = `$nbadmin/bpgetconfig -i \/$output_dir/include.$policy.$client\ \$client\ \$policy\`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -include policy only failed with $?\n @status } # Now for each schedule in the policy (i.e. /usr/openv/netbackup/exclude.policy.schedule= foreach my $schedule (@schedules) { if ($debug != 0) { print STDERR $client $policy $schedule\n; } @status = `$nbadmin/bpgetconfig -e \/$output_dir/exclude.$policy.$client.$schedule\ \$client\ \$policy\ \$schedule\`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -exclude with policy and schedule failed with $?\n @status } @status = `$nbadmin/bpgetconfig -i \/$output_dir/include.$policy.$client.$schedule\ \$client\ \$policy\ \$schedule\`; if ($? != 0 $debug != 0 ) { print STDERR $client bpgetconfig -include with policy and schedule failed with $?\n @status } } } # If any of the bpgetconfigs work there ouput will be in the file name following the -e or -i } exit; #== End of code == Enjoy! Regards, Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Exclude lists on Unix clients
Sorry about the lack of indentation, they were there originally. :( +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Exclude lists on Unix clients
I believe I have found the problem. The bpgetconfig and bpsetconfig do indeed work, as long as the CLIENT is a the correct level! Thank you bob944 for forcing me to keep trying the -e and -i options. I wrote a Perl script that tries to get all the exclude and include files for a client and/or policy and/or schedule and some of the clients actually respond. :) Script is available if anyone is interested. Regards, Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Migrating 2 masters into one master
There are several ways to do it and several ways to screw it up. Does your environment include disk backups (i.e. DSU or DSSU)? Are the operating systems the same? Are both versions the same? Are you willing to have the merged system NOT supported by Symantec. Are you willing to sacrifice tapes? (i.e. not use the old ones again until all data is expired). There are several more questions but I cannot think of them at the moment. Answers to these question will determine which method is the best. Regards, Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Exclude lists on Unix clients
How do most of create and populate exclude lists on Unix clients, if you don't have access to said client? Regards, Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
[Veritas-bu] Saving restore requests
Does anyone know of a way to save the items clicked in the restore GUI to a file for rerunning from the command line in the future? Patrick +-- |This was sent by netbac...@whelan-consulting.co.uk via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- ___ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu