Operating System - HP-UX
1833017 Members
2285 Online
110048 Solutions
New Discussion

Network Pritners related question

 
Nellian Solaiappan
Frequent Advisor

Network Pritners related question

Hi All
Im running a HPUX 11.0 server and I have several network printers set up on the server. The ip address of the printers are set up in /etc/hosts and I want to know how a printer queue knows its ip-address. I tried to grep for the ip/host name in the interface files and drew a blank...

I'd greatly appreciate any help

Nell
5 REPLIES 5
DCE
Honored Contributor

Re: Network Pritners related question



Check in /etc/lp/interface/PRINTER_NAME

the IP address is on the line
PERIPH=xxx.xxx.xxx.xxx

Jeff_Traigle
Honored Contributor

Re: Network Pritners related question

I'm guessing since you grep'ed the interface files with no luck, these aren't configured as network printers. (In HP-speak, network printers are printers configured with the Network Printer Installer, aka JetAdmin, software.) Remote printers have no addresses defined in the interface files. See this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=231325
--
Jeff Traigle
Rick Garland
Honored Contributor

Re: Network Pritners related question

grep PERIP /etc/lp/interface/

In case you get a name instead of IP address, then DNS is probably in use. In which case,
nslookup

Joseph Loo
Honored Contributor

Re: Network Pritners related question

hi,

to "grep" the IP address of the network printers:

# grep 'PERIPH=' /var/spool/lp/interface/*

regards.
what you do not see does not mean you should not believe
Steve Steel
Honored Contributor

Re: Network Pritners related question

Hi

Heres a script I use

finger lp
echo " "
lpstat -t
echo " "
ll -d /var/spool/lp/*
echo " "
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
cd /var/spool/lp
pwd
ll -d member/$printer
ll -d request/$printer
echo " "
cd /etc/lp/interface
pwd
ll -d $printer
grep 'PERIPH=' $printer 2> /dev/null|
head -n 1
ll -d model.orig/$printer 2> /dev/null
echo " "
done

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