Thursday, 4 July 2013

Apply a filter to a remote printer before sending it on to the print server

Question

How to apply a filter to a remote printer before sending it on to the print server?

Cause

Not able to see the remote printQ to modify it

Answer

If you have setup a remote printer with local filtering, and need to run filter before sending to remote server. but can't figure out how to do this.

usually only HP printQ shows up when you go to
#smitty spooler
Programming Tools
Change / Show Pre-processing Filters
Esc 4

will list all HP printQ not the remote printQ
the type of printer I have is not on this list because it's a remote printQ.
*******************************************************************************
Here are the steps: let's assume
The path to the filter is /usr/local/bin/k_land132.ksh
Run:
# lsvirprt
No. Queue Device Description
1 adc010 hp@p3821a hplj-4+ (PCL)
2 ith010 hp@p3855a hplj-4+ (PCL)
3 mis010 hp@p3852a hplj-4+ (PCL)
4 p3835a1 @pserv25 hplj-4+ (PCL)
5 p3835a2 @pserv25 hplj-4+ (PCL)
6 p3835a TCP@pserv25_515 hplj-4+ (PCL)
7 pao010 hp@p3818a hplj-4+ (PCL)
8 pao011 hp@p3818a hplj-4+ (PCL)
9 pao013 hp@p3818a hplj-4+ (PCL)
10 reg010 hp@p3812a hplj-4+ (PCL)
11 testq:TCP@pserv25_515 TCP@pserv25_515 hplj-4+ (PCL)
12 testq:@pserv25 @pserv25 hplj-4+ (PCL)
13 trn hp@p3835a hplj-4+ (PCL)
14 wcp010 hp@p3839a hplj-4+ (PCL)

Enter number from list above (press Enter to terminate): -> 12
testq:@pserv25 @pserv25 hplj-4+ (PCL)
To LIST attributes, enter AttributeName1 ... (* for all attributes)
To CHANGE an attribute value, enter AttributeName=NewValue
To FORMAT and EDIT an attribute value, enter AttributeName~v
To EDIT the attribute file, enter ~v
To terminate, press Enter: f=c
Name Description Value
_f Pre-processing FILTER NAME c
To LIST attributes, enter AttributeName1 ... (* for all attributes)
To CHANGE an attribute value, enter AttributeName=NewValue
To FORMAT and EDIT an attribute value, enter AttributeName~v
To EDIT the attribute file, enter ~v
To terminate, press Enter: fc=/usr/local/bin/k_land132.sh
Name Description Value
fc cifplot filter /usr/local/bin/k_land132.sh

Now the remote printQ got hard coded in the colon file to be filtered before sending the remote server.

0 blogger-disqus:

Post a comment