HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

lp printing with BSDl option

 
Albert Smith_1
Regular Advisor

lp printing with BSDl option

Hello all,

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.

14 REPLIES
Pete Randall
Outstanding Contributor

Re: lp printing with BSDl option

Albert,

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
Albert Smith_1
Regular Advisor

Re: lp printing with BSDl option

Unfortuantly we can't use a different model script as we need the options from each specifc printer. As we print from SAP we need to be able to use the different trays. By selecting a different model script we lose much of that functionality. One of the things that we have noticed at least with this printer is if we use net_generic (generic LJ Printer driver) it uses different defaults then the printer defaults.
Pete Randall
Outstanding Contributor

Re: lp printing with BSDl option

Back when I first ran into this problem I opened a support call with HP and that was their suggestion. That was over 3 years ago and I'm still waiting for them to correct the model script that I can't use.

Good luck!


Pete

Pete
Albert Smith_1
Regular Advisor

Re: lp printing with BSDl option

I have a call open to them as well. This is starting to concern me...
Pete Randall
Outstanding Contributor

Re: lp printing with BSDl option

I never pushed very hard for a resolution because the workaround was perfectly acceptable to me. In your case, you might want to be a little less "laid back" in your dealings with support.


Pete

Pete
OldSchool
Honored Contributor

Re: lp printing with BSDl option

"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."

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?
Bill Hassell
Honored Contributor

Re: lp printing with BSDl option

OldSchool has it. You are trying to mix options designed for remote printers on a Windows or Linux box with an HP printer connected using JetDirect (hppi). You can't have both out of the box. If you connect the printer to a Linux box and configure it as a remote printer, then BSDl will work but you will lose 100% of all the other options (landscape, duplex, lpi, etc).

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
Albert Smith_1
Regular Advisor

Re: lp printing with BSDl option

No they aren't remote printers. If the BSD option was only for remote printers then every printer that I am using via Jetdirect should fail then with an Invalid option. I only get this on newer style printers.
OldSchool
Honored Contributor

Re: lp printing with BSDl option

ok then, so what "model" scripts are used with the "legacy" printers, or what model / type of printer are they?

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.
Albert Smith_1
Regular Advisor

Re: lp printing with BSDl option

Ones that do work with the BSDl:

net_genericprinter
net_lj4x
net_lj5x
net_ljx000 (I belive I would need to test again)

For now I have set the 2430dtn on the hpux side to net_genericprinter and I am getting basic funcitonality.

And from what I received back from support they are going to punt me to the Jetdirect team which never seems to respond.



Bill Hassell
Honored Contributor

Re: lp printing with BSDl option

As Albert points out, a few of the JetDirect scripts have the BDSl option. Two choices now:

1. Use one of the older scripts such as net_ljx000 or net_lj5x. The options to control features such as landscape, etc, are the same for all PCL printers.

2. port the code from net_lj5x that handles the BSDl option into the 4320 script.

Model scripts are not really maintained very well by the HP printer division as their primary focus has always been PC Windows.


Bill Hassell, sysadmin
Albert Smith_1
Regular Advisor

Re: lp printing with BSDl option

Just as I thought would happen they did turf my call (good thing I pay all this money for support).

So I received a response from the IPG TC Hotline and surprise surprise their recommendation was to make it a remote printer. After explaining that I can't because of my application requirements they are escalating to a "higher level"

OldSchool
Honored Contributor

Re: lp printing with BSDl option

I'm with Bill on this one...take a look at the net_lj4x script and find the pieces that do the BSDl related stuff...port that into the script for your printer. (just make sure you keep a good backup copy)

I've a feeling that the support on model scripts isn't going to be that great...somebody had an issue w/ a broken installer for a 4350(?) or some such. I posted instructions here on how to fix it and exactly what was broken in it. IIRC it was something like 9 months before the download had the fixes in it.
Albert Smith_1
Regular Advisor

Re: lp printing with BSDl option

Well HP Turfed me to the jetdirect team once again where I was blown off. This is getting a bit tiresome... Need to contact our HP Account Manager and get some action on this...