Al,
Try this:
Create a file with the client names listed one per line and feed it to an
executable file with the following loop:
for i in `cat /tmp/cnames1`
do
echo "###### updating $i ######"
nsradmin -i -<<EOF
option hidden
. type:nsr client;name:$i
update storage nodes:name of new storage node
update clone storage nodes:name of new storage node, if you clone else
delete this line
EOF
done
Michael Nored
Consultant
Nored Consulting, LLC
M: (407) 399-8162
T: (352) 350-7142
E: mnored AT Netzero DOT net
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Smith, Al
Sent: Wednesday, December 31, 2008 11:11 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Scripting question
Is there a way to do a mass change? Say multiple clients at one time?
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Thierry FAIDHERBE
Sent: Wednesday, December 31, 2008 10:26 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] Scripting question
Hello,
You can easily achieve such a storage node change using nsradmin:
nsradmin> show name;storage nodes
nsradmin> . type:nsr client; name:<client name>;
Current query set
nsradmin> print
name: <test>;
storage nodes: nsrserverhost;
nsradmin> update storage nodes:<NEWSN>
Update? y
updated resource id .............................
nsradmin> print
name: <test>;
storage nodes: NEWSN;
HTH,
Th
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Smith, Al
Sent: mercredi 31 décembre 2008 15:30
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] Scripting question
Hi,
Got a question. I need to know how to script a storage node change.
I have about 50 unique clients that point to a particular storage node.
That storage node is no longer available and I was wondering how to go about
scripting the clients to point to a new storage node.
__________________________________________________
Thanks,
Al Smith
Network and Systems Administrator
Hewlett Packard Certified Systems
Administrator Red Hat Certified Technician
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
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
|