Networker

Re: [Networker] Global way to disable savegrps.

2005-05-04 10:30:03
Subject: Re: [Networker] Global way to disable savegrps.
From: "Maarten Boot (CWEU-USERS/CWNL)" <Maarten.Boot AT NL.COMPUWARE DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 4 May 2005 16:27:26 +0200
Just tested this on my own server

#! /bin/sh

cat <<! |
. type: nsr group;autostart: enabled
show name
print
!
nsradmin -i - |
grep name: |
awk -F: '
        { print $2 }
' |
awk -F\; '
        { print $1 }
' |
awk '{ print $1 }' |
sort |
tee Active_Groups

exit

cat Active_Groups |
while read group
do
echo "Shutting down group: $group"
cat <<END1      |
. type: nsr group;name: $group
update autostart: disabled
END1
nsradmin -i -
done

exit

cat Active_Groups |
while read group
do
echo "Shutting down group: $group"
cat <<END2 |
. type: nsr group;name: $group
update autostart: enabled
END2
nsradmin -i -
done


On Wednesday 04 May 2005 15:57, you wrote:
> Greetings,
>
> Is there a way to disable all my savegrps at once? We will be doing some
> system maintence this weekend which will run late and I am hoping I don't
> have to disable the groups one at a time.
>
> Thanks!
>
> Guy Novello
> Storage Management Analyst
> Private HealthCare Systems
> 781-895-3117
>
> --
> Note: To sign off this list, send a "signoff networker" command via email
> to listserv AT listserv.temple DOT edu or visit the list's Web site at
> http://listserv.temple.edu/archives/networker.html where you can
> also view and post messages to the list. Questions regarding this list
> should be sent to stan AT temple DOT edu
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

-- 
Maarten Boot, 
Compuware Europe B.V.
Hoogoorddreef 5
1101 BA Amsterdam
Tel: +31 20 312 6511

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listserv.temple DOT edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>