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.
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
Check more discussion of this question.