HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- jetadmin query
Operating System - HP-UX
1833106
Members
3175
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2006 10:48 PM
10-01-2006 10:48 PM
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!!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 01:32 AM
10-02-2006 01:32 AM
Solution
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 01:32 AM
10-02-2006 01:32 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 01:40 AM
10-02-2006 01:40 AM
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
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.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP