- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- trying to add a network printer with jetadmin
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
тАО07-19-2007 03:27 AM
тАО07-19-2007 03:27 AM
i am trying to add an HP laserjet printer (P2015) using jetadmin. When i try, i get the message, "xxx is not an acceptable name! Either it is not a network printer or host is denied access to it!. We add hundreds of printers, i believe this is the first time i've seen this. We are running HPUX 11.11 V1. I have tried on different servers with the same response. I can ping the printer, but when i try to telnet to it, it says connection refused. any ideas would be appreciated.
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 03:35 AM
тАО07-19-2007 03:35 AM
SolutionI am not sure how you setup your printers, but everyone seems to have their own way. I personally define my printers in the /etc/hosts file. If you do this you can use the ip of another printer. then add the printer by name and then change the ip in the /etc/hosts file afterwards. You could also use the addqueue command which does not attempt to ping the printer, etc. Or you can use the ip of another printer when you add it and then change the PERIPH= line for the printer under /etc/lp/interface.
You may aslo want to download the p2015 modelscript from here:
http://www.hp.com/pond/modelscripts/index2.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 05:50 AM
тАО07-19-2007 05:50 AM
Re: trying to add a network printer with jetadmin
you'll either have to connect it to a windows printer server and install it as a remote printer or see if you can drive it off of a jetdirect box.
search itrc w/ P2015, you'll find lots of hits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 11:20 AM
тАО07-19-2007 11:20 AM
Re: trying to add a network printer with jetadmin
did you add the printer name to /etc/hosts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 02:57 PM
тАО07-19-2007 02:57 PM
Re: trying to add a network printer with jetadmin
Since you are running 11.11, you already have hppi (HP Printer Installer) so you can use that. The program hppi is quite similar to jetadmin but it supports new printers, and SAM calls this program when you add a printer.
NOTE: a hostname is NOT necessary and NOT desirable. Many HP-UX boxes find themselves in a Windows DNS environment and trying to get printer hostnames added to DNS is a major pain. Don't bother -- when hppi asks for a hostname, type in the IP address. Be sure to dowload the latest printer script as mentioned above.
However, with hppi (and the obsolete jetadmin too), the preferred method is to use the ultra-simple addqueue to add a JetDirect printer. Nothing more than:
addqueue -h 12.34.56.78 -q my_prn_queue
That's all there is to it. To get all the stats from the printer, use the command:
hpnpadmin -v 12.34.56.78
Now, if either of these commands report that it is not a network printer, then the printer must not have an built-in JetDirect card and has been attached to the network with a non-HP adapter. That changes everything. Non-HP network adapters use the very primitive lpr/lpd protocol and you lose 100% of the -o options such as duplex and landscape and tray selection, etc. You can still use the printer in a reduced capacity by adding it using SAM as a "remote printer", not a "network printer". You may have to modify the printer script (a standard rlp script) to send the PCL escape sequence to map LF to CR/LF to turn off stairstep text printing.
And all the above assumes that you have the correct IP address for the printer and that the printer has the correct subnet and gateway information.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2007 03:33 AM
тАО07-20-2007 03:33 AM
Re: trying to add a network printer with jetadmin
"xx is not an acceptable name! Either it is not a network printer or host is denied access to it!"
Anyway, I put the network printer name and ip in the /etc/hosts file. I changed the ip for that entry to the ip of another printer that does not show that error in hppi. I then setup the printer and selected the net_lj2015 modelscript. Once done I changed /etc/hosts to use the correct ip. I sent a test page and it worked fine. But for simplicity I will just use addqueue in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 09:30 AM
тАО10-29-2007 09:30 AM
Re: trying to add a network printer with jetadmin
I would like to comment on this thread. We are trying to modify printer network configuration in HPPI. We would like to put in the printer's name. HPPI does not allow this. It seems to want the IP address only. Most of the threads here all refer to the IP address, and not the name. Our Unix server resides in a Windows DHCP/DNS environment. The printer name is defined there. In this thread, Bill indicates that DNS should be used, however, the unix commands all have an IP address in them. One would think you could use the name, rather than the IP address.
The question is: when defining a printer in HPPI, should we be using the IP address, or the printer name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2007 10:28 AM
тАО10-29-2007 10:28 AM
Re: trying to add a network printer with jetadmin
hppi tries to be too clever in testing for compatibility. I would always use addqueue with an IP address and if necessary, the printer ID option to select a specific printer model script.
Bill Hassell, sysadmin