Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How check something in different machines 1

Status
Not open for further replies.

Yarka

Technical User
Jan 14, 2007
192
ES
Hi,

I need to look the IPs of some machines using korn shell. I try:

serversips="server1 server2 server3"

for i in `ssh aaa@$serversips`
do
netstat -i
done

but it doesn´t work.
 
Code:
server_ips="server1 server2 server3"
for i in $server_ips
do
  ssh user@$i netstat -i
done

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top