I am using a Trendnet TE100-P1P printserver with an H-P 5l laserjet that supports the following print command sets
	
	
	
		
The printserver has a static IP at 192.168.1.2 and supported ipp:// and http:// in cups and has an hp jetdirect ports that I used for an OpenBSD printcap with apsfilter.
The following is my OpenBSD/Debian printcap:
	
	
	
		
This printcap also works in Debian squeeze with apsfilter.  I struggled mightly before I found a website that suggested using
	
	
	
		
instead of the :rp and :rm entries.
This same printcap did not work with FreeBSD 8.2 and the handbook page indicates that I need a :rm entry otherwise the job will the local parallel port by default.
My attempt at a FreeBSD printcap:
	
	
	
		
My /etc/hosts:
	
	
	
		
My /usr/local/libexec/ps2pcl:
	
	
	
		
Permissions for /usr/local/libexec/ps2pcl:
	
	
	
		
My attempts to print:
	
	
	
		
I have seen several formats for the 9100 printer port:
9100@192.168.1.2 and 192.168.1.2:9100 and 9100%192.168.1.2.
In cups the following works 192.168.1.2 1
1
Thanks in advance
				
			
		Code:
	
	HP ENHANCED PCL5,PJLThe following is my OpenBSD/Debian printcap:
		Code:
	
	## APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
hp5l|hp5l;r=300x300;q=draft;c=gray;p=letter;m=auto:\
    :lp=9100@192.168.1.2:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/hp5l:\
    :lf=/var/spool/lpd/hp5l/log:\
    :af=/var/spool/lpd/hp5l/acct:\
    :mx#0:\
    :sh:
# APS1_END - don't delete this
		Code:
	
	lp=9100@192.168.1.2This same printcap did not work with FreeBSD 8.2 and the handbook page indicates that I need a :rm entry otherwise the job will the local parallel port by default.
My attempt at a FreeBSD printcap:
		Code:
	
	$ cat /etc/printcap
hp5l|lp|hp5l;r=300x300;q=draft;c=gray;p=letter;m=auto:\
    :rm=PS-8B4C0D:\
    :rp=raw:\
    :if=/usr/local/share/ps2pcl:\
    :sd=/var/spool/lpd/hp5l:\
    :lf=/var/spool/lpd/hp5l/log:\
    :af=/var/spool/lpd/hp5l/acct:\
    :mx#0:\
    :sh:
		Code:
	
	# In case you want to be able to connect to the Internet, you need
# real official assigned numbers.  Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
# Network H-P 5l Laserjet printer
192.168.1.2    PS-8B4C0D.home.yak   PS-8B4C0D
		Code:
	
	#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- -
		Code:
	
	ls -al /usr/local/libexec/ps2pcl
-rwxr-xr-x  1 root  wheel  81 May  4 18:39 /usr/local/libexec/ps2pcl
		Code:
	
	$ lpq
Musk.home.yak: waiting for queue to be enabled on PS-8B4C0D
Rank   Owner      Job  Files                                 Total Size
1st    jsh        6    escher.ps                             10617 bytes
$ lpc status all
hp5l:
        queuing is enabled
        printing is enabled
        1 entry in spool area
        waiting for queue to be enabled on PS-8B4C0D9100@192.168.1.2 and 192.168.1.2:9100 and 9100%192.168.1.2.
In cups the following works 192.168.1.2
 1
1Thanks in advance
 
			     
 
		 
 
		