Strovent SystemsSign in
Reference

TN3270E negotiation errors

What happens when TN3270E device-type negotiation fails, and what the RFC 2355 reason codes such as DEVICE-IN-USE and INV-NAME mean.

TN3270E (RFC 2355) starts with a Telnet option negotiation, then a DEVICE-TYPE exchange, then a FUNCTIONS exchange. Only after both exchanges succeed does 3270 data flow. If DEVICE-TYPE fails, the server sends DEVICE-TYPE REJECT with a reason code.

What is being asked for

The server sends DEVICE-TYPE SEND. The client replies with a device type, and may add CONNECT (a specific device or pool name) or ASSOCIATE (a printer paired with a terminal you already have). Device-type names are upper-case ASCII, for example IBM-3278-2-E or IBM-3287-1 for a printer. Device and resource names are up to 8 bytes, and case does not matter.

The server must accept or reject the request as a whole. If it accepts, it returns the device type and the device name (LU name) it assigned.

Reason codes

RFC 2355 defines these reject reasons:

INV-DEVICE-TYPE   The server does not support that device type.
INV-NAME          The CONNECT or ASSOCIATE name is not known.
DEVICE-IN-USE     That device name is already in another session.
TYPE-NAME-ERROR   The name does not match the device type
                  (for example, a terminal name with a printer type).
UNSUPPORTED-REQ   The server cannot do this kind of request
                  (no such pool, or no partner printer for ASSOCIATE).
INV-ASSOCIATE     ASSOCIATE was used but the type is not a printer,
                  or the name is not a terminal.
CONN-PARTNER      CONNECT asked for a printer that is already
                  the partner of a terminal.
UNKNOWN-ERROR     Any other error in device-type or name processing.

A client that asked for a specific LU and receives DEVICE-IN-USE can wait and try again, ask for a pool name instead, or leave the name empty so the host picks a free LU. INV-NAME usually means the spelling is wrong or the name is not defined on that server.

If TN3270E itself is refused

If either side sends WON'T or DON'T TN3270E, both sides may fall back to classic TN3270 (RFC 1576). Classic TN3270 has no standard way to request an LU name. See TN3270E and LU names.

Device types and models are listed in Screen models.

Sources

Spotted a mistake? Email [email protected].