-
Download the RPM package: 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/
-
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