IBM_HOSTS(5)
π» IBM_HOSTS(5) β ibm_hosts, the host-database bestie π»
Hey bestie! Welcome to IBM_HOSTS(5) from the File Formats Manual. This is all about ibm_hosts β the host database for x3270 and c3270. It's giving βlittle black book but make it networkβ and I'm obsessed. π
πΈ NAME πΈ
ibm_hosts β host database for x3270 and c3270.
β¨ SYNOPSIS β¨
/usr/lib/X11/x3270/ibm_hosts
π¦ DESCRIPTION π¦
Okay so the ibm_hosts file is literally the info stash about IBM hosts on the network. An IBM host is a host which can communicate with a 3270 terminal emulator such as x3270 or c3270. Main character energy for real. Each line defines a name in the following format (optional fields are shown in brackets):
name type [opt:]...[luname@]hostname[:port] [actions]
Items are separated by any number of blanks and/or TAB characters. A line beginning with # is taken as a comment β and bestie, note that # anywhere else on a line does not indicate a comment. Read that again: only line-start # counts. π
The name field is a mnemonic used to identify the host. Short, cute, iconic.
The type field is a keyword that indicates the type of entry:
primaryβ the name will be included in host-selection menus that may be displayed by a 3270 emulator.aliasβ the name will not be included in menus, but will still be accepted as valid input when a host name is required.
The hostname field is the Internet hostname or dot-notation Internet address of the host.
The hostname can include s: or p: prefixes, e.g., s:finicky (peep the x3270(1) or c3270(1) man page sfor details β yes, sfor is literally in the original, and we respect the lore π
). It can also include an LU name, separated by an @ character, e.g., oddlu@bluehost. Finally, it can include a non-default port number, appended to the hostname with a colon : character, e.g., bluehost:97. (For compatibility with earlier versions of x3270, the port can also be separated by a slash / character.) Slash is lowkey the legacy vibe.
The optional actions field specifies actions to be taken once the connection is made and a data-entry field is defined. If the text looks like an action, e.g., PF(1), it is unmodified; otherwise it is taken as the parameter to the String() action. The actions are not intended for entering usernames and passwords; rather they provide an automated way of specifying a front-end menu option. Not a password vault, bestie β just menu automation.
π EXAMPLE π
Given the following ibm_hosts file:
mvs primary mvs-host
tso alias mvs-host
mvs2 primary mvs-host:4012
vm primary vtam Tab() String(3) Enter()
A 3270 emulator will display four names (mvs, mvs2, afhost and vm) on its hosts menu. (Yep, afhost is what the page says. We don't ask questions, we just report the lore. π) The names mvs and tso will cause connections to the host mvs-host. The name mvs2 will also cause a connection to mvs-host, but to port 4012 rather than the emulator's default port (usually 23). The name vm will cause the 3270 emulator to connect to the host vtam (presumably some sort of host-selection front-end), enter the string 3 on the second data-entry field on the screen, and send the Enter AID sequence. Automation slay.
π FILES π
/usr/lib/X11/x3270/ibm_hostsβ the file itself, the moment, the icon.
π SEE ALSO π
Go read those too, bestie β they're the supporting cast. π«Ά
π Cute little sign-off: this was the IBM_HOSTS(5) page, dated 22 December 2025, and yes, the version/source energy is IBM_HOSTS(5). Stay iconic! π
π¦ where this page comes from
- opensuse-leap 16.0: x3270 4.5-160000.2.1 Β· MIT
- opensuse-leap 16.0: x3270 4.5-160000.2.1 Β· MIT
- opensuse-leap 16.0: x3270 4.5-160000.2.1 Β· MIT
- opensuse-leap 16.0: x3270 4.5-160000.2.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms