ksh script to check dsmadmc access with retrys

Jobst

Newcomer
Joined
Nov 14, 2016
Messages
1
Reaction score
0
Points
0
Does anyone have logic for taking a list of TSM Servers and then after unsuccessfully issuing a batch dsmadmc command, creating a loop to retry just on the TSM Servers that failed, peeling off those that were successful?
 
I'm not good with the syntax, but here is the pseudo code.

At the beginning of the code, delete a file called failed.txt
define $server for your TSM Servers to read from a list
for loop:
dsmadmc -id=id -pa=password -se=$server your command
if fail append $server to failed.txt
end loop
start a new loop that processes the servers in failed.txt
 
Back
Top