Networker

Re: [Networker] Batch Client Changes

2008-03-17 14:07:27
Subject: Re: [Networker] Batch Client Changes
From: Fazil Saiyed <Fazil.Saiyed AT ANIXTER DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 17 Mar 2008 13:02:53 -0500
Hello,
Good script, can this be applied during DR when usual cleanup of Networker 
takes upto an hr, what i would like to do is Delete VTL,Change pool 
configurations to only one or two physical Tape devices & remove all 
selection criteria for Tape drives etc.
Currently, the undo of Tape libraries, Devices, pools etc has to be done 
manually, once mmrecov has finished and then often time the Tape lib at 
the site may be different  then jbconfig is rerun, any better way to speed 
things up ?
Above scenario only applies during DR at offsite, may be with dissimilar 
hardware.
Thanks



"Landwehr, Jerome" <jlandweh AT HARRIS DOT COM> 
Sent by: EMC NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU>
03/17/2008 12:37 PM
Please respond to
EMC NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU>; Please respond 
to
"Landwehr, Jerome" <jlandweh AT HARRIS DOT COM>


To
NETWORKER AT LISTSERV.TEMPLE DOT EDU
cc

Subject
Re: [Networker] Batch Client Changes






here's a workaround to append without the append keyword

#script to be used to modify an existing group (ie: append to, instead
of replace).   below
#!/bin/sh

client=$1
newgroup=$2

GROUP() {
nsradmin -i - <<EOF
show group
p type:nsr client;name:$client
EOF
}
oldgroup=`GROUP |cut -f 2 -d ":"| cut -d ";" -f 1`

NEWGROUP() {
nsradmin -i - <<EOF
show group
p type:nsr client;name:$client
update group: $oldgroup,$newgroup
EOF
}
NEWGROUP


HTH
Jerry 

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Denis
Sent: Monday, March 17, 2008 6:08 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Batch Client Changes


Selon Tim Nicholson <tim AT MAIL.USYD.EDU DOT AU>:

> I wish that EMC would update the manual pages to reflect the
> new functionality.  It is not in the UNIX manual entry for 7.3.3.
>
I've tried on 7.3.3 under AIX 5.2.

It does not work :-(

nsradmin> append group:GRP-NETWORKER
unknown command: append

Maybe a new feature from the 7.4 ?

I will take a look at the manual...

To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type 
"signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER



To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER