Pragma FortressSSH provides client-side printing from a session. Client printing is not supported by all ssh clients, so it is important to make sure that the client being used will support printing from a session. The Console Secure Shell Client, shipped with Pragma FortressSSH, and FortressCL, Pragma's GUI client available from Pragma Systems, support client-side printing.
To setup Printer Monitoring, configure a printer on the server. This information can be found in the Windows documentation. We recommend a Generic/Text Printer on LPT1 or LPT2. Most DOS programs usually only support LPT1 or LPT2 and usually format their own output for the printer.
Next, configure Pragma Fortress to monitor the printer port setup on the OS for printing. It is very important to understand that no print jobs will print locally on the server through the configured port as long as print monitoring is turned on.
What follows are step-by-step instructions to set up remote printing, and also a list of rules\restrictions that must be observed.
Step-by-Step Instructions:
On the Pragma FortressSSH machine:
1.Create a Generic\Text Printer (Control Panel\Printers\Add Printer)
2.Go to the Print Monitoring management
3.Check "Enable Print Monitoring" checkbox
4.Click "Add" under Printer Ports
5.Select the number and the type (parallel or serial) for the port on which the Generic\Text Printer was configured.
6.Check the "Send Form Feed" box.
7.Click "Apply". Answer yes to restart the Spooler Service, when asked. Click "OK".
8.Click OK to exit.
On the client, using Pragma's Console SecureShell Client.
Connect to Pragma FortressSSH with the following command, where PRINTER is the name of a client's configured printer.
ssh hostname -r PRINTER
If printing to a network printer, use the command line:
ssh hostname -r \\COMPUTERNAME\PRINTER
NOTE: this command can be the command line for a shortcut placed on the user's desktop.
See Console SecureShell Client - Printing Options for more help on client side configuration.
To test printing in the session, select or create a small .txt file, and execute the following command:
copy file.txt LPT1:
(Change to the port configured earlier if not using LPT1)
Pragma FortressSSH will redirect the output to the specified client printer.
Rules\Restrictions
· The port created on the server as the Generic\Text Printer must be an actual, physical port. Other devices cannot use it while Print Monitoring is enabled. We recommend LPT1 or LPT2, because most DOS programs usually only support LPT1 or LPT2 and usually format their own output for the printer.
· Jobs cannot be sent too quickly to the port or the port will be lost. This is an Windows limitation.
· Users must have at least Change access to the Spool and Save directories.
· On the client, the printer name must not contain spaces. (For example, rename "EPSON STYLUS" TO "EPSON")
· Finally, it is imperative that no 2 users connect to the FortressSSH Server with same logon name at the same time and try to print a document.
Troubleshooting
The job goes to the SaveDir but doesn't print to the client printer.
The client printer isn't configured right. Make sure to capture the printer port on the client side. See above.
"Unable to print" or similar errors.
The server printer isn't configured correctly.
When printing a large number of jobs, some jobs are getting lost.
The application is printing the jobs too fast. The jobs are getting to the port too quickly, causing a port error. Slow down how the jobs are being sent to the printer, either by printing one large job or adding a delay between jobs.
Print jobs are printing to the wrong client.
Users are probably logging on with the same username. The printing
process is outside of the session, so the username is used to
distinguish between sessions. Users cannot logon with the same username.
When troubleshooting printing problems, track a print job through each stage of printing.
1.Print job leaves process that prints. Print job will appear in Print Queue for General / Text Only printer port being monitored.
2.Telnet Server prints the job. With the "Save Jobs" option on, the print job is saved in the appropriate directory. The SpoolDir cannot be used to view the jobs as they spool.
3.The client receives the job. The client captured printer queue contains the job.
4.The client prints the job.
The client printer prints the job.