Hello;
As the title says, am trying to find our which driver is used for the alraedy working print queues..
neither hpnpf nor hppi seems to give that info ..
Any ideas ??
Thnx
Hello;
As the title says, am trying to find our which driver is used for the alraedy working print queues..
neither hpnpf nor hppi seems to give that info ..
Any ideas ??
Thnx
What OS version / platform ?
Is /etc/lp/interface/
(HPUX11.11 parisc...) what you are looking for?
e.g.
ant:/etc/lp/interface $ ll
total 270
drwxr-xr-x 3 lp bin 1024 Nov 19 2008 .
drwxr-xr-x 8 lp bin 1024 Nov 19 2008 ..
-rwxr-xr-x 1 lp lp 11534 Nov 11 2008 LJ_3b1
-rwxr-xr-x 1 lp lp 11535 Nov 11 2008 LJcolor
-rwxr-xr-x 1 lp bin 11555 Nov 19 2008 cm6040
-rwxr-xr-x 1 lp lp 11531 Nov 11 2008 lp0
-rwxr-xr-x 1 lp lp 11531 Nov 11 2008 lp3
-rwxr-xr-x 1 lp lp 11531 Nov 11 2008 lp8
-rwxr-xr-x 1 lp lp 11531 Nov 11 2008 lp9
-rwxr-xr-x 1 lp lp 11540 Nov 11 2008 lpdgas
-rwxr-xr-x 1 lp lp 11542 Nov 11 2008 lpjtest
-rwxr-xr-x 1 lp lp 11541 Nov 11 2008 lpvbe
drwxr-xr-x 2 lp bin 1024 Nov 19 2008 model.orig
ant:/etc/lp/interface $ grep PRINTER lpvbe
PRINTERCFG=/opt/hpnpl/admin/printers/257.cfg
I had a more complicated script written a long time ago to find out this information,
but after realizing due to VBE's post (thank you VBE) that I could get all the info I
required in one place, I've reworked that into this simple script. Perhaps this will help?
#!/bin/sh
# hp-ux 11.11
# Script will return the IP Address, Model Script and
# the MIO# for all printers configured on the system.
# script uses 'eval' to set the variables PERIPH (ip address), MODELSCRIPTNAME
#and PRINTERCFG (mio#) that exist in each printer interface. If one or more of the
#variables are not found, that information will be left blank, but the printer name
#will be printed.
#
# Create Header
#
Hptr=PRINTER
HIPA='IP ADDR'
HMOD=Model
HMIO=MIO#
printf '%-10s%-20s%-20s%-10s\n' "$Hptr" "$HIPA" "$HMOD" "$HMIO"
IDIR=/etc/lp/interface
cd ${IDIR}
for ptr in *
do
if [[ -f $ptr ]]
then
# set PERIPH, MODELSCRIPTNAME & PRINTERCFG found in printer interface
eval $(grep -E "^PERIPH=|MODELSCRIPTNAME=|PRINTERCFG=" $ptr | xargs | tr ' ' ';')
PRINTERCFG=${PRINTERCFG##*/}
PRINTERCFG=${PRINTERCFG%%\.cfg}
printf '%-10s%-20s%-20s%-10s\n' "$ptr" "$PERIPH" "$MODELSCRIPTNAME" "$PRINTERCFG"
unset -v PERIPH MODELSCRIPTNAME PRINTERCFG
fi
done
cd -