Due to some network changes one of our printers has a new IP. A user came to me today with the following quote: "I can't print from the linux." The IP was changed a month ago and apparently we don't do much printing from "the linux." All of that aside, I want to go into cups and change the IP address but before I proceed I want to know the current settings.

When "modifying" the printer from the cups web interface I essentially get to change everything but the name while all I need to do is change the IP address. I wouldn't be terribly concerned but this is a Dell 5210n which doesn't have a native driver. It does work with whatever ppd file is in use now but I don't have the desire to use trial and error to figure out what it is using. So my questions are as follows:

Is there a way (either command line or gui) to see what the current settings are for this particular printer?

Can I change just the IP address without having to make choices about what type of printer it is (5210n is not an option through modify printer)?

Can I do something with the existing ppd file to create a new queue using the appropriate IP address.

Is there a better way to do this?

The pertinent information is network connected Dell 5210n on a Dell server running RHEL 4 update 3 and that version of cups.

link|improve this question

67% accept rate
feedback

1 Answer

up vote 1 down vote accepted

From the command line you can see the installed printers with this command:

lpinfo -v

You can change the configuration like this:

lpadmin -p <printer name> <options>

You are probably interested in changing the device uri. This should contain the IP address. Change it like this:

lpadmin -p <printer name> -v <new uri>

Printer configuration is stored in /etc/cups/printers.conf You could also look around in there for the current configuration. See the CUPS documentation here for details:

http://www.cups.org/documentation.php/doc-1.4/ref-printers-conf.html

link|improve this answer
lpinfo -v yields this (and much more): serial serial:/dev/ttyS6?baud=115200 serial serial:/dev/ttyS7?baud=115200 direct usb:/dev/usb/lp0 direct usb:/dev/usb/lp1 lpoptions -l lists paper tray and format options which I'm not concerned with. lpadmin -p ... is exactly what I want to do and answers one of my questions! – oneodd1 Jul 6 '09 at 20:13
I updated my answer with information about the conf file. You should be able to look in there and see everything you need. – Anthony Lewis Jul 6 '09 at 20:17
That helps and I've been in and out of that conf file. Kind of what I want though is if I went to localhost:631 and to that particular printer's queue and chose modify it would ask for "device:" with a drop down list of options (with no indication of what is currently being used) and so on. I can't seem to find a way to determine that information. – oneodd1 Jul 6 '09 at 20:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.