print.cs
. By necessity if the printer uses a quota file it will be on the print server.
RCS file: RCS/printers,v retrieving revision 1.7 diff -r1.7 printers 251a252,258 >> lj-dc3624.cs >> product=HP LaserJet 4300 >> mac=00306ED585DC >> httpuser=any >> include=MFCF-laserjet-any-user >> >>
To: request@ist.uwaterloo.ca Subject: Need IP on CS2net Host Name: lj-dc3624 OS: Postscript Type/Model: HP Laserjet 4300dtn Ethernet Addr: 00:30:6E:D5:85:DC IP: (I need this) Segment Name/Base IP: 129.97.75 Room: DC3594 Contact: Yann D'Halluin Mike Gore Group: CS Email: ydhallui@uwaterloo.ca magore@uwaterloo.ca Phone: 2956 6205(Note: of course change the subnet, contacts etc for your printer)
* Enable SNMP read/write access * Set Community Name: using the password found in the above file * Get Community Name: using public * Enable ONLY port 9100 printing - DISABLE ALL OTHER SERVICES * Allow only access from remote hosts providing printing services such as print.math - or at the vary least restricting printing to the UofW domainVerify printer setting (NETWORK->SECURITY->SETTINGS)
Authorization Administrator Password: Set Use the Administrator Password as the Set Community Name: Set - or - see below and set *read only* for Enable SNMPv1/v2 read-only access Jetdirect Certificate: Installed Access Control: Enabled (Allow HTTP Connections) * Set access control to either the printer server(s) addresses that are permitted to print - or at minimum you want IP Addr 129.97.0.0 Mask 255.255.0.0 for the university Web Interface Encrypt All Web Communication: Disabled Encryption Strength: Low (DES-56-bit, RC4-128-bit or 3DES-168-bit) Enable SNMPv1/v2 read-only access: enabled Status: Enabled Get Community Name: Set Set Community Name: Set SNMPv3 Status: Disabled Other Protocols IPX/SPX: Disabled AppleTalk: Disabled DLC/LLC: Disabled 9100 Printing: Enabled LPD Printing: Disabled IPP Printing: Disabled FTP Printing: Disabled SLP Config: Disabled mDNS: Disabled Multicast IPv4: Disabled RCFG: Disabled Telnet: Disabled FTP Firmware Update: Disabled
cd /software/lpr/adm/ touch lj_dc3624.acct lj_dc3624.tlog Chown root:daemon lj_dc3624.* Chmod 644 lj_dc3624.* -rw-rw-r-- 1 root daemon 58 Mar 11 10:40 lj_dc3624.acct -rw-rw-r-- 1 root daemon 313 Mar 11 10:40 lj_dc3624.tlogFor our lpquota_filter example (not needed if you are only using psif)
ln -s ljp_cs lj_dc3624 chown root:daemon lj_dc3624
/software/lpr_quota/data/quotas/lj_dc3624
(In this case a simlink to lj_cs-1) the hostname groups mentioned in this file are found in files under the path /software/lpr_quota/data/hostname_groups
printconf-config
by running the command man printconf-config
on cscf.cs.
cd /software/printconf-1/config/admin ls -l *Note:* We must find the absolute root path for nondefault_printers file needed for RCS!Result: nondefault_printers -> /.software/admin/printconf-1/config/admin/nondefault_printers
cd /software/printconf-1/config/local ls -lNote: absolute root path for nondefault_printers file RCS! Result: printer_descriptions -> /.software/local/printconf-1/config/local/printer_descriptions
umask 022 (see note about umask) mkdir RCS chmod a+rX RCS (see note about umask)
ci -l nondefault_printers </dev/null produces: RCS/nondefault_printers,v <-- nondefault_printers initial revision: 1.1 doneNote the file is in fact in the checked out state so do not check it out again
co -l nondefault_printers
(warning if the RCS file was just created skip this step!) lj_dc3624
ci -u nondefault_printers
lj_dc3624
co -l printer_descriptions
(warning if the RCS file was just created skip this step!)
lj_dc3624 MasterQueueHost = print.math QuotaControl = yes DviPrefilter = /software/lpr/servers/prefilter-dvips * Check back in ci -u printer_descriptions add a comment saying we added a lj_dc3624 CTRL DThe previous example is sufficient to cause a printcap entry to be generated on remote hosts, that is, other than print.cs if the printer is being driven by print.cs. As an example, we consider the queue ljp_maple1:
# ===== scg.math printers ================================================= # # ljp_maple1 (ljp-maple.math) - SCG - Symbolic Computation Group # ljp_maple1 Aliases = ljp_maple ljp-maple ljp_dc2302 MasterQueueHost = print.cs DviPrefilter = /software/lpr/servers/prefilter-dvips PrintHeaderPage = suppress_with_user_override PrintcapFiles = printers/ljp_maple1 devices/ljThe key difference is the PrintcapFiles key. In this case it says printconf should include some printcap fragments from the directory
printers/ljp_maple1
and devices/lj
in the same
directory as the printer_descriptions
file that the above description is in.
*You should see:* Spool queue: lj_dc3624 Remote(print.math): no entries
Log onto cscf.cs cd /software/lpr_quota
*Result:* RCS/_scicomnt,v --> _scicomnt revision 1.13 (locked) done
*Check in group file ci -u _scicomnt
*Result:* RCS/_scicomnt,v <-- _scicomnt new revision: 1.14; previous revision: 1.13 enter log message, terminated with single '.' or end of file: >> added scicom28 >> .
Result: make_lpquota_hostgroups FYI: _cgl: same make_lpquota_hostgroups FYI: _crypto: same make_lpquota_hostgroups FYI: _dbnt: same make_lpquota_hostgroups FYI: _icrnt: same make_lpquota_hostgroups FYI: _mfcf: same make_lpquota_hostgroups FYI: _scicomnt: mine make_lpquota_hostgroups FYI: _vlsi: same make_lpquota_hostgroups FYI: _wheat: same
We need to distribute the lpr_quota package with our changes to print.cs
A: lpq -P lj_dc3624 (check who serves the print queue) *Result:* Spool queue: lj_dc3624 Remote(print.math): no entries*Notes: *
xh-dist-hosts -p lpr_quota -h leopold.math -F
*Result:* shared pythagoras.math structure pythagoras.math arch pythagoras.math admin pythagoras.math fpa pythagoras.math getwd pythagoras.math man_pages pythagoras.math ALL pythagoras.math
*Observations: *
Recall previously the hostname_groups folder in the xhier admin area /software/lpr_quota/config/admin/hostname_groups pythagoras.math is the next link
xh-dist-hosts -p lpr_quota -h pythagoras.math -F
Result: shared sun560 structure sun560 arch sun560 admin mfcf.math fpa sun560 getwd sun560 man_pages sun560 ALL mfcf.math sun560
*Observations: *
Recall previously the hostname_groups folder in the xhier admin area /software/lpr_quota/config/admin/hostname_groups mfcf.math is the next link
xh-dist-hosts -p lpr_quota -h mfcf.math -F
Result:
shared sun560 structure sun560 arch sun560 fpa sun560 getwd sun560 man_pages sun560 ALL sun560Observations: No admin - the buck stops here - mfcf.math is where we run the command from