nixCraft Poll

Topics

List of LINUX troubleshooting commands/tools part # 1

Posted by Vivek Gite [Last updated: November 18, 2004]

Generic troubleshooting tips

1) Use tail –f to watch log file in real time, advantage is simple you can spot error or warning message in real time.
tail –f /path/to/log/file
Example(s):
# tail –f /var/log/maillog

2) Use telnet command to see if you get response or not. Sometime you will also see some informative message:
telnet ip port

Example(s):
# telnet localhost 53
# telnet localhost 25

3) Make sure you can see PID of your service.
pidof service-name
cat /var/run/service.pid

Example(s):
# pidof sshd
# cat /var/run/sshd.pid

4) You need to make sure that your DNS server or third party DNS server (ISP) is accessible. This is an important step, as many network services depend upon DNS; especially sendmail/postfix or Squid etc for example. Run dig or nslookup. No timeout should occurred.

# dig your-domain.com
# nslookup gw.isp.com
# more /etc/resolv.conf

5) For networking troubleshooting, make sure your ip address configuration is right, gateway, routine, hostname etc all configured. Here is list of tools on RedHat Linux to verify or modify information:

Hostname verification or setup tools

Ethernet configuration tools

To see if service blocked because of access control

OR

Read man pages of all above command for more details on syntax and usage.

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. karim Says:

    respected sir ,
    i would like 2 know the steps of installing a firewall “centos 4.5″,mail server and the commands use to run it , i would be very greatful to hear from you
    thank you in advance

    karim

  2. vivek Says:

    Hello Karim,

    Use our Linux tech support forum and post all your question, we have some good people on the forum and they will sort out your issues.

  3. malik Says:

    I am suffering from the messages which refuse to be sent to some emails…

    below you will find a sample of those messages, please advice and thanx in advance…

    ***********************************
    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:

    info@satpro.org
    SMTP error from remote mail server after initial connection:
    host mxlb.ispgateway.de [80.67.18.126]: 554 No reverse dns for IP
    196.202.137.213. Help at/Hilfe unter http://www.mfaq.info

    —— This is a copy of the message, including all the headers. ——

    Return-path:
    Received: from afromap by ashrafco.com with local (Exim 4.66)
    (envelope-from )
    id 1I6SxN-0001Ql-FC
    for info@satpro.org; Thu, 05 Jul 2007 18:09:21 +0300
    Received: from 196.202.137.215 ([196.202.137.215])
    (SquirrelMail authenticated user malik@afromap-ltd.com)
    by http://www.afromap-ltd.com with HTTP;
    Thu, 5 Jul 2007 18:09:21 +0300 (EAT)
    Message-ID:
    In-Reply-To:
    References:
    Date: Thu, 5 Jul 2007 18:09:21 +0300 (EAT)
    Subject: Re: Server
    From: “Malik Youssef”
    To: info@satpro.org
    User-Agent: SquirrelMail/1.4.9a
    MIME-Version: 1.0
    Content-Type: text/plain;charset=iso-8859-1
    Content-Transfer-Encoding: 8bit
    X-Priority: 3 (Normal)
    Importance: Normal

    **********************************

    What should i do exactly step by step because i am not full professional in mailserver issues???

  4. vivek Says:

    Create a reverse dns IP entry for your mail server hostname to get rid of this problem. If you need further assistance please use the our mail server forum.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.