Actually I am using Red hat Linux 4.4 version.
I want to check the 16 client pc status of connection from server.Whether the connection is available or not.I tried to develop the shell script for this code.But It don't work properly.I am a self study learner.Please give me a shell script for this program which is suitable for Redhat Linux 4.4 version.Please help me to resolve this problem.
Here this are required fields,
One is Server Ip : 10.66.62.5
Next is, 16 Clients IP :
10.66.1.133
10.66.6.133
10.66.7.133
10.66.0.133
10.66.1.5
10.66.2.133
10.66.4.133
10.66.3.133
10.66.5.133
10.66.2.5
10.66.3.5
10.66.7.5
10.66.0.5
10.66.6.5
10.66.4.5
10.66.5.5
I am expecting output like as,
Please select your choice [1-2] :
1 . connections available and listing those ips
2 . connections not available and listing those ips
Please select your choice [1-2]: 1
14 connections are available
Ips are ,
10.66.6.133
10.66.7.133
10.66.0.133
10.66.1.5
10.66.2.133
10.66.4.133
10.66.3.133
10.66.5.133
10.66.2.5
10.66.3.5
10.66.7.5
10.66.0.5
10.66.6.5
10.66.4.5
Please Select your choice [1-2] : 2
2 connections are not available
Ips are,
10.66.1.133
10.66.5.5