troublesooting commands/files


 
Thread Tools Search this Thread
Operating Systems Linux troublesooting commands/files
# 1  
Old 04-07-2008
troublesooting commands/files

hello,

A connection to a remote server is lost frequently.

what files should I check for any hardware or network problems?

how to check what NIC card is active? how to check if any NIC card has/had problems?

I am using RHEL4.

thx
# 2  
Old 04-07-2008
Is this an SSH connection ? If yes, add the following line in /etc/ssh/ssh_config :
ServerAliveInterval 60
and see if it fixes the issue.
Else, troubleshooting NIC : dmesg | grep eth0 (#or appropriate NIC id), ethtool eth0 - to check the status, netstats -s - to check for dropped packets, collisions.
# 3  
Old 04-07-2008
And ifconfig -a to see what network cards you have on which IP addresses in the first place. Perhaps route can help you figure out what connections use which routes.

System logging depends a lot on the platform, if dmesg is uninformative then messages.log or syslog.log might be worth looking at, as well as other files in /var/log (or wherever you have the logs). /etc/syslog.conf or some approximation will tell you how logging is set up but again, this is somewhat system-dependent; there are different syslog daemons and different conventions for how they are usually configured.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Script /commands to get all the files count

Hello All, I would need to write a shell script to find the files generation count for the given day and the folder.Presently I am using (ls -ltr *filename* | grep "Feb 19" | wc -l ) from each folder and getting the counts.I would like to create a script which will get the counts under the... (3 Replies)
Discussion started by: ravish383
3 Replies

2. Shell Programming and Scripting

How to put variables commands in config files?

Hi All, Seeking for your assistance on how to put in variables all the commands in /bin config files: /home/test/config_file/config.cfg cat /home/test/config_file/config.cfg ECHO=/bin/echo LS=/bin/lsMain script cat test.sh source=/home/test/config_file/config.cfg ECHO=$ECHO LS=$LS#i... (3 Replies)
Discussion started by: znesotomayor
3 Replies

3. Shell Programming and Scripting

Find files and execute commands on these files (advanced)

So, I need to find a bunch of files and delete them (this example, but sometimes I need it for something else) and my trusty go-to command has always been: find . -type f -name '*file*' | xargs -I## rm '##' Works wonders... But: touch file\ file\'.txt touch file.txt touch file\ file.txt... (6 Replies)
Discussion started by: Mr.Glaurung
6 Replies

4. Shell Programming and Scripting

Using array commands in 2 files in the same time

Hi bodies. You think is it possible to make arrays from 2 different files in a same time and then for example compare the values in these 2 arrays or any other instruction for example, I have: 38558 29 31 38557 28 31 38556 23 31 38555 08 31 38554 08 28 38553 21... (8 Replies)
Discussion started by: Behrouzx77
8 Replies

5. UNIX for Dummies Questions & Answers

How to test commands in files?

Hi. I'm new here, and I'm trying to enter this big world of unix. I would like to know how can I install a SSH server for free so I can teste some things, like make a file, change files, rename and things like this? If is there any easy way to test all commands it would be interesting too. ... (10 Replies)
Discussion started by: whity
10 Replies

6. UNIX for Dummies Questions & Answers

unix commands related to ftp of files..

Hi, I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies

7. Shell Programming and Scripting

awk commands on files

I want to create an awk script that performs different things on different files. For example, for files with extension .ry I might do something, but for .xt I do something else, and another things on .zc files. How can I do this in one awk script? (3 Replies)
Discussion started by: kristinu
3 Replies

8. Emergency UNIX and Linux Support

Given commands were created as 0 byte files

I were checking few processes running and check what at the files currently I have in my home directory by giving below commands $ ps -ef|grep sleep $ ls -lt | pg after awhile the first column of my commands were created as files given below... -rw-rw-rw- 1 prd 0 Mar 25 09:42 ls... (7 Replies)
Discussion started by: dateez
7 Replies

9. UNIX for Dummies Questions & Answers

Do mv and cp commands lock files in different ways

We have two processes, one which copies a control file into a folder and another which is polling this folder and reading the control files. Sometimes they clash and the reader fails because the copy is still happening. We have been told that we should change the copy to a move because the... (1 Reply)
Discussion started by: sbarnes
1 Replies

10. Shell Programming and Scripting

list files commands

hi all scripting gurus, need some guide and advise from you. i'm trying to list all the files in the year 2004 and the file format is something like this: 11176MZ00004JV900004JVB00004JVCcDBU20041206.txt try to use the symbol ^ but somehow it does not help. i try this as well: ls -ltr |... (12 Replies)
Discussion started by: lweegp
12 Replies
Login or Register to Ask a Question