Appendix Chapter 12

 

12

UNIX Configuration

 

 

 

7Edit /usr/lpd/qconfig to change the special file for device printer- name from /dev/<printer name> to /dev/nic/<printer name>.

8Use the following command to restart the daemon. startsrc -s daemon

After this, the installation script creates a named pipe and starts up a print daemon based on the printer name and Network Card information you supplied. The AIX System Management Interface Tool (SMIT) does not accept the named pipe as a printer device, so the install script also creates a null character device in /dev/<printer name>.

Virtual Printer Commands

Virtual printers can be added using SMIT or by using the mkvirprt com- mand. The device name printer name is entered for confirmation purpos- es. During this process, you also select a particular printer type for the new printer, which inherits the set of predefined attributes for that printer type. The set of attributes is sufficient for most cases, but settings can be changed using SMIT or the chvirprt command. See the AIX RISC System/ 6000 documentation in cases where a printer requires even more exten- sive settings.

After adding a virtual printer, a stanza that looks like the following will be in /usr/opf/qconfig for device printer name.

<printer name>:

file=/dev/<printer name>

backend=/usr/lpd/piobe

Edit file=/dev/<printer name> to file=/dev/nic/<printer name>. Output spooled on the previously specified virtual printer is sent to the named pipe, and routed to the Network Card. Before editing the files named above, make sure the following daemon is running.

/usr/nic/lpr_print /dev/nic/<printer name> printfast 10001 &

AIX Print Command

The AIX lp command works slightly differently from other System V Re- lease 4 lp commands. The following lp commands can be used to print files.

lp -d<queue name> <file name>

Or:

lp -d<queue name>:<device name> <file name>

12-52

Pi4700e

Page 403
Image 403
Minolta PI4700E user manual Virtual Printer Commands, AIX Print Command