Update remove_node_tsm.sh
This commit is contained in:
parent
7511dab90a
commit
239035d8a2
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# TITRE remove_node_tsm.sh
|
# TITRE remove_node_tsm.sh
|
||||||
# DESCRIPTION :
|
# DESCRIPTION :
|
||||||
@ -18,7 +18,7 @@
|
|||||||
_HOME_PATH="$(cd $(dirname $0) && pwd)"
|
_HOME_PATH="$(cd $(dirname $0) && pwd)"
|
||||||
_SCRIPT_PATH="$_HOME_PATH/$(basename $0)"
|
_SCRIPT_PATH="$_HOME_PATH/$(basename $0)"
|
||||||
|
|
||||||
list="$_HOME_PATH/listnode.txt"
|
LIST="$_HOME_PATH/listnode.txt"
|
||||||
|
|
||||||
. $_HOME_PATH/environment
|
. $_HOME_PATH/environment
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ list="$_HOME_PATH/listnode.txt"
|
|||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
tsmcmd(){
|
tsmcmd(){
|
||||||
dsmadmc -id=$id -pa=$passwd -datao=yes $*
|
dsmadmc -id=$ID -pa=$PASSWD -datao=yes $*
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ return $?
|
|||||||
## PROGRAMME PRINCIPAL ##
|
## PROGRAMME PRINCIPAL ##
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
for node in $(cat $list)
|
for node in $(cat $LIST)
|
||||||
do
|
do
|
||||||
wait 5s
|
wait 5s
|
||||||
echo " "
|
echo " "
|
||||||
|
Loading…
Reference in New Issue
Block a user