# Add printers with lpadmincern script

**URL:** <https://linux-community.web.cern.ch/t/add-printers-with-lpadmincern-script/81>\
**Category:** FEDORA\
**Created:** [March 5, 2020, 10:18am UTC](https://linux-community.web.cern.ch/t/add-printers-with-lpadmincern-script/81 "2020-03-05T10:18:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![plfernan](https://linux-community.web.cern.ch/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@plfernan](https://linux-community.web.cern.ch/u/plfernan)\
**Post date:** [March 5, 2020, 10:18am UTC](https://linux-community.web.cern.ch/t/add-printers-with-lpadmincern-script/81/1 "2020-03-05T10:18:43Z")

</div>

- Download the RPM package: [http://ftp.riken.jp/Linux/cern/slc60beta/x86\_64/updates/SRPMS/lpadmincern-1.3.18-1.slc6.src.rpm](http://ftp.riken.jp/Linux/cern/slc60beta/x86_64/updates/SRPMS/lpadmincern-1.3.18-1.slc6.src.rpm). Ref: [https://aur.archlinux.org/packages/lpadmincern/](https://aur.archlinux.org/packages/lpadmincern/)

- Install perl ldap: `sudo dnf install perl-LDAP`

- Extract RPM package and `tar.gz` inside it

- Move the folder containing the scripts to `/usr/share/lpadmincern`: `sudo mv lpadmincern-1.3.18/ /usr/share/lpadmincern/` (paths should be relative in the perl script but are not)

- Run `/usr/share/lpadmincern.pl --help` for commands

- Search printers in: https:// printservice.web.cern.ch/printservice/UserTools/PrinterStatus.aspx (remove spaces). Or use the script: `/usr/share/lpadmincern/lpadmincern.pl --building 1`
