Welcome! » Log In » Create A New Profile

Exclude lists on Unix clients

Posted by pwhelan0610 
Exclude lists on Unix clients
December 02, 2011 05:29AM
How do most of create and populate exclude lists on Unix clients, if you don't have access to said client?

Regards,

Patrick
Exclude lists on Unix clients
December 02, 2011 05:47AM
You need to work with the sys admins of these boxes.

------Original Message------
From: pwhelan0610
Sender: veritas-bu-bounces < at > mailman.eng.auburn.edu
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
ReplyTo: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] Exclude lists on Unix clients
Sent: Dec 2, 2011 8:29 AM

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 netbackup < at > whelan-consulting.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]

Sent via BlackBerry from T-Mobile
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
Exclude lists on Unix clients
December 02, 2011 09:01AM
bpgetconfig and bpsetconfig will do Windows and UNIX as of 6.5.3... same commands, but totally different syntax!

[www.symantec.com]

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of pwhelan0610
Sent: Friday, December 02, 2011 8:30 AM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [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 netbackup < at > whelan-consulting.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]

This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
Exclude lists on Unix clients
December 02, 2011 10:10AM
Doesn't work for Unix, I tried. smiling smiley

On 02/12/2011 18:00, Kendall, Scott wrote:
Quote

bpgetconfig and bpsetconfig will do Windows and UNIX as of 6.5.3... same commands, but totally different syntax!

[www.symantec.com]

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of pwhelan0610
Sent: Friday, December 02, 2011 8:30 AM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [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 netbackup < at > whelan-consulting.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]

This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
Exclude lists on Unix clients
December 02, 2011 12:16PM
I have never tried from a Windows Master Server to UNIX Clients... but I have done it several times from a Solaris Master to Solaris, AIX and Linux Clients.

It uses the same commands, but is done totally different for UNIX Clients! Symantec, if you're listening... WHY???

You can't pipe standard input to the command to set it or expect the results on the screen when you get it.

To set it, you create a file with any name on the NetBackup Server and then use bpsetconfig with -e (or -i for include_list), specifying the file you created, to "copy" the file to the Client specified (while also renaming to exclude_list and putting it into the correct NetBackup dir). If you use the syntax for Policy or Policy/Schedule specific exclude/include lists, it creates it with a name accordingly (e.g. exclude_list.policy).

To get it, you specify the name of the file to be created on the NetBackup Server. bpgetconfig, again with -e or -i, gets the exclude_list (or include_list... policy/schedule specific lists if specified) from the Client and "copies" it to the Server to the file name you specify. You then have to go cat the file or something to look at it. It doesn't display it as standard output.

Think of it as the old "bpgp"... but limited to working with exclude/include lists!

For UNIX clients, refer to the technote I mentioned (also below), the Command Line section at the end of the Documentation Updates that came with the 6.5.3 patch or use the online help (i.e. bpgetconfig -H or bpsetconfig -H).

[www.symantec.com]

For Windows Clients, refer to the 6.5 Admin Guide or the following.

[mailman.eng.auburn.edu]

If this doesn't work when done correctly from a Windows Master Server to a UNIX Client, I'd open a case with Symantec, because it should work, and definitely works with a Solaris Master.

-----Original Message-----
From: Patrick [mailto]
Sent: Friday, December 02, 2011 1:10 PM
To: Kendall, Scott
Cc: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: Re: [Veritas-bu] Exclude lists on Unix clients

Doesn't work for Unix, I tried. smiling smiley

On 02/12/2011 18:00, Kendall, Scott wrote:
Quote

bpgetconfig and bpsetconfig will do Windows and UNIX as of 6.5.3... same commands, but totally different syntax!

[www.symantec.com]

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of pwhelan0610
Sent: Friday, December 02, 2011 8:30 AM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [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 netbackup < at > whelan-consulting.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]

This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
Exclude lists on Unix clients
December 02, 2011 01:10PM
Patrick Whelan said:
Quote

How do most of create and populate exclude lists on Unix
clients, if you don't have access to said client?
As Scott Kendall mentioned, bp[gs]etconfig is the cleanest way to go,
(technically and politically).

That said, setting and maintaining *clude lists with a)
alternate-client restore to force standard *clude lists and/or b)
backup|script|restore to preserve and update existing lists can be a
big win if the need is non-trivial and lines of authority allow it.

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
[mailman.eng.auburn.edu]
Exclude lists on Unix clients
December 05, 2011 02:38AM
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. smiling smiley

Script is available if anyone is interested.

Regards,

Patrick
Exclude lists on Unix clients
December 05, 2011 04:56PM
Dear Patrick, great result, and I, for one, am always keen to see useful scripts that help manage NetBackup better.

Cheers
Crowey

From: pwhelan0610 <nbu-forum < at > backupcentral.com>
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Date: 05/12/2011 18:39
Subject: [Veritas-bu] Exclude lists on Unix clients
Sent by: veritas-bu-bounces < at > mailman.eng.auburn.edu

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. smiling smiley

Script is available if anyone is interested.

Regards,

Patrick

+----------------------------------------------------------------------
|This was sent by netbackup < at > whelan-consulting.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
Exclude lists on Unix clients
December 05, 2011 05:11PM
Hi Patrick,

May I request for the script?

Do u have any script, which will help to extract all the backup Policy details ?
I have more than 300 different backup policies.
___________________________________
Harpreet Singh Chana
Sr. Backup Administrator
2, Changi South Lane
Singapore 486123
Singapore

Number +65-6876-9313
Number +65-9186-0581
Number +65-6876-9711

HarpreetSingh.Chana < at > sg.flextronics.com (HarpreetSingh.Chana &lt; at &gt; sg.flextronics.com)
www.flextronics.com
___________________________________

From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of JCrowe < at > marketforce.com.au
Sent: Tuesday, December 06, 2011 8:57 AM
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: Re: [Veritas-bu] Exclude lists on Unix clients

Dear Patrick, great result, and I, for one, am always keen to see useful scripts that help manage NetBackup better.

Cheers
Crowey

From: pwhelan0610 <nbu-forum < at > backupcentral.com>
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Date: 05/12/2011 18:39
Subject: [Veritas-bu] Exclude lists on Unix clients
Sent by: veritas-bu-bounces < at > mailman.eng.auburn.edu

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. smiling smiley

Script is available if anyone is interested.

Regards,

Patrick

+----------------------------------------------------------------------
|This was sent by netbackup < at > whelan-consulting.co.uk via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message
Exclude lists on Unix clients
December 06, 2011 12:46AM
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
Exclude lists on Unix clients
December 07, 2011 12:52AM
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:confused smileytd;

# 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 $policyn"; }

# 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 2>&1");
if ($? != 0 ) { print STDERR "$client not pingablen"; 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 2>&1`;
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" 2>&1`;
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" 2>&1`;
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" 2>&1`;
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" 2>&1`;
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 $schedulen"; }
@status = `$nbadmin/bpgetconfig -e "/$output_dir/exclude.$policy.$client.$schedule" "$client" "$policy" "$schedule" 2>&1`;
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" 2>&1`;
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
}

exit;
====================== End of code ========================

Enjoy.

Patrick
Sorry, only registered users may post in this forum.

Click here to login