#!/bin/ksh
# set array called nameservers
set -A qaservers l8sita01 l4sita06 l4dvidap2256 l98vidap2256
print -n "\nEnter the Client ID :"
read clientID
# print all name servers
for i in ${qaservers[@]}
do
ssh "uname -a; grep jms/erms/$clientID /apps/WebSphere/NA70_TBA/config/cells/CellV70_TBA/resources.xml;"
done
間違い
ssh: uname -a; grep jms/erms/1212 /apps/WebSphere/NA70_TBA/config/cells/CellV70_TBA/resources.xml;: non-recoverable name resolution failure
ssh: uname -a; grep jms/erms/1212 /apps/WebSphere/NA70_TBA/config/cells/CellV70_TBA/resources.xml;: non-recoverable name resolution failure
ssh: uname -a; grep jms/erms/1212 /apps/WebSphere/NA70_TBA/config/cells/CellV70_TBA/resources.xml;: non-recoverable name resolution failure
ssh: uname -a; grep jms/erms/1212 /apps/WebSphere/NA70_TBA/config/cells/CellV70_TBA/resources.xml;: non-recoverable name resolution failure
答え1
sshコマンドにIP /ホスト名を渡してみてください。ループを使用して提供してくださいfor
。
ssh "$i" "uname -a;......"