1834879 Members
1985 Online
110071 Solutions
New Discussion

Re: connection problem

 
hanyyu1
Advisor

connection problem

There are about 20 unix servers in my network , but sometimes the servers may be disconnect due to the unstable network or some other unexpected reason , this make some problem to our work , so I want to know once the connection has problem and know what server ever has connection problem ( eg. at night time ) , could suggest a way ( or script ) that can do it ? thx.
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: connection problem

First of all you need to find the reason for your unstable network and resolve the issue (bad cables, bad switches, duplicated IP addresses ...).
Have a look at the console output and syslog.log of your servers and search for network related messages like "network disconnected due to ...".

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
RAC_1
Honored Contributor

Re: connection problem

The problems about network are logged at different files.

To start with you can look at nettl.LOGxx files in /var/adm
netfmt -f /var/adm/nettl.LOGxx
Also syslog.log, dmesg

glance metrics about network would also be helpful.
There is no substitute to HARDWORK
saju_2
Respected Contributor

Re: connection problem

Hi

Is there any hp-ux, linux,solaris machine which is unaffected with this network trouble? if so, put cron job for pinging all theses 20 machines in every minute. Redirect the output to some file. Do this for one day and observe the results..

Check the syslog for any kind of network related errors.

Network information regarding ports, ip's and cables should always be documeted and maintained properly, else it will be the biggest nightmare for any administrator.

Regardsd
CS
hanyyu1
Advisor

Re: connection problem

thx replies ,

I will check the reason of disconnect , but is there a way such as ping from one of these servers to each servers , if found any server is diconnected , then inform me by mail , is it possible ? thx.
Mark Ellzey
Valued Contributor

Re: connection problem

Hanyyul,

Here's a script that will check a list of servers and 1) see if they are up, and 2) see if any filesystem is over 90% full. You can modify it for your particular situation.

I have to agree with the previous answers, though; you need to find out why your network is so flaky. Systems shouldn't just disconnect for no reason.

Regards,
Mark
Mark Ellzey
Valued Contributor

Re: connection problem

P.S.

You may also want to change the remsh commands to ssh, for security reasons.

Mark
AwadheshPandey
Honored Contributor

Re: connection problem

see this script and modify it as per ur needs,

Awadhesh
It's kind of fun to do the impossible