#!/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;......"