Veritas-bu

Re: [Veritas-bu] exclude list for windows and cli

2009-02-11 11:03:14
Subject: Re: [Veritas-bu] exclude list for windows and cli
From: "Stafford, Geoff" <GStafford AT barclaycardus DOT com>
To: judy_hinchcliffe AT administaff DOT com, veritas-bu AT mailman.eng.auburn DOT edu
Date: Wed, 11 Feb 2009 10:51:49 -0500

This assumes that you or the person executing the script has local admin rights to the machines you are updating and that you are making consistent changes to the environment (all servers are to exclude c:\123, d:\program files\sql\data, etc).  If you want to customize it further look into what reg.exe will do as far as exporting/importing/etc.  This will overwrite what exists now…obviously modify the end of the reg add line to what you want to exclude (probably want to add the standard built-in exclusions) and use \0 are your line separator.  You could also build a .ini file and use regini.exe to import it if that better suits your needs.  Obviously test on a few boxes before you unleash it. 

 

 

Two scripts we will simply call runme.cmd and theotherone.cmd stored in the same dir.

 

REM this is runme.cmd

theotherone.cmd server1, server2, server3, server999

 

 

 

 

REM this is theotherone.cmd

:loop

if [%1] == [] goto :end

reg.exe add /f \\%1\HKLM\Software\VERITAS\NetBackup\CurrentVersion\Config /v Exclude /t REG_MULTI_SZ /d c:\123\\0d:\sql\data\\0e:\\0

shift

goto :loop

:end

 

It will blaze through the comma separated list of servers and update everything.

 

Geoff Stafford

Barclaycard US

Data Protection Team Manager


From: judy_hinchcliffe AT administaff DOT com [mailto:judy_hinchcliffe AT administaff DOT com]
Sent: Wednesday, February 11, 2009 10:17 AM
To: Stafford, Geoff; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] exclude list for windows and cli

 

I do have a SAN window Media server that I can run commands from.

So I could do that.

 

So explain further on your thought for windows please.

 

 


From: Stafford, Geoff [mailto:GStafford AT barclaycardus DOT com]
Sent: Wednesday, February 11, 2009 8:43 AM
To: Judy Hinchcliffe; veritas-bu AT mailman.eng.auburn DOT edu
Subject: re: [Veritas-bu] exclude list for windows and cli

 

Bpgetconfig/bpsetconfig is what you seek, if you didn’t have the requirement of running it from a unix server you could also very easily script pushing it from a Windows box assuming you or the person executing the script had admin rights.  It’s just modifying a registry key.

 

Message: 3

Date: Tue, 10 Feb 2009 14:18:41 -0600

From: <judy_hinchcliffe AT administaff DOT com>

Subject: [Veritas-bu] exclude list for windows and cli

To: <veritas-bu AT mailman.eng.auburn DOT edu>

Message-ID:

      <FE972C3F59A505478D7DBBF3613AB9D707329F42 AT KWIVSEXP01.corporate.administaff DOT com>

     

Content-Type: text/plain; charset="us-ascii"

 

I know I can go into the gui and open the properties for a bunch of servers at once and add an item to the exclude list for them all.

 

 

 

There has to be a command that I can run on the master server to add a file to a client exclude list - right?

 

 

 

I have to add a new exclude to all my windows servers and I don't want to take all the time to add them via the gui and I wanted to write a script on my unix master to do it.

 

 

 

Problem is I cannot find the command.

 

 

 

So anybody know how to do this via cli?

 

 

 




_______________________________________________________

Barclays
www.barclaycardus.com
_______________________________________________________

This e-mail and any files transmitted with it may contain confidential and/or proprietary information. It is intended solely for the use of the individual or entity who is the intended recipient. Unauthorized use of this information is prohibited. If you have received this in error, please contact the sender by replying to this message and delete this material from any system it may be on.




_______________________________________________________

Barclays
www.barclaycardus.com
_______________________________________________________

This e-mail and any files transmitted with it may contain confidential and/or proprietary information. It is intended solely for the use of the individual or entity who is the intended recipient. Unauthorized use of this information is prohibited. If you have received this in error, please contact the sender by replying to this message and delete this material from any system it may be on.
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>