5.If remote spooling is not already enabled on the HP-UX machine, carry out the following configuration.

(a)Stop the printer spooler.

#/usr/sbin/lpshut

(b)Add the following line to the /etc/inetd.conf file and register the remote spooler.

printer stream tcp nowait root /usr/sbin/ rlpdameon –I

(c)Restart inetd

#/etc/inetd –c

6.Register the remote printer.

Example: setting up a queue called c7350_lp to print to host c7350

(a)Register the remote printer.

#/usr/sbin/lpadmin -pc7350_lp -v /dev/null -mrmodel \-ormc7350 -orplp -ocmrcmodel -osmrsmodel -ob3

(b)Activate the print queue.

#/usr/sbin/accept c7350_lp

(c)Enable the print queue.

#/bin/enable c7350_lp

(d)Enable the printer spooler.

#/usr/sbin/lpsched

To customise output, for example, to add additional commands at the start of each print job, you can edit a copy of the /usr/ spool/lp/model/rmodel model file then add it using the lpadmin command.

Example: for printer c7350_lp, with model file called c7350_model

#/usr/sbin/lpshut

#/usr/sbin/lpadmin –pc7350_lp – mc7350_model

#/usr/sbin/lpsched

UNIX> 77

Page 77
Image 77
Olivetti P26, P20W # /usr/sbin/lpshut, Printer stream tcp nowait root /usr/sbin/ rlpdameon, Restart inetd, # /etc/inetd -c