General
cancel
Showing results for 
Search instead for 
Did you mean: 

How to list current printer model script for each printer

Jeongbae Min
Advisor

How to list current printer model script for each printer

Hello,

I have 50 printers attached HP_UX 11.11 server using HPPI.

I can find each printer model script one by one using HPPI but is there any easy way I can see each printer's model scripts.

So I can use same model script to assgine this printer to new UNIX box.

Thank you in advance,

Jeongbae
1 REPLY
Bill Hassell
Honored Contributor

Re: How to list current printer model script for each printer

For all hppi printers, you can use this technique:

what /etc/lp/interface/model.orig/*

This shows the 'what string', a classic version/title string found in scripts and compiled programs. There is no guarantee every possible script will have a what string but a quick check of /opt/hpnpl/sh shows all of them do have the string:

what /opt/hpnpl/sh/*

Note that a particular printer's model script may have been modified for a special purpose. Good sysadmin technique would dictate that a modified script is copied to the /opt/hpnpl/sh directory with a new name *and* a modified what string. The what string starts like this:

#@(#) $Header: ...

If you haven't found this command: addqueue, this is the easiest way to add a lot of hppi printers.


Bill Hassell, sysadmin