Skip to main content

Reboot HP Printer via FTP

·248 words·2 mins
system-administration tech ftp hp printers sysadmin technology
James Pettigrove
James Pettigrove
Cloud Engineer with a focus on Microsoft Azure

Look, I know, you just read the post title and thought “What in the blue hell was James on when he was writing this blog post” but please, hear me out.

While working on a remote networked HP LaserJet printer I needed to reboot it so it would receive a new DHCP IP address. Naturally I trawled through the HP web gui to find a reboot option but weirdly enough there is none to be found. Telnetting the printer also was fruitless.

I really wanted to get this printer sorted and time was running out. After doing a bit of Googling I found out you can reboot a HP printer via FTP. Weird but okay, I’ll take anything at this point.

So let’s breakdown how to reboot a HP printer via FTP.

  1. Prepare a text file called reboot.txt and file it with the following:

    %-12345X@PJL COMMENT
    @PJL DMINFO ASCIIHEX="040006020501010301040105"
  2. Drop to a Command Prompt and connect to the printer via FTP with the following:

    ftp x.x.x.x

    Once connected, you will be prompted for a Username followed by a Password. Leave both blank and hit the ENTER key to continue.

  3. Now that you are authenticated enter the following to send the reboot file to the printer:

    put x:\pathtofile\reboot.txt

    Ensure that you replace x:\pathtofile\ with the full path to where you stored the reboot.txt that you made in step 1.

That’s it, once the file has uploaded to the printer it will reboot like some kind of FTP magic!


HP's + USB3 and Recovering Windows
·342 words·2 mins
system-administration tech hp sysadmin technology usb3
Recently I started a Computer Science course through EdX (more on that in a future post) and found I liked to flesh out some of my thoughts via pen + pad.
Deploying Printers to the fleet via Group Policy Preferences
·630 words·3 mins
system-administration tech group-policy printers sysadmin technology
Ahhhhh printers, I am convinced life would be better without them (I don’t even have one at home).
Removing a printer while the print spooler is not running
·320 words·2 mins
system-administration tech printers sysadmin technology
Many sysadmins have probably encountered a situation where due to a nasty print driver (& associated printer) the Print Spooler service stops and upon starting it up again manually decides to stop again.