Get_Printer(CurrentDevices) on Citrix (OpenInsight 32-Bit)
At 16 NOV 2007 02:09:44AM Tony Lillyman wrote:
I'm reposting here (now that I have renewed subscriptions)
Maybe I'll get a response …
Hi Folks
I have a system (OI7.22) running over Citrix in which I call
Get_Printer(CurrentDevices) to obtain a list of "Available Printers"
At present it returns ALL Printers attached to ANY active Citrix session on that server, not just the ones for the session running.
ie remote printers not strictly speaking "available" to the session making the call.
I expect I will simply need to filter out all but the current sessions printers and the "global" ones.
Is this "normal" for Get_Printer on Citrix?
Any help appreciated.
Tony
Compose a Response to this document or a new Main Topic
At 16 NOV 2007 10:10AM Bob Orsini wrote:
Currently the getpinter command does not check sessions on Citrix.
At 16 NOV 2007 11:09AM Warren Auyong wrote:
As I recall it returns the printer devices for the client workstation and Citrix server.
Printers local to client workstation will have a name like:
Client/client_station_name#/printer_name
@Station will return the name of the Citrix Server. To get the client station name you need to parse the environment variable "CLIENTNAME".
So assuming the Citrix server is named "Citrix1" and the client workstation is "Accounting31":
@STATION=Citrix1"
CLIENTNAME env variable=Accounting31"
Printers local to "Accounting31" would be refered to as:
Client/Accounting31#/printer_name
Note the forward slashes and the pound sign (#)
At 18 NOV 2007 05:32PM Tony Lillyman wrote:
Thanks Warren
Yes I figured I would be doing some filtering
before building/displaying Printers List
Like you say it would be too difficult to
achieve.
Tony
At 18 NOV 2007 05:32PM Tony Lillyman wrote:
Thanks
Bob