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.

I Can’t Spool, Take Two<br />

Previous Table of Contents Next<br />

I was in a shop that bought a new UNIX host, moved some print queues over, and noticed during<br />

testing that certain print jobs would just sit there for long periods of time before printing. We noticed<br />

that this only happened with wide area–connected printers, as well as printers that were connected to<br />

dedicated print servers.<br />

We further noticed that only one printer at a time was printing on any given standalone print server.<br />

Our host vendor claimed that it had to be our network, whereas our print server vendor said it had to be<br />

the host.<br />

After sending print jobs to multiple queues from the host to one of our standalone print servers, I went<br />

to the host and typed the following:<br />

netstat -an | grep 515<br />

I only saw one socket being opened to the print server. That was enough evidence for me—apparently,<br />

the print services on this (proprietary) version of UNIX didn’t support more than one printer on a given<br />

network host, and it was only sending one job at a time. This was why the wide area stuff was acting<br />

funny, too—there were more than one printer on the other side of the WAN link, and instead of<br />

sending multiple print jobs, one big print job could block all the other, smaller print jobs. Network<br />

traces bore this out.<br />

The vendor claimed that this aberrant behavior was “as designed,” and declined to fix it. So we went<br />

and bought something that worked right.<br />

Content Checker<br />

For certain services, such as HTTP, you can actually check content. For instance, Listing 18.1 shows a<br />

troubleshooting session with a Web server.<br />

Listing 18.1 A Troubleshooting Session with a Web Server<br />

mori A ~$ telnet 167.195.160.6 80<br />

Trying 167.195.160.6…

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

Saved successfully!

Ooh no, something went wrong!