1 * ) 2 echo "Unknown system type, value=$client_type" 3 client_type=unknown 4 ;; 5 esac # End of case 6 if [ "$client_type" != "unknown" ] 7 then 8 # Query the remote system and save results to variables. 9 file_info="`$rsh_cmd ${client} \"cd $client_dir;ls -ld 10 rc.adsm;egrep 'Version 2|ERRORLOGRETENTION|TAPEPROMPT' 11 dsm.sys dsm.opt backup.excl\" </dev/null 2>&1`" 12 ######## Output the results. 13 echo "------------ $client_name $client_type ------------" 14 echo "$file_info" | awk '{printf "%-60.60s\n",$0}' 15 fi 16 17 else 18 ######## If the remote system did not respond. 19 echo "timed out @ `date +%y%m%d.%H%M%S`" 20 fi 21 22 done | tee -a ${log_file} #15 |
The fifth slide completes the operating system dependent section and actually executes the commands on the remote system. starts determining the operating system on the remote system. This continues on the fourth slide.
Standard input is redirected to /dev/null on the remote shell command so commands that read standard input won't read the client list from the main system.