User`s guide
TCP/IP Configuration
5-11
5.4.3 Solaris 2.3 (SunOS 5.3) and SVR4
The nicinst command creates the /usr/nic directory, copies some files, and starts a
command procedure. When it is completed, make the information available to the lp
utility by editing an interface program, usually a shell script. The default interface file is
called standard, but you can use an interface file customized for a particular type of
printer.
1. Make a copy of the interface file in the directory /usr/nic for PORT1. For example:
cp /usr/spool/lp/model/standard /usr/nic/port1_interface
2. Go to the directory /usr/nic and edit the interface file.
3. Change the shell variable FILTER to invoke nicfilter. To accomplish this, search for
the line FILTER='${LPCAT} 0" and replace it with the following:
FILTER="/usr/nic/infilter | /usr/nic/nicfilter \
printer_name printer_port ${nobanner} \
${user_name} ${request_id} ${files}"
where printer_name and printer_port are the names specified in the file
/etc/hosts. The remaining arguments are optional and are used to create a banner that
includes sender name, job number, and filename. Omit the last four arguments to use
the default banner.
4. If your interface file does not have the FILTER shell variable defined, you can
enclose the entire standard file in parentheses and piping it to nicfilter.
5. Use the lpadmin command by typing the following commands:
lpadmin -p printer_name -v /dev/null -i interface_file
enable printer_name
accept printer_name
Repeat the procedure on each system that you want to have access to the printer.
Go to Section 5.5 for instructions on running the nsconfig utility.