- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lp printing with BSDl option
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
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
тАО06-08-2009 05:54 AM
тАО06-08-2009 05:54 AM
lp printing with BSDl option
Got a bit of a problem and I hope I can find some assistance.
We are installing some newer HP style printers on our IA-64 HP-UX 11iv2 systems using the jetadmin.
One of the printers we are working with is a HP LJ 4320dtn.
I downloaded and installed the model script from http://www.hp.com/pond/modelscripts/index2.html
Configured the printer and passed our string to print
lp -d$printer -n1 -onb -or -c -oBSDl $output
and we get the following error:
Invalid option
Please refer to MAN page for valid options
When dig into it, it appears the option that isn't valid is BSDl which filters out page breaks.
The BSD options get passed to the rmodel script from what I am seeing but for whatever reason we are getting these errors from the newer model scripts. The legacy printers work just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:28 AM
тАО06-08-2009 06:28 AM
Re: lp printing with BSDl option
I have found that I sometimes have to force hppi to use a different model script than the one it defaults to. In your case, I believe it's the model script that is refecting the option and you might want to try one of the other model scripts that does not reject it.
Here's a "printer add" script excerpt that shows how to force a different model:
# these printers can't be allowed to default
# to the net_lj9050 model script or to the
# net_ljM5035mfp model script - so we use
# the "-i 268" printerID syntax to select the
# net_lj8150 model script (see "addqueue -l")
#############################
/opt/hpnpl/bin/removequeue -f -q $PRNTR
/opt/hpnpl/bin/addqueue -i 268 -h $IP -q $PRNTR -b off
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:36 AM
тАО06-08-2009 06:36 AM
Re: lp printing with BSDl option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:50 AM
тАО06-08-2009 06:50 AM
Re: lp printing with BSDl option
Good luck!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 06:53 AM
тАО06-08-2009 06:53 AM
Re: lp printing with BSDl option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 07:06 AM
тАО06-08-2009 07:06 AM
Re: lp printing with BSDl option
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 10:19 AM
тАО06-08-2009 10:19 AM
Re: lp printing with BSDl option
As far back as I can remember, the BSD option applied only to "remote" printers as opposed to "network" printers. Any chance the legacy printers you mention are remotes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 10:34 AM
тАО06-08-2009 10:34 AM
Re: lp printing with BSDl option
You only choice is to rewrite the 4320 printer script to add BSDl (or whatever you want to call the option). I am assuming that page breaks are CRTL-L (the ASCII formfeed character) so you cal use tr as a filter in the modified script.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 10:44 AM
тАО06-08-2009 10:44 AM
Re: lp printing with BSDl option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 11:23 AM
тАО06-08-2009 11:23 AM
Re: lp printing with BSDl option
You may have to hack the BSDI option out of one of those to make this work.
If you specify a remote printer, then the default is (I think) only bsd-style options work, the "-l" (minus ell) option specifies that the output is to run thru a filter that changes control characters to print, ie. Ctl-X prints as ^X, and it suppresses page breaks.
None of the printers I every used supported -oBSD that I can recall (mostly lj4s and 5s and clones thereof.