|
Session files are created, changed, opened and removed in the session setup dialog. The basic part of the session is
host name (IP address), port, communication protocol (telnet, SSH or SSL), emulation
type (3270, 5250 or VT/ANSI), terminal name and type, translation table are set in this dialog.
Other parts of the session, like font, color, and file transfer setup are kept in separate setup dialog. There is also a
setup dialog called Miscellaneous, which includes minor changes to the default setup. If the check box called Remove Session button is check, then the remove button will be available to remove session files, which is not needed any more. SSH (Secure Shell) and SSL (Secure Socket Layer) is configured in the Security Setup dialog. The Telnet command Timing Mark is used as a "keep alive" mechanism by some hosts to keep the telnet connection open. If it's checked, then it will send positive reply to a request, else it will send a negative reply. If Socket keep alive is checked, then socket (TCP/IP) keep alive will be set on the connection. Routers in between your PC and the host/server can disable this option. If Telnet keep alive is checked, then a telnet command called "No operation" is sent each 20 second. Please keep these three options unchecked as a default setup. |
| The security setup dialog is used with both SSH and SSL setup. Options which are not related to the selected mode will be disabled. SSL certificates must be OpenSSL/pem formatted and SSH private keys must be OpenSSH formatted. The ssh utility ssh-keygen can be used or the included private/public key generator (opened from the Create Key button). |
OpenSession ("C:\Program Files\NexusIT\ibm.nmt")
WaitFor (CONNECT)
WaitFor (UNLOCK)
# The cursor is now in the user name input field
TypeString ("name")
FunctionKey (TAB)
TypeString ("password")
FunctionKey (ENTER)
WaitFor (UNLOCK)
TypeString ("abc")
# End of script
While TextInImage ("MORE INFO")If and while statements can not be nested, but the SetLabel and GoToLabel can be used to build while-loops within an other while loop like:
# Other script functions
CaptureImage ()
FunctionKey (ENTER)
EndDo
If TextInImage ("END OF TEXT")
StopCapture ()
StartApplication ("notepad cap.txt")
EndIf
NumberItem (ABC)
# Number variable ABC set equal to zero While NumberItemLessThan (ABC, 10)
# Other script functions
IncNumberItem (ABC)
EndDo
OpenTextFile ("C:\temp.txt")Nexus Terminal has support for script recording. It will generate a script file based on the user input.
# The text file is opened at this point, else the script would have be terminated
# Default text item separator is ",\t\n"
While ReadTextLine ()
SetLabel ("Next_Item")
# The script file is preprocessed, so this statement will not be added for each iteration
# GotoLabel statement can even be included before the corresponding SetLabel
If GetNextItem ()
# Next item successhully # do what you want with the text stored in TEXT_ITEM
GoToLabel ("Next_Item")
EndIf
# At this point the while loop will continue with the next line
EndDo
# All lines has been parsed, so close the text file
CloseTextFile ()
PRTGROUP PGROUP1
TPRTTEST
TPRTTSTA..TPRTTRPG..FFFFFFFA
TPRTTST1..TPRTTST5..FFFFFFFN
ENDPRTGROUP
IPGROUP IPGROUP1 192.168.0.2..192.168.0.15 ENDIPGROUP
PRTMAP PGROUP1 IPGROUP1 SPECIFIC
Using SPECIFIC in the PRTMAP definition ensures that the same Printer LU will always be assigned to the workstation TN3270 print session. It requires the LU Name to be coded in
the Host Print Setup and Enable Tn3270E must be checked. This method is useful where a group of workstations is in a DHCP scope but will require the same Printer LU each
time a printer session is opened on the same workstation. For example, when the workstation obtains any address in the IP Group, and has specified the Printer LU in the Host Print Setup,
that LU will be always be assigned as a printer to that workstation.
LUGROUP TGROUP1
TERMTEST
TERMTSTA..TERMTRPG..FFFFFFFA
TERMTST1..TERMTST5..FFFFFFFN
ENDLUGROUP
PRTGROUP PGROUP1
TPRTTEST
TPRTTSTA..TPRTTRPG..FFFFFFFA
TPRTTST1..TPRTTST5..FFFFFFFN
ENDPRTGROUP
IPGROUP IPGROUP1 192.168.0.2..192.168.0.15 ENDIPGROUP
LUMAP TGROUP1 IPGROUP1
PRTMAP PGROUP1 IPGROUP1 SPECIFIC
This example maps a group of printers to a single IP Address.
PRTGROUP PGROUP2
TPRTTEST
TPRTTSTA..TPRTTRPG..FFFFFFFA
TPRTTST1..TPRTTST5..FFFFFFFN
ENDPRTGROUP
PRTMAP PGROUP2 192.168.0.16 SPECIFIC
In this example, you can turn a workstation into a mainframe print server by running multiple TN3270 printer clients on the same machine/IP Address and connecting each of them to a
Windows printer. The number of active session is limited by the numbers of printers Windows will allow to be defined and any workstation resource limitations for running multiple
instances of the TN3270 printer client (Memory, CPU). Another use for the above configuration is when Port Overload routing is configured for network traffic (See the white paper
article called Port Address Translation).
LUGROUP TGROUP2
TERMTEST
TERMTSTA..TERMTRPG..FFFFFFFA
TERMTST1..TERMTST5..FFFFFFFN
ENDLUGROUP
PRTGROUP PGROUP2
TPRTTEST
TPRTTSTA..TPRTTRPG..FFFFFFFA
TPRTTST1..TPRTTST5..FFFFFFFN
ENDPRTGROUP
LUMAP TGROUP2 192.168.0.16
PRTMAP PGROUP2 192.168.0.16 SPECIFIC
|
The local and the remote file information consist of a three sections each.
It's a dropdown list of directories visited,which can be edited, a list of directories and a
list of files in the current directory. The current directory is displayed in the dropdown list.
The file selection part can be used to select only a subset of the files available in the current directory.
The local and the remote file information have also a set of buttons, which can be used to change, create or
remove a directory, and to delete or rename a file. The Open button, is used to open, start or view a selected file. The Long dir button on the remote side can be used to get a full directory/file listing. The Get button is used to transfer a remote file to the current local directory, and the Put button is used to do the opposite transfer. Multiple files can be selected for transfer. Just click (with the left mouse button) on transfer mode pane to set an other transfer mode. The Options dialog consist of other transfer related options. The Difference button is only available if an external program, which can be used to view the difference of two programs has been set. It's set and documented in the Options dialog. A single local and/or remote file can be selected. A remote file, which is selected for examination, will be downloaded to a temporary directory, before it's given as a parameter to the external program. The list box at the bottom is a status view of commands sent and the reply from the server. That information can be extended with some debug (low level) information, if it's needed. The status list can be cleared, opened in a viewer like notepad or copied to the clipboard with a click with left mouse button. |
| The popup menu is opened with the CmdMenu button. The ftp command NOOP, (No Operation), can be used to reset a ftp protocol lock. The popup menu also includes several common quote commands for mainframe and OS400 systems. |
|
If store unique is set, then local files are sent with the ftp command STOU, else it will be sent with the STOR command. If receive unique is set and the file to be received exist, then a unique number will be added to the name. The Debug option can be used to get more detailed information of the ftp connection. The debug information will be added to the normal status list box. If this option is set, then the remote directory listing will be included in the status listing. Local or remote files will be deleted without any warnings if the confirm deletion option is not checked/set. Local or remote files selected can be opened with a double click (if configured). If the selected file is an executable file, then it will be started, else it will be opened with an appropriated viewer. Check the option if this functionality is wanted. Transfer modes supported are: Ascii, binary or L8. Remote directory listing is always done in ascii mode. Local or remote file selected with a double click can be ignored, opened or transferred. |