Novell Cool Solutions

Restarting NDS on OES Linux without the Novell Client Warning Message on Desktops



By:

May 11, 2007 2:46 pm

Reads:6,246

Comments:0

Score:Unrated

Print/PDF

Problem:

Restarting NDS on OES Linux without the Novell Client prompt warning message on every desktop.

Solution:

Step by Step:

  1. cd /sbin
  2. touch restartnds
  3. vi restartnds
  4. copy this script into the file.
  5. #########################################
    #/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!
    ###################################
  6. Save the file ( :wq! )

That’s all !

Environment:

OES Linux + SUSE 9.3

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Categories: Uncategorized

0

Disclaimer: This content is not supported by Novell. 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 it thoroughly before using it in a production environment.

Comment

RSS