Operating System - HP-UX
1827295 Members
2619 Online
109717 Solutions
New Discussion

What's the diff between printer "interface" and "model"?

 
Bob Brazner
Occasional Contributor

What's the diff between printer "interface" and "model"?

When defining (lpadmin) a remote printer, what's the difference between using an interface program (-i) vs. using a model program (-m)? If I go with a interface program, what command can I use to list the interfaces associated with a printers (lpstat does not appear to have a flag option for this).
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: What's the diff between printer "interface" and "model"?

There is nothing much you can change for a remote printer. -i has no meaning because there is no real interface -- it is a virtual printer on another computer. -m should specify rmodel as the printer's model script. If you read the rmodel script, you'll see that there isn't a lot you can control. This is the syntax for adding a printer from the command line (although it's easier with SAM).

/usr/sbin/lpadmin -pmyprinter -v/dev/null -mrmodel -ocmrcmodel
-osmrsmodel -ob3 -ormsystem2 -orpprn -v/dev/null

The above is for BSD remote systems like Linux or Windows. When you use a remote printer, you lose all the lp -o options for format control unless the remote system is another HP-UX system.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: What's the diff between printer "interface" and "model"?

Hi

As said in the previous reply a remote printer uses none of the facilities of the printer due to what it is.


#Note: These options must be preceded by "BSD" in the option argument.
# ie. use "-oBSDh" to suppress banner page.

# lp interface for remote spooling.

# Options Recognized:
#
# -C class Take the following argument as a job
# classification for use on the banner page.
#
# -J job Take the following argument as the job name
# to print on the banner page. Normally, the
# first file's name is used.
#
# -T title Use the next argument as the title used by
# pr(UTIL) instead of the file name. -T is
# ignored unless the -p option is specified.
#
# -i[numcols] Cause the output to be indented. If the next
# argument is numeric, it is used as the number
# of blanks to be printed before each line;
# otherwise, 8 characters are printed.
#
# -kfont Specify a font to be mounted on font position
# k, where k is from 1 to 4.
#
# -wnum Take the immediately following number to be
# the page width for pr(UTIL).
#
# The following single letter options are used to notify the
# line printer spooler that the files are not standard text
# files. The spooling system uses the appropriate filters (if
# the option is supported) to print the data accordingly.
# These options are mutually exclusive.
#
# -c The files are assumed to contain data
# produced by cifplot.
#
# -d The files are assumed to contain data from
# tex (DVI format).
#
# -f Use a filter that interprets the first
# character of each line as a standard FORTRAN
# carriage control character.
#
# -g The files are assumed to contain standard
# plot data as produced by the plot routines.
#
# -l Use a filter that suppresses page breaks.
#
# -n The files are assumed to contain data from
# ditroff (device independent troff).
:


Get your printers on the network even if you have to get some ex+ boxes to hang them on.

Then you can always print even if one machine is down and you have full options.

Also from hppi with
addqueue -l

You can see which script fits which printer

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)