Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Table of contents
Table of Contents | ||||
---|---|---|---|---|
|
Serial Lines for Emulated Systems
All Most emulated HP3000 and HP9000 models have at least two serial lines (LDev 20 and 21). One of these emulated lines is mapped to the serial console, the other to a second serial port. Some models may have more serial lines. Please refer to Emulated Model Hardware Configuration Details for more information.
Configuration Parameters Overview
Each emulated line has a device path denoting bus and slot information in the emulated system (see configuration file template or chapter Emulated Model Hardware Configuration Details) and a configuration path. The configuration path is used to set up the serial line configuration in the emulator configuration file.
...
serial.uartX.device.<option>="<value>" |
If the Super/IO module has been loaded, there are two additional serial lines. In the configuration, they are identified by superio_001.uart0 and superio_001.uart1. The basic configuration options are the same as for the default serial lines.
Div | ||
---|---|---|
| ||
A serial port has three configuration options:
...
Line | HP3000 | HP9000 |
---|---|---|
Emulated serial console on port 30000 using the telnet protocol. PuTTY started automatically with preconfigured profile. | ||
1 | serial.uart0.device.type="telnet" serial.uart0.device.port=":30000" serial.uart0.device.command="putty -load HPA-Telnet" |
|
Emulated second serial line in raw mode on port 30002. | ||
2 | serial.uart2.device.type="socket" serial.uart2.device.port=":30002" | serial.uart2.device.type="socket" serial.uart2.device.port=":30002" |
Div | ||
---|---|---|
| ||
HP-UX Interactive Login Activation
To enable interactive login on a non-console serial line in HP-UX, a GETTY process has to be started for the terminal line.
You can add an additional terminal via SAM (Peripheral Devices > Terminals and Modems > Actions > Add Terminal). This will also add the necessary entries in to /etc/inittab.
You can also (as the root user) edit /etc/inittab to add the configuration manually or to modify an existing configuration. After editing the file, any changes must be activated by running the command
# init q
The command
# ps -ef | grep -i getty
can be used to verify that the processes are running. Note that a GETTY process is only shown for lines without active login session.
Sample inittab entries:
a0:1234:respawn:/usr/sbin/getty -h tty1p0 9600
a1:3:respawn:/usr/sbin/getty -h tty2p0 9600
After this configuration, when connecting to the serial line, a login prompt should be displayed.
Div | ||
---|---|---|
| ||
Terminal Emulation Considerations
The emulated serial lines can be accessed via a terminal emulation program running on the emulator host system or on a remote system.
...
If not done so already during the installation, copy the provided PuTTY profiles to the correct directory on the host system. See Charon-HPA Software Installation.
Accessing Emulated HP3000 Systems via Terminal Emulation
HP3000 guest systems running on Charon-HPA can be accessed directly from the Linux emulator host using either of two freeware terminal emulators listed below, both of which run directly on the Linux host desktop, or by simply using the telnet command. Each has limitations, however. Neither terminal emulator provides a reliable way to paste multiple lines of text into :EDITOR , for example.
Once the HP3000 network is configured, it may be preferable to connect to the virtual HP3000 from a networked PC using any of the robust commercially-available terminal emulators.
Using PuTTY
The PuTTY terminal emulator is the preferred method to use as the HP3000 console. It does not, however, support HP terminal escape sequences, so any inverse or highlighted text codes will be ignored, and block mode applications cannot be run. Using PuTTY in telnet mode (as supplied) allows use of the Break key. PuTTY supports copy and paste. To copy text to the clipboard, just select it with the left mouse button (this automatically copies the selection to the clipboard). To paste the clipboard into a PuTTY window, use Shift-Ins . Unfortunately, PuTTY cannot be used to reliably paste large blocks of text (even with MPE type-ahead enabled), as data overruns can easily occur.
...
The image below shows a PuTTY terminal window connected to the emulated HP3000 system console:
Div | ||
---|---|---|
| ||
Using xhpterm
The xhpterm terminal emulation (an X Windows version of freevt3k ) does not support many HP terminal escape sequences, but it can be used to run block-mode applications. It must be used on a serial line set up for raw mode.
The following image shows an xhpterm window connected to the second serial line of an emulated HP3000 system (running NMMGR):
Mapping the Block-Mode Enter key
The primary purpose for including this terminal emulator is to allow block-mode applications (like NMMGR ) to be run from the Linux desktop. xhpterm uses the numeric keypad Enter key to simulate block-mode Enter. If your keyboard does not have a numeric key pad, the Enter key can be mapped to another key or key combination using xmodmap on Linux.
...
Step | Command | |
---|---|---|
1 | Determine the key code of the Right-Ctrl key. |
You will receive an output similar to:
|
2 | Redefine the key code to the numeric keypad Enter key. | $ xmodmap -e "keycode 105 = KP_Enter" |
3 | If original key mapping is required, reverse step 2. | $ xmodmap -e "keycode 105 = Control_R" |
Div | ||
---|---|---|
| ||
Using Different Fonts
The default command-line to start xhpterm is: $ xhpterm -port 30000 -clean -font 10x20
...
When using xhpterm , avoid resizing the window - it can result in input and output fields in block-mode programs being misaligned. Changing the screen font will change the window size automatically, without causing this problem.
Accessing Emulated HP9000 Systems via Terminal Emulation
Stromasys provides preconfigured PuTTY profiles to access the serial console of an HP-UX system running on Charon-HPA. PuTTY does not support all control characters used by HP-UX, but many utilities (e.g., SAM) will work with some restrictions.
...
Additional information: Cannot get correct line drawing on Linux/UNIX with Putty.
Div | ||
---|---|---|
| ||
Other Terminal Emulation Considerations
Accessing the Emulated System Console from a Remote System
Please note: intermediate firewalls must allow the ports used.
...
To exit the session, use the telnet escape key sequence CTRL+}
and type quit
.
Tunneling a Terminal Emulation through an SSH Tunnel
Even though a plain telnet connection can be used to connect to the emulated system's console, this plaintext connection may create security problems. As an alternative, you can tunnel a terminal emulation through an SSH tunnel provided X11 is active on the emulator host and the remote system.
...