- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lpstat -v shows device as /dev/null
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2021 02:09 AM - last edited on 11-18-2021 06:05 PM by support_s
11-16-2021 02:09 AM - last edited on 11-18-2021 06:05 PM by support_s
Hello,
I am new to HP-UX servers, can someone explain to me what does the /dev/null in the result of "lpstat -v" means? Been trying to search the answer but could not find any. Most of the printer queue on the server is pointing to /dev/null
Here is the sample result:
# lpstat -v <printqueue>
device for <printqueue>: /dev/null
Also, what is the difference from this lpstat result?
# lpstat -v <printqueue>
device for <printqueue>: /dev/null
remote to IP
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2021 11:19 PM
11-16-2021 11:19 PM
SolutionHP-UX has been around for a long time and back in the old days, printers used a parallel interface known as a Centronix interace. Another interface was called HP-IB. Both are actual devices, like a tape drive. Then printers adopted RS-232 (serial) as an interface, but still a device.
But none of these printers could be very far away from the computer, typically in the computer room. Cable lengths were very short (10 to 50 ft). So the concept of sharing a printer over the network became a reality. It was called remote line printer (rlp) and now there is no device. Instead, the spooler must negotiate over the network with another computer and send the job over a network connection. lpr was mostly Unix in implementation until Windows adopted a compatible lpr (aka, printer sharing).
As the 1980s rolled along, printers became much cheaper and smaller and the demand to send print jobs directly to the printer became a possibility. The printer actually had a LAN port and IP address. And inside was a tiny computer that knew how to negotiate the lpr protoco over port 515.
But lpr is extremely primitive with virtually no status and feedback to the computer sending the job. So HP designed a new network protocol called JetDirect which used port 9100. This is a full wrtie/read connection which then allowed for printer status and control. It was designed in the HP Boise location, primarily for PCs and Macs but they also created HP-UX tools and the rest is history. Every printer manufacturer eventually adopted the JetDirect protocol.
Back to HP-UX. So a device file is only meaningful if there is a direct connection from an I/O card to the printer. Once the print path uses the network, the device becomes /dev/null.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2021 05:30 PM
11-17-2021 05:30 PM
Re: lpstat -v shows device as /dev/null
Thank you so much for explanation! I understand now. This is really helpful. ☺️
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2021 11:19 PM - edited 11-22-2021 03:55 PM
11-17-2021 11:19 PM - edited 11-22-2021 03:55 PM
Re: lpstat -v shows device as /dev/null
One thing that I left out was how to identify the 3 printer connections:
1. serial or Centronics or HP-IB
These are real devices and you'll see the device file in the lpstat listing.
2. lpr (port 515 networking)
These can seen with the word remote in lpstat along with /dev/null
3. JetDirect (port 9100)
Just the /dev/null identifier.
For JetDirect printers, there are a lot of utilities to add, modify, delete, query and setup. Take a look at the man pages for:
hpnpadmin (query)
hpnpf (direct print, also can trace the print data and handshake)
hppi (the menu program, used by SAM or SMH)
addqueue (add a printer
removequeue (delete printer)
modifyqueue (make changes to printer setup)
Bill Hassell, sysadmin