From 7511dab90a330c772ca82c9e6f8eeeed5a411436 Mon Sep 17 00:00:00 2001 From: Demonic Date: Thu, 14 Apr 2022 13:41:12 +0200 Subject: [PATCH] Update remove_node_tsm.sh --- SHELL/TSM/remove_node_tsm.sh | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/SHELL/TSM/remove_node_tsm.sh b/SHELL/TSM/remove_node_tsm.sh index c40dba0..cd357d8 100644 --- a/SHELL/TSM/remove_node_tsm.sh +++ b/SHELL/TSM/remove_node_tsm.sh @@ -1,12 +1,39 @@ -#!/bin/sh +#!/bin/bash + +# TITRE remove_node_tsm.sh +# DESCRIPTION : +# HISTORIQUE : +# T | Date | Auteur | Description +#---+------------+------------------------------+------------------------------------ +# A | 14/04/22 | Demonic | Création +# ----------------------------------------------------------------------------------- + +# LOGGING +# exec > ./log/remove_node_tsm.log 2>&1 + +######################################### +## DECLARATION DES VARIABLES ## +######################################### + +_HOME_PATH="$(cd $(dirname $0) && pwd)" +_SCRIPT_PATH="$_HOME_PATH/$(basename $0)" + +list="$_HOME_PATH/listnode.txt" + +. $_HOME_PATH/environment + +######################################### +## DEFINITION FONCTIONS ## +######################################### tsmcmd(){ -dsmadmc -id=script -pa=scripttsm -datao=yes $* +dsmadmc -id=$id -pa=$passwd -datao=yes $* return $? } -pwd=$(pwd) -list="$pwd/listnode.txt" +######################################### +## PROGRAMME PRINCIPAL ## +######################################### for node in $(cat $list) do