{"id":26,"date":"2016-03-16T17:19:36","date_gmt":"2016-03-16T21:19:36","guid":{"rendered":"https:\/\/www.caribmendez.net\/?p=26"},"modified":"2016-03-16T17:23:07","modified_gmt":"2016-03-16T21:23:07","slug":"mass-configuration-of-xerox-printers","status":"publish","type":"post","link":"https:\/\/www.caribmendez.net\/?p=26","title":{"rendered":"Mass Configuration of Xerox Printers"},"content":{"rendered":"<p>I currently administer close to 80 Xerox WorkCentre 7800 series printers. I&#8217;ve been trying to find a way to easily and quickly deploy updated configurations to these machines. The printers have a cool feature where you can setup one and then generate a clone file of the settings. Out of the box it appears the only way to then apply these settings to your fleet is to manually login via the web to each printer and upload the clone file. Xerox recommended that we try using their admin software called Centreware Web. This requires a Windows server and SQL server. I setup the server, but lets just say it&#8217;s feature set leaves a lot to be desired. It required setting up SMTPv3 which again requires pushing a new configuration to the printers (which I painstakingly did one by one). However I still could not get the application of clone files to work. I did some searching and found references to older models being configured by &#8216;printing&#8217; the clone file to the printer. I tried this on one and found that it did indeed work. With a quick trip to the command line, I&#8217;ve streamlined this process.<\/p>\n<p>First thing was to get the necessary info for the <code>lpadmin<\/code> tool. I already had a spreadsheet with all of the printers info, and created a new spreadsheet with column <strong>a<\/strong> being the printer name, and column <strong>b<\/strong> the ip address. I then exported this as a comma separated value list (.csv) file.<\/p>\n<p>While you could do this on your local machine I didn&#8217;t want to have all the printers, nor did I want to mix my other printers so I created the printers on an existing mac server.<\/p>\n<p>Here are the steps to add printers to your machine:<\/p>\n<ul>\n<li>Download and install the drivers for your specific printers from the <a href=\"http:\/\/support.xerox.com\" target=\"_blank\">Xerox<\/a> site<\/li>\n<li>Put the .csv file you created with the names and IP addresses on your desktop, name it <code>printers.csv<\/code><\/li>\n<li>Create a plain text file with the following code:\n<pre>#!\/bin\/bash\r\nINPUT=printers.csv\r\nOLDIFS=$IFS\r\nIFS=\",\"\r\nwhile read printer_name ip\r\ndo\r\n`lpadmin -E -p $printer_name -v 'lpd:\/\/'$ip'\/' -P '\/Library\/Printers\/PPDs\/Contents\/Resources\/<span style=\"color: #ff6600;\">Xerox\\ WorkCentre\\ 7845.gz<\/span>'`\r\ndone &lt; $INPUT\r\nIFS=$OLDIFS<\/pre>\n<\/li>\n<li>Modify the printer driver path (marked in orange above to the appropriate driver)<\/li>\n<li>Save the file as\u00a0<code>printerMake.sh<\/code> and place it on your desktop<\/li>\n<li>In the terminal type in <code>chmod o+x ~\/Desktop\/printerMake.sh<\/code> This will give the file execute privileges<\/li>\n<li>Type in <code>sudo .\/printerMake.sh<\/code> This will loop through the printers file and add each printer to your system<\/li>\n<li>Verify your results by typing <code>lpstat -v<\/code>\u00a0 This should return the list of all of the printers installed on the system<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Sending Configuration Files:<\/p>\n<ul>\n<li>Generate your clone file on the Xerox printer and download it to the desktop of the computer with all of the printers installed.<\/li>\n<li>From the terminal type in\n<pre>lpstat -p | awk {'print $2'} | while read printer; do lp -d $printer ~\/Desktop\/Cloning.dlm ;\u00a0 done<\/pre>\n<\/li>\n<li>The <code>Cloning.dlm<\/code> will now be sent to the printers. They will apply the settings and reboot with the new settings applied<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I currently administer close to 80 Xerox WorkCentre 7800 series printers. I&#8217;ve been trying to find a way to easily and quickly deploy updated configurations to these machines. The printers have a cool feature where you can setup one and then generate a clone file of the settings. Out of the box it appears the &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.caribmendez.net\/?p=26\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13],"tags":[12,11,10,8],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-carib-mendez","4":"post-26","6":"format-standard","7":"category-macintosh","8":"category-xerox","9":"post_tag-clone","10":"post_tag-work-center","11":"post_tag-workcentre","12":"post_tag-xerox"},"_links":{"self":[{"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":3,"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caribmendez.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}