1833106 Members
3175 Online
110051 Solutions
New Discussion

jetadmin query

 
SOLVED
Go to solution
Adam Noble
Super Advisor

jetadmin query

Exciting as it is I need to understand how I can gather my current printer configuration from Jetadmin. Basically we are migrating to another platform which is Solaris. We will not be using jetadmin so I simply need to extarct printer queues and hardware from my current configuration. Does anyone know how I do this. I would imaging its possible. I don't want to have to do this one by one!!
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: jetadmin query

jetadmin is the name for a very obsolete product that was replaced with hppi back in 1999. Now it may be confusing that JetDirect is the product family of HP LAN cards for printers. So unless you are running a very obsolete version of HP-UX, you should be running hppi software (found in /opt/hpnpl -- jetadmin is found in /opt/hpnp).

The good news is that the same software (hppi) is available for Solaris and the better news is that you can easily create an automated script to add all the printers with no interaction. NOTE: you don't want to add the printers to Solaris as print servers (ie, lpd/lpr style) as you will have limited functionality, especially with -o options.

To capture all the JetDirect printers and create an add-printer script, do this:

cd /etc/lp/interface
for PRN in $(grep -l ^PERIPH *)
do
IP=$(grep ^PERIPH $PRN)
echo "addqueue -h $IP -q $PRN" >> /var/tmp/addprinters
done

Then move the script over to the Solaris machine. Install HPPI software from:

http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?〈=en&cc=us&pnameOID=18924&taskId=135&prodTypeId=18972&prodSeriesId=27351〈=en&cc=us

Then make the script executable and run it. That will create all the print queues. NOTE: IP addresses are usually more portable, especially for printers. The problem is with DNS admins -- they sometimes forget to add or maintain printer IPs. If neeed, change all the -h options in the addprinters file to IP addresses. There's no need for printer hostnames in the spool system (HP-UX or Solaris).


Bill Hassell, sysadmin
Jonathan Fife
Honored Contributor

Re: jetadmin query

You can determine the printer port and server/ip address from the /var/spool/lp/interface file. I'd do something like the following:

for file in $(ls /var/spool/lp/interface); do
[ ! -f $file ] && continue
echo $file
egrep 'xPORT=|PERIPH=[^\$]' $file | sed -e 's/^/ /'
done

xPORT is the port number (9100 is the default) and PERIPH is the host name/IP address. It will list the output as:

queue_name
xPORT=9101
PERIPH=printer_name

HTH
Decay is inherent in all compounded things. Strive on with diligence
Geoff Wild
Honored Contributor

Re: jetadmin query

You could download Jetdirect for Solaris - should make the migration less painful:

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=18924&prodTypeId=18972&prodSeriesId=27351&swLang=8&taskId=135&swEnvOID=1088

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.