1754357 Members
4817 Online
108813 Solutions
New Discussion юеВ

printer

 
aruns_s
Frequent Advisor

printer

hi all,
Can i edit /etc/lp/interfaces/ file directly? or will it cause any impact?
I may need to do it since ip of some printers have been changed.

Many thanks
3 REPLIES 3
Mridul Shrivastava
Honored Contributor

Re: printer

If you are talking about the hp network printers and have jet direct then simply force the printer JetDirect interface to request download with this procedure:


1. Turn off the power on the JetDirect connected printer.

2. Hold down the test button while reapplying power.

3. Continue holding down the test button for 20 seconds.

4. Release the test button.

The JetDirect interface will be downloaded from its bootp server.

Before doing this make sure that that the bootptab file is correct (check it for
syntax errors as well as incorrect entries)
Time has a wonderful way of weeding out the trivial
Chris Wilshaw
Honored Contributor

Re: printer

Hi.

Yes, you can edit the file directly, in order to amend the IP address, and it shouldn't cause any problems.

The line you're looking for is

PERIPH=NNN.NNN.NNN.NNN

where NNN.NNN.NNN.NNN is your IP address.

Regards,

Chris
Bill Hassell
Honored Contributor

Re: printer

No problem at all. The interface directory contains simple scrips that are run only when that printer is being used. Now there are 3 types of printer connections: serial/parallel, remote print server and HP JetDirect. All 3 will have their basic printer script in the interface directory but an HP JetDirect network connection has two scripts -- the one in the interface directory just communicates with the printer but a second script is run as a child of this script. This child script is in model.orig, a directory under interface.

In all cases, it is preferred to edit these scripts directly to customize a printer's options and defaults. Since the scripts are not used unless the printer is buy, you can edit, then test, edit then test without a problem.

Since some printers have changed IP address, there is a big question: are these HP JetDirect printers or are they non-HP printers? If they are HP Jetdirect printers, the script in the interface directory has the IP address listed like this:

PERIPH=12.34.56.78

If the script does not have the above line, then the printer is a remote printer and you'll have to delete and re-add the printer as the IP address is stored in a binary file.


Bill Hassell, sysadmin