At the office we recently added another printer and since we mostly use HP printers I was looking for some way to ease configuration. Although HP network printers usually have telnet available, there is an easier way to supply a default configuration to all your printers, which will also serve as a single source for configuration setting updates.
HP printers support getting a configuration file using TFTP. Telling the printer what file it should get is a matter of properly configuring DHCP. The following excerpt from my
dhcpd.conf shows configuration for a single device:
host sales.print.domain.tld {
hardware ethernet 00:11:22:33:44:55;
option extensions-path "hp.conf";
}
You can combine this with other statements to provide a hostname to the printer as well and to give the printer a fixed IP or registering it's name in DNS. Although (some) HP printers should support a different server address for the TFTP server, I haven't been able to get that working, so I just set up tftpd-hpa on my DHCP-server.
The contents of the configuration file are really simple, you can set the same settings as you can set using telnet, and there's an
export
command in the telnet service that will output the current settings in a way that it can be used as a configuration file. But here's a short example that shows how to disable some services:
slp-config 0
bonjour-config 0
ipx-config 0
appletalk 0
I used tabs for seperation of keys and values, but it should work with spaces as well. Just run
export
on your device to get a complete overview of all the settings to change.
Now when your next new printer arrives, it's just a matter of adding the host to DHCP and you're done.
No comments:
Post a Comment