Find Out HP Network Printer Serial Number with Bash Shell On Linux/Unix

I manage a small network including couple of HP printers. Is there an easy way to access HP printer serial number in the terminal on Linux or Unix-like system? How do I find the model, product, and serial number on my HP printer using bash command line options? There are many ways to get this information i.e. you can find out HP network printer serial number using bash shell on a Linux or Unix like systems. This tutorial expalins how to find the serial number of your HP printer devices using the command line options on a Linux or Unix-like systems.

Adblock detected 😱

My website is made possible by displaying online advertisements to my visitors. I get it! Ads are annoying but they help keep this website running. It is hard to keep the site running and producing new content when so many people block ads. Please consider donating money to the nixCraft via PayPal/Bitcoin, or become a supporter using Patreon.

Tool To Find Out HP Network Printer Serial Number Remotely Using Bash SHELL

curl command – Standard tool to transfer data from or to a server.

[donotprint][/donotprint]

hp-info command – Part of hp-toolbox software.

Printer Management Language to get information from the printer.

Use curl command to query HP printer for serial number

Most HP printers comes with an embedded web-server called HP HTTP Server. The web-server exposes the following info:

hp-info command to get HP network printer serial number

The hp-info command query a printer for static model information, dynamic status informtion, and CUPS printer queue settings. This is part of HPLIP (Hewlett-Packard Linux Imaging and Printing). Itt is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.$ hp-info Sample outputs:Fig.02: hp-info command in action$ hp-query -n -d 'hp_device_name_here' Sample outputs:Fig.03: hp-query command in action

Conclusion

And there you have it. You just use the curl command to grab information about your HP network printer. It is helpful to upgrade drivers or firmware or get support when you call HP support. You can grab HP open source driver here.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Your support makes a big difference:

I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft takes a lot of my time and hard work to produce. If everyone who reads nixCraft, who likes it, helps fund it, my future would be more secure. You can donate as little as $1 to support nixCraft: