1825759 Members
2216 Online
109687 Solutions
New Discussion

changing printer name

 
SOLVED
Go to solution
Michael D. Zorn
Regular Advisor

changing printer name

We have a networked printer (HP Laserjet 5Si) that is the only printer our HP uses. A while back, while I was putting the HP back together after a serious crash, for some unaccountable reason, I had to name the printer "134_1" (the start of the IP address).

#lpstat -t shows
system default destination: 134_1
device for laser: /dev/null
device for 134_1: /dev/null
printer 134_1 is idle. enabled since......

We have some homebrewed applications that send their output to "lp -dlaser" (hard-coded in the source - that was the old name).

How can I change the name so that "laser" is the name of the printer?

(Also, I don't remember how the name "134_1" tells the system to use that printer.)
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: changing printer name

The most straightforward way is to delete the printer and add it back.You can use the hppi command (or jetadmin if this is really old) to remove and add the printer interactively.

To then make the "new" printer the default (normally not a good practice because you want the users to specify a printer), execute "lpadmin -dmyprinter".
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: changing printer name

The 134_1 name is an unnecessary hack used by hppi when you add a printer. Normally, you would use hppi to modify the printer name to something sane like laser. However, all of this is completely unnecessary if you use the command line interface.

removequeue -h 134_1
addqueue -h 12.34.56.78 -q laser

The above removes the old printer and adds the printer at IP address 12.34.56.78 with a queue name = laser.


Bill Hassell, sysadmin
Peter Nikitka
Honored Contributor

Re: changing printer name

Hi,

please remember to list the current settings of your printer - if not default - and apply them to the recreated printer.
So no users will claim about missing/changed properties like banner, paper size/trays, ...

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Michael D. Zorn
Regular Advisor

Re: changing printer name

Jetadmin did it. (It is a very old machine - being replaced with an rp3410 - but it still has a few weeks to run).

While I was in Jetadmin, I noticed I could delete a few old printers we haven't used in a long time - a line printer, a dot-matrix printer...