Leo sez:
Check it out. Lotsa neato geeky stuff.
...
Whoa-it's the whole HTML page. This definitely tells you more than a
ping-it tells you that your Web server is up and serving HTML. In
other words, who cares if your Web server is responding to pings? You
don't have it there to respond to pings, you have it there to serve
Web pages. If it's responding to pings but not serving Web pages, it
is for all intents and purposes "down." By checking the content like
this, you know that it's functioning properly.
Mail Fail
If you can telnet to a socket but are still having application
problems, it's time to point the finger at the app. I saw a
proprietary mail system that was failing at a remote site-the users
were connecting but then getting hung up for long periods of time
while they were trying to access their mail. We put in a mail server
to serve them locally (and get the wide area out of the picture), and
the users were then fine. However, when the new mail server tried to
talk to the main server, we got lots of disconnected sockets-lots of
sockets in the TIME_WAIT state. By lots, I mean, 30 to 50. This
indicated that there were many successful connections, followed by
disconnections.
Odd. Usually, when a connection is established, it will sit there and
do its work merrily; disconnects are usually caused by network
problems-not the application. However, I could stay connected to a
socket using Telnet as long as I liked. This really, really pointed to
the app.
A search of the vendor's Web site on the socket state revealed that,
with certain router configurations, this problem would occur. The
vendor recommended fixing the router but also provided a patch and a
workaround applicable to the server and client software, which ending
up fixing the problem.
Summary
Client/server and file and print networking are the bread and butter
of most networked shops. Although file and print networking is,
underneath it all, a huge agglomeration of client/server protocols,
it's complex enough to warrant being treated differently. File and
print services rely on their clients heavily, so you'll want to keep
everybody on the same sheet of music.
Printing is one of the most important and aggravating functions on
your network. Understanding the print process can help you to quickly
pinpoint where a problem is. Printer-oriented documentation helps
tremendously, particularly when it's slapped on a label on the
physical printer. Knowing how to trace a print problem is really
helpful for complex problems.
File errors aren't always necessarily accurate-someone who opens a
read-only file might be opening a file that's only read-only to him or
her because of security attributes on that file. Knowing how to
navigate your particular server's security is really important here.
You can rule out security-related problems by trying the same
operation after assigning super-user rights to a user-and then quickly
removing them.
Disk space problems can bring your entire operation to a halt. Apart
from finding the culprit, you can alleviate the problem by keeping
some spare disk space on the side.
Socket-level troubleshooting is the keystone of client/server
application troubleshooting after you've ruled out network-level
problems. The netstat -a command is one of your best friends here.
Knowing your service numbers, as well as socket states, can help in
diagnosing a problem. In particular, performing the Telnet trick can
quickly point out whether a service is running on a given host, and it
can sometimes show you whether it's serving up content properly.
Previous Table of Contents Next
Wyszukiwarka