11.01.2013 Views

Workshop

Workshop

Workshop

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Previous Table of Contents Next<br />

I discuss netstat -r (which shows you which route the UNIX host thinks packets should take<br />

through the network) as well as traceroute in Hour 14, “Router and Switch Basics.” The<br />

traceroute command is a great way to find the routers that a packet needs to go through in order to<br />

get from point A to point B. The thing to know about it under UNIX is that not all implementations of<br />

UNIX have it. Most do, but there are still one or two proprietary implementations of UNIX that do not.<br />

However, you can always get it from ftp://ftp.ee.lbl.gov/traceroute.tar.Z. You’ll need to be reasonably<br />

comfortable with the UNIX command line to use this, because it comes in source code form—it requires<br />

you to use the tar command to extract the source code and the make command to compile it.<br />

Summary<br />

UNIX hosts are typically reliable servers used to house databases, client/server applications, and Telnet<br />

sessions. They’re also awesome for running Web and FTP servers.<br />

Most UNIX services run through background programs called daemons. Some service problems can be<br />

solved by stopping and starting a daemon process.<br />

Many times, you’ll need to run commands as the root user. To get comfortable and become good at this,<br />

you’ll probably want to set up a play system, where you’re able to learn from your mistakes without<br />

affecting a crucial system.<br />

You can keep track of the services and clients running on your system through the netstat -a<br />

command. A busy UNIX system can have hundreds or thousands of sockets open at any given time; you<br />

can track down the socket you’re looking for by using netstat in conjunction with the grep<br />

command.<br />

Ping is your best friend (as usual with TCP/IP troubleshooting) in determining whether a problem lies<br />

with the UNIX server, the network, or the router.<br />

<strong>Workshop</strong><br />

Q&A<br />

Q I can’t get to a file on my G: drive (it’s mapped to my UNIX server’s /home file system), but the<br />

person next to me can. When I log in as her, I can get to the file. What’s up with this?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!