Article
Problem:
Restarting NDS on OES Linux without the Novell Client prompt warning message on every desktop.
Solution:
Step by Step:
- cd /sbin
- touch restartnds
- vi restartnds
- copy this script into the file.
- Save the file ( :wq! )
#########################################
#/bin/bash
# description: Restart NDS without prompt
# author: Eric Champagne
# version: 1.00
# date: 05-07-2007
maxcon=`ncpcon connection 2>/dev/null| sed -ne "s/.*Connection Slots Allocated\t//pg"`
count=0
if [ "$1" == "disable" ]
then
disable=`ncpcon disable login 2>/dev/NULL`
if echo $disable | grep "Login is now disabled" 1>/dev/null 2>&1
then
echo $disable
echo dont forget to 'ncpcon enable login' if you dont bounce your server
else
echo 'ncpcon disable login' is not supported... hurry up to bounce the server...
fi
fi
echo "Max Connections=$maxcon"
while [ $count -le $maxcon ]
do
ncpcon connection clear $count 1>/dev/null 2>&1
count=`expr $count + 1`
done
echo All connections are cleared.
rcndsd restart
echo NDS is restarting!
###################################That's all !
Environment:
OES Linux + SUSE 9.3
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- %count lecturas


0