- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How does HPPI determine printer model ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО12-05-2005 10:27 AM
тАО12-05-2005 10:27 AM
what I need is actually in the lines of this (semantically not code)
read printer_ip_address
model=`poll printer_ip_address`
if model exists in available model scripts
then
install printer with available script
else
give an error message
fi
In this construct, I do not know how can I determine the model as a result of not knowing how to poll this ip address.
Also once I have the correct printer model, how do I verify if I have the correct model script on my server or not ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2005 10:43 AM
тАО12-05-2005 10:43 AM
Re: How does HPPI determine printer model ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2005 10:52 AM
тАО12-05-2005 10:52 AM
Re: How does HPPI determine printer model ?
If you need to create a command line interface to automate printer installation, it's already done: addqueue (and removequeue, modifyqueue) which can be found in /opt/hpnpl/bin. Check the man pages for addqueue for a non-interactive (and very fast) methid to add a JetDirect printer.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 08:07 AM
тАО12-08-2005 08:07 AM
Solutionhpnpadmin -i printer_ip_address | grep -e MODEL -e MDL
You'll have to figure out how you want to pull the model info from the MDL line (cut, awk, etc.). The text does not appear to be consistent. That would be too easy.
The addqueue -l command will give you a table of printers and their related models that you can use to verify if you have a model script available. Or you could use it to build your own table.
I just downloaded a script for a new printer we just installed. I used www.hp.com/pond/modelscripts/index2.html. These are mostly LaserJet scripts.
Hope that helps,
Marlou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 08:31 AM
тАО12-08-2005 08:31 AM
Re: How does HPPI determine printer model ?
You can cheeck this for , supported printer models with their printer ID, and model_string ,
# cd /opt/hpnpl/bin
# addqueue -l
Also to add a printer, you can use:
# addqueue -i
( hostname to be include in /etc/hosts file )
-----
usages: addqueue [-c class] [-d] [-i printerID]
-q queuename -h hostname [-p port] [-s]
[-r on/off] [-t on/off] [-b on/off] [-L PS/PCL/HPGL/HPGL2/AUTO]
[-P 1/2/3] [-T 1/2/3] [-m banner papersize] [-D on/off]
addqueue -l
----------------------
Cheers,
Raj .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2005 08:40 AM
тАО12-08-2005 08:40 AM
Re: How does HPPI determine printer model ?
cat /opt/hpnpl/admin/PrinterList
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2005 09:28 AM
тАО12-21-2005 09:28 AM