print.cs
. By necessity if the printer uses a quota file it will be on the print server.
To: hostmaster@cnoc.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
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 >> >>
* 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
Man pages are under: /software/printcap/doc: printcap_source.5, lpc_printcap.8
The following files are updated using RCS:
Printers/lj_dc3624
Printers/lj_dc3624 create this NEW lj_dc3624 file from an similar printer (say lj_3047) Use RCS command ci -l lj_dc3624 if this is the first edit replace all lj_3047 references with lj_dc3624 (queue name) replace all lj-3047 references with lj-dc3624 (network name) Example: # # Model: HP LaserJet 4300dtn laser printer with duplexer # Location: DC 2320 # Owner: Computer Science # Purpose: Bulk printing on 8.5x11 paper by CS faculty, grads, and staff # # Note: Defaults to 1up, duplex, allows Nup and simplex # Header pages suppressed by default # # -ZN is a work-around. It should be -Zdr -zN. # :lp=/dev/null:\ :sd=/software/lpr/spool/lj_dc3624:\ :lf=/software/lpr/spool/lj_dc3624/log:\ :ps=/software/lpr/spool/lj_dc3624/pstatus:\ :st=/software/lpr/spool/lj_dc3624/status:\ :af=/software/lpr/adm/lj_dc3624.acct:\ :lo=lock:ra=*:qc:rc:\ :rm=lj-dc3624.cs:po#9100:ar:\ :if=/software/lpr_quota/servers/lpquota_filter tcu=/software/psfilters/s ervers/psif qf=/software/lpr_quota/data/quotas/lj_dc3624 -Xpal -a -ZNdr -XDPmrws pt price=8b,8s,12d tlog=/software/lpr/adm/lj_dc3624.tlog:\ :of=/software/psfilters/servers/psof:\ :sf:sb:\ :br#9600:rw:\ :fc#0000374:fs#0000003:xc#0:xs#0040040:\ :mx#0:wh#1:\ :fx=lfpgdnt:ex:\\ :te=/software/ditroff/servers/dps.ne,l:\ :ne=/software/ditroff/servers/dps.ne,l:\ :de=/software/lpr/servers/prefilter-dvips,l:\ :ge=/software/psfilters/servers/psplot,l:\
Remote/lj_dc3624
create this NEW lj_dc3624 file from an similar printer (say lj_3047) Use RCS command ci -l lj_dc3624 if this is the first edit replace all lj_3047 references with lj_dc3624 (queue name) replace all lj-3047 references with lj-dc3624 (network name) Example: # # Remote to lj_dc3624 # :fx=lfpgdnt:ex:mx#0:\ :ra=*:\ :lf=/software/lpr/spool/lj_dc3624/log:\ :te=/software/ditroff/servers/dps.ne,l:\ :ne=/software/ditroff/servers/dps.ne,l:\ :de=/software/lpr/servers/prefilter-dvips,l:\ :ge=/software/psfilters/servers/psplot,l:\ :sd=/software/lpr/spool/lj_dc3624:
Config/ *
cacr.math:lj_dc3624 cacr2.math:lj_dc3624 print.math:lj_dc3624
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.tlog
ln -s ljp_cs lj_dc3624 chown root:daemon lj_dc3624
Note: we will be updating RCS files so we use the absolute path for /software/printcap/data/printcap Update the following RCS files:
Aliases
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
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 D
*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
Log onto cscf.cs
Distribute lpr_quota to Pythagoras.math: xh-dist2 pythagoras.math lpr_quota
Log onto Pythagoras.math Distribute lpr_quota to Leopold.math (ie print.math): xh-dist2 leopold.math lpr_quota
You are Done!
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