home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / protocol / nfs / 2067 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  13.0 KB

  1. From: k@hprnd.rose.hp.com (Steve Kao)
  2. Date: Fri, 14 Aug 1992 18:05:13 GMT
  3. Subject: Re: printcap file & filters for HP LaserJet III, SunOS 4.1.1, PC-NFS 3.5
  4. Message-ID: <3930001@hprnd.rose.hp.com>
  5. Organization: HP Roseville Networks Division
  6. Path: sparky!uunet!wupost!sdd.hp.com!hpscdc!hplextra!hpcc05!hpyhde4!hpycla!hpergfg2!hprdash!hprnd!k
  7. Newsgroups: comp.protocols.nfs
  8. References: <1992Aug13.035028.7268@wuecl.wustl.edu>
  9. Lines: 281
  10.  
  11. This document is directed to those SunOS users who are installing the
  12. HP JetDirect card for unix in their HP printer or plotter for use on a
  13. SPARC system.  I've put in section headings in this document so that you
  14. read only those sections that are pertinent to your installation.
  15.  
  16.     o FOLLOW THE INSTRUCTIONS IN YOUR "INSTALLATION GUIDE" TO
  17.       INSTALL THE CARD, AND THE INSTRUCTIONS IN YOUR "ADMINISTRATOR'S
  18.       GUIDE" TO INSTALL THE TAPE
  19.  
  20. First, follow the instructions in the "Installation Guide" that came
  21. with your card and tape.  (You need to order option AAV when ordering
  22. the card to get the appropriate tape.)  The "Installation Guide" tells
  23. you how to install the card into your printer/plotter, and configure
  24. the card's IP address from the front panel.  I do not recommend
  25. configuring the card from the front panel.  (The HP JetDirect cards
  26. in LaserJet II, IID, III, and IIID printers cannot be configured via
  27. the front panel.)  Next, follow the instructions in the "Administrator's
  28. Guide" to install the tape.
  29.  
  30.     o PRINT/PLOT A SELF-TEST PAGE
  31.  
  32. At this point, you should power-on the printer/plotter and print a
  33. self-test page.  You'll need the LAN HW ADDRESS later.  You should also
  34. check the CONFIG BY entry to verify the configuration source is
  35. correct.  Both entries are in the second column of the self-test page
  36. near the top.  After getting the self-test page, turn off the printer/
  37. plotter.
  38.  
  39.     o EXECUTE THE hpnpcfg SCRIPT TO CONFIGURE AND VERIFY BOOTP/TFTP
  40.  
  41. Next type:
  42.  
  43.      cd /usr/lib/hpnp
  44.      hpnpcfg
  45.  
  46. Perform step#1 to verify the installation of the tape.  Then perform
  47. step#2 to configure bootp/tftp.  Pages 5-16 through 5-20 of the
  48. "Administrator's Guide" describe the configurable items on the card.
  49. Next perform step#3 to verify that bootp/tftp is working on your system.
  50.  
  51.     o BOOTP VERIFICATION FAILURE
  52.     - CHECK FOR telnet AND tftp AND bootp ON YOUR SUN SYSTEM
  53.  
  54. If the bootp verification failed, exit hpnpcfg and verify that the
  55. following lines are in the /etc/services file.  The lines are probably
  56. not adjacent to each other in the file.
  57.  
  58. telnet          23/tcp
  59.  
  60. tftp            69/udp
  61.  
  62. Next verify that the following lines are in the /etc/inetd.conf file.
  63. The lines are probably not adjacent to each other in the file.
  64.  
  65. telnet  stream  tcp     nowait  root    /usr/etc/in.telnetd     in.telnetd
  66.  
  67. tftp    dgram   udp     wait    root    /usr/etc/in.tftpd       in.tftpd -s /tftpboot
  68.  
  69. If telnet or tftp is missing from either file, contact your Sun
  70. representative.  Telnet is used by the /usr/lib/hpnp/hpnpcfg script to
  71. verify the peripheral's operations.   Tftp is used by bootp to configure
  72. the HP JetDirect card in the peripheral.
  73.  
  74. Bootp is supplied on the tape.  Installing the tape and executing step#2
  75. of hpnpcfg should install bootp on your Sun system.  Verify that the
  76. following lines are in /etc/services.  They should be adjacent on the
  77. bottom of the file.
  78.  
  79. bootps  67/udp          #Bootstrap protocol server
  80. bootpc  68/udp          #Bootstrap protocol client
  81.  
  82. Also verify that the following line is in /etc/inetd.conf.
  83.  
  84. bootps  dgram   udp     wait    root    /usr/etc/bootpd bootpd
  85.  
  86.     o BOOTP VERIFICATION FAILURE
  87.     - CHECK SUN'S YELLOW PAGES AND NIS NAME SERVER
  88.  
  89. If telnet, tftp, and bootp are on your system but step#3 (bootp
  90. verification) of hpnpcfg still fails, are you using Sun's yellow pages
  91. or name server?  If you're running the NIS name server, you need to
  92. rebuild your NIS services map from the modified /etc/services.  You
  93. can do this by typing the following:
  94.  
  95.      cd /var/yp ; make services            {Remake the map}
  96.      ypcat services | grep bootp        {Verify the new map}
  97.      ps -aux | grep inetd            {Prepare to kill inetd}
  98.      kill -1 <inetd-PID>            {Kill old inetd}
  99.            ^
  100.            This is a one ("1")
  101.  
  102. Now, rerun hpnpcfg and execute step#3.  The bootp/tftp configuration
  103. should be verified this time.  Now turn on the peripheral.  When the
  104. ONLINE light is lit, the peripheral should be READY.  If it is, then
  105. it's successfully obtained its configuration information via bootp/tftp.
  106.  
  107.     o COMPLETE hpnpcfg EXECUTION THROUGH STEP#6
  108.  
  109. Step#4 of hpnpcfg does a 'ping' to the peripheral to verify that the Sun
  110. system can communicate with the HP JetDirect card.  To perform step#5 of
  111. hpnpcfg in a printer, first configure the printer via the front panel
  112. for the default language (PCL or PostScript).  Next choose the
  113. appropriate file from the options given to you by hpnpcfg.  Verify that
  114. the printer has printed the file correctly.  Perform step#6 of hpnpcfg
  115. to add the peripheral to the Sun spooler.
  116.  
  117.     o VERIFY THE .params FILE IS CORRECT
  118.  
  119. Upon exiting hpnpcfg, examine the /usr/spool/printers/<printer-name>/.params
  120. file.  You should see LANGUAGE=PS if your printer is configured for
  121. PostScript, and LANGUAGE=PCL if your printer is configured for PCL.
  122.  
  123.     o VERIFY THE PRINTCAP ENTRY IS CORRECT
  124.  
  125. Next examine the /etc/printcap file to verify that the peripheral's entry
  126. has been added to the file.  The following is the entry for the lj3sib
  127. printer in my Sun system's /etc/printcap file.
  128.  
  129. lj3sib:\
  130.         :mx#0:lp=/var/spool/printers/lj3sib/.null:\
  131.         :sd=/var/spool/printers/lj3sib:\
  132.         :lf=/var/spool/printers/lj3sib/log:\
  133.         :of=/usr/lib/hpnp/hplj.of.auto:sb:\
  134.         :if=/usr/lib/hpnp/hplj.if.auto:
  135.  
  136. Note that I'm using hplj.*.auto instead of hplj.*.sh in my 'of' and 'if'
  137. entries.  This is because I'm using the automatic language switching
  138. filters for my IIISi.  Before getting into automatic language switching, I
  139. want to complete the help for spooling.
  140.  
  141.     o TESTING THE SUN SPOOLER AND HP PRINTER/PLOTTER OPERATIONS
  142.  
  143. If the /etc/printcap entry looks correct, try sending a file to the printer.
  144. You can send /usr/lib/hpnp/testfiles/ps to send a PostScript file to the
  145. printer, or /usr/lib/hpnp/testfiles/text to send an ASCII text file to the
  146. printer.  Verify that the file has printed correctly.  The "ps" file is
  147. a picture of a panda.  The "text" file says it's a text file.
  148.  
  149.     o SETTING UP REMOTE SPOOLING
  150.  
  151. If you wish to do remote spooling, set up the local /etc/printcap file
  152. to send jobs to the printer/plotter as though the printer/plotter were a
  153. serial device.  The one change is that the "if" and "of" lines from the
  154. master spooler's /etc/printcap entry must be copied into the local
  155. system's /etc/printcap entry for the printer plotter.  For DesignJet
  156. plotters and LaserJet II, IID, III, and IIID, the local printcap entry
  157. will look something like:
  158.  
  159. <HP-device-name>: lp=:rm=<master-spooler-machine>:rp=<HP-device-name>: \
  160.     if=/usr/lib/hpnp/hplj.if.auto:sb:mx#0:
  161.  
  162. For a LaserJet IIISi, the local printcap entry will look something like:
  163.  
  164. <ljIIISi-name>: lp=:rm=<master-spooler-machine>:rp=<ljIIISi-name>: \
  165.     of=/usr/lib/hpnp/hplj.of.auto:sb: \
  166.     if=/usr/lib/hpnp/hplj.if.auto:mx#0:
  167.  
  168. Test remote spooling by sending a file to the printer/plotter from the
  169. local system.
  170.  
  171.     o INSTALLING TRANSCRIPT AND NEWSPRINT
  172.  
  173. If you plan to use TranScript or NewSprint, follow the instructions in
  174. the /usr/lib/hpnp/README.sun file.  The Note for the IIISi in the
  175. Transcript section says to "add the hpnptypd startup command in you
  176. /etc/rc file."  The "you" should be a "your".  Also, the file should be
  177. the "/etc/rc.local" file if you don't want to search the network for the
  178. hpnptyd file.
  179.  
  180.     o INSTALLING AUTOMATIC LANGUAGE SWITCHING
  181.  
  182. Most LaserJet printer customers prefer to use automatic language
  183. switching.  To do this, you need to purchase the HP part number C2089A
  184. cartridge that allows for automatic language switching on LaserJet III
  185. and IIID, or the Adobe PostScript SIMMs for the LaserJet IIISi.  No
  186. automatic language switching PostScript cartridges are recommended for
  187. the LaserJet II or IID.  The /usr/lib/hpnp/examples2/hpnp.auto/README.auto.sun
  188. file contains instructions for enabling automatic language switching on
  189. your printer.  Note that the instructions for section#2 in the file
  190. refer to "hplj.of.auto.ps" and "hplj.if.auto.ps".  These references are
  191. incorrect.  They should refer to "hplj.of.auto" and "hplj.if.auto"
  192. respectively.  Don't forget to set SYS SWITCH=ON* via the front panel to
  193. enable automatic language switching on the printer.
  194.  
  195. If you have followed the README.auto.sun instructions for configuring
  196. automatic language switching, you should now test this capability by
  197. sending both PostScript and PCL to your printer.  You can use the two
  198. files mentioned above in the /usr/lib/hpnp/testfiles directory.
  199.  
  200.     o LARGE POSTSCRIPT FILES REQUIRE MORE PRINTER MEMORY
  201.  
  202. If your printer is configured for PostScript and prints small
  203. PostScript files properly, but fails to print large PostScript files,
  204. then your printer needs more memory.
  205.  
  206.     o TECHNIQUES TO GET POSTSCRIPT FONTS TO DOWNLOAD
  207.  
  208. If you have PostScript fonts that you were able to download to your
  209. IIISi over the serial or centronics port, but do not seem to be
  210. downloaded through the HP JetDirect card for unix, you may need to
  211. download the fonts twice.  The following is a script file I used to get
  212. a customer's fonts downloaded into her HP LaserJet IIISi.  I tested the
  213. script on my Sun system and my IIISi by power-cycling the IIISi and then
  214. executing the script.  I did this three times just to be sure that it
  215. really works.
  216.  
  217. #
  218. # Script to download fonts to the Tech Pubs Resources 
  219. # HP LaserJet IIISi printer
  220. #
  221. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic-Bold.ps
  222. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic-Bold.ps
  223. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic-BoldSlanted.ps
  224. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic-BoldSlanted.ps
  225. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic-Slanted.ps
  226. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic-Slanted.ps
  227. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic.ps
  228. lpr -Plj3sib /fonts/PrinterFonts/LetterGothic.ps
  229. lpr -Plj3sib /fonts/PrinterFonts/PIXymbolsPasskey.ps
  230. lpr -Plj3sib /fonts/PrinterFonts/PIXymbolsPasskey.ps
  231. lpr -Plj3sib /fonts/PrinterFonts/PIXymbolsPasskeyBold.ps
  232. lpr -Plj3sib /fonts/PrinterFonts/PIXymbolsPasskeyBold.ps
  233. lpr -Plj3sib /fonts/PrinterFonts/PIXymbolsPasskeyItalic.ps
  234. lpr -Plj3sib /fonts/PrinterFonts/PIXymbolsPasskeyItalic.ps
  235. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-Bold.ps
  236. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-Bold.ps
  237. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-BoldItalic.ps
  238. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-BoldItalic.ps
  239. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-Italic.ps
  240. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-Italic.ps
  241. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-Semibold.ps
  242. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-Semibold.ps
  243. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-SemiboldItalic.ps
  244. lpr -Plj3sib /fonts/PrinterFonts/StoneSans-SemiboldItalic.ps
  245. lpr -Plj3sib /fonts/PrinterFonts/StoneSans.ps
  246. lpr -Plj3sib /fonts/PrinterFonts/StoneSans.ps
  247. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-Bold.ps
  248. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-Bold.ps
  249. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-BoldItalic.ps
  250. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-BoldItalic.ps
  251. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-Italic.ps
  252. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-Italic.ps
  253. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-Semibold.ps
  254. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-Semibold.ps
  255. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-SemiboldItalic.ps
  256. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif-SemiboldItalic.ps
  257. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif.ps
  258. lpr -Plj3sib /fonts/PrinterFonts/StoneSerif.ps
  259. lpr -Plj3sib /fonts/testfile.ps
  260.  
  261. The last line above sends a PostScript file to the IIISi that prints
  262. each font to verify that the font was correctly downloaded.  I visually
  263. inspected the output from testfiles.ps to verify that the fonts were all
  264. correctly downloaded.  (The customer supplied the testfiles.ps file, as
  265. I do not know how to create PostScript jobs.  Thanks, Laura.)
  266.  
  267.     o RESETTING THE SUN SPOOLER
  268.  
  269. The Sun spooler must be started in order to send job to the
  270. printer/plotter.  Type "man lpq" to see how to start the Sun spooler on
  271. your Sun system.  If you have used the spooler to send data to the
  272. printer/plotter, but your job hasn't printed/plotted, type "lpstat -a"
  273. to see if other jobs are ahead of yours.  If jobs are queued for the
  274. printer/plotter, but the peripheral is not generating any output and the
  275. peripheral doesn't seem to be receiving or processing any data, you
  276. should generate a self-test page and look at the TCP CONNECTION STATUS
  277. in the second column.  If the CONN STATE is CLOSED even though the
  278. spooler has queued some jobs, then you will need to clear all pending
  279. spool jobs by typing "lprm -P<peripheral-name> -" to cancel all jobs for
  280. that peripheral.
  281.  
  282. The commands to remember are:
  283.  
  284.      lprm -P<peripheral-name> -            {Cancel jobs to peripheral}
  285.      lpstat -a                    {Discover peripheral status}
  286.      lpq <options>                {Start the spooler}
  287.  
  288. Get man pages for the above commands to learn more about them.
  289.  
  290. - Steve Kao
  291. This is NOT an official response of Hewlett-Packard
  292.