we have CentOS 3.7 on DELL server. I configured 10 network printers to it. Does there has way I can copy printer definition files to other server (same on 3.7 version)?
Thanks.
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
On the server you want to copy the printers from, do this:
printconf-tui --Xexport > printers.xml
copy printers.xml to the server where you want to add the printers and do this:
printconf-tui --Ximport < printers.xml
Then restart cups (or lprng if you're still running it).
-Steve
On Wed, 2007-03-07 at 22:16 +0800, mcclnx mcc wrote:
we have CentOS 3.7 on DELL server. I configured 10 network printers to it. Does there has way I can copy printer definition files to other server (same on 3.7 version)?
Thanks.
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/ _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Stephen C. Rigler wrote:
On the server you want to copy the printers from, do this:
printconf-tui --Xexport > printers.xml
copy printers.xml to the server where you want to add the printers and do this:
printconf-tui --Ximport < printers.xml
Then restart cups (or lprng if you're still running it).
Wow. Cool. One never stops to learn. Mind if I put that tip on the wiki?
Cheers,
Ralph
On Wed, 2007-03-07 at 16:36 +0100, Ralph Angenendt wrote:
Stephen C. Rigler wrote:
On the server you want to copy the printers from, do this:
printconf-tui --Xexport > printers.xml
copy printers.xml to the server where you want to add the printers and do this:
printconf-tui --Ximport < printers.xml
Then restart cups (or lprng if you're still running it).
Wow. Cool. One never stops to learn. Mind if I put that tip on the wiki?
Cheers,
Ralph
Go for it. Hopefully it will save somebody the days of frustration we went through with duplicating printer configs across multiple machines. It also saved us from re-creating 300 print queues on our print server when somebody accidentally wiped them out (alchemist saves the 5 most recent configurations in compressed xml files in /var/cache/alchemist/printconf.local).
-Steve
Stephen C. Rigler wrote:
On Wed, 2007-03-07 at 16:36 +0100, Ralph Angenendt wrote:
Wow. Cool. One never stops to learn. Mind if I put that tip on the wiki?
Go for it.
http://wiki.centos.org/TipsAndTricks/PrinterDefinitions
Thanks.
Ralph
Jordi Espasa Clofent wrote:
Wow. Cool. One never stops to learn. Mind if I put that tip on the wiki?
Yeah.
You do mind? :)
In fact it's a documented option (look at /usr/share/doc/system-config-printer-0.6.116.5/printconf-save-config.html) but it's a cool option anyway.
Ah, who actually looks into documentation? Okay, no idea who actually looks at a wiki :)
But that just stands out as something short and useful.
Cheers,
Ralph
Ah, who actually looks into documentation? Okay, no idea who actually looks at a wiki :)
I do the both frequently. I learned long time ago the meaning of RTFM acronym. And, of course, I also see the contents in the CentOS wiki: http://wiki.centos.org/TipsAndTricks/PrinterDefinitions
Thanks for this, Ralph. Good work.
Thank for answer. I do exactly what you say and got error:
# printconf-tui --Ximport < printers.xml Traceback (most recent call last): File "/usr/sbin/printconf-tui", line 8, in ? printconf_tui.startup_and_find_cmd() File "/usr/share/printconf/util/printconf_tui.py", line 2348, in startup_and_find_cmd main.cmd_handlers[cmd]() File "/usr/share/printconf/util/printconf_tui.py", line 2020, in import_cmd_run ctx = AdmContext(xml = xmlstr) RuntimeError: failed to create a context
--- "Stephen C. Rigler" srigler@marathonoil.com 說:
On the server you want to copy the printers from, do this:
printconf-tui --Xexport > printers.xml
copy printers.xml to the server where you want to add the printers and do this:
printconf-tui --Ximport < printers.xml
Then restart cups (or lprng if you're still running it).
-Steve
On Wed, 2007-03-07 at 22:16 +0800, mcclnx mcc wrote:
we have CentOS 3.7 on DELL server. I configured
10
network printers to it. Does there has way I can
copy
printer definition files to other server (same on
3.7
version)?
Thanks.
您的生活即時通 -
溝通、娛樂、生活、工作一次搞定!
http://messenger.yahoo.com.tw/ _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
What does your printers.xml look like?
On Wed, 2007-03-07 at 23:38 +0800, mcclnx mcc wrote:
Thank for answer. I do exactly what you say and got error:
# printconf-tui --Ximport < printers.xml Traceback (most recent call last): File "/usr/sbin/printconf-tui", line 8, in ? printconf_tui.startup_and_find_cmd() File "/usr/share/printconf/util/printconf_tui.py", line 2348, in startup_and_find_cmd main.cmd_handlers[cmd]() File "/usr/share/printconf/util/printconf_tui.py", line 2020, in import_cmd_run ctx = AdmContext(xml = xmlstr) RuntimeError: failed to create a context