Strovent SystemsSign in
Reference

z/VM HCPLGA054E "Already logged on": reconnect with LOGON ... HERE

HCPLGA054E means your z/VM user ID is still logged on elsewhere or disconnected. LOGON user1 HERE takes the session over; then BEGIN if you land at CP READ.

HCPLGA054E Already logged on disconnected
HCPLGA054E Already logged on LDEV L0005

z/VM refuses the logon because your user ID already has a session. Your virtual machine is still there, either disconnected or attached to another terminal. You can take it over instead of waiting.

Reading the message

HCP is the prefix for CP, the z/VM control program. LGA is the code of the module that issued the message, and 054E is the message number with E for error. IBM's message manual lists it as HCP054E.

The words after "Already logged on" say where the session is:

  • disconnected: no terminal is attached. This is the usual case after a dropped connection, a closed emulator or a DISCONNECT command.
  • GRAF, LDEV or LUNAME with a device or name: the session is attached to another display, a logical device or an SNA terminal. For example, another emulator window that is still connected.
  • SYSTEM and a name: in a Single System Image cluster, the user ID is logged on to that other member.

Take the session over: LOGON ... HERE

On the logon screen's command line, enter:

LOGON user1 HERE

HERE tells CP to disconnect your user ID from its current terminal and reconnect it to this one. You are asked for your password as usual, and the response says RECONNECTED AT with the time. The old terminal, if it is still connected, gets a DISCONNECT ... BY LOGON FROM message. CP may take a while if the old terminal is hung, because it still tries to disconnect it cleanly.

If the ID is disconnected, plain LOGON user1 also reconnects; HERE makes it work in both cases.

After you reconnect you may be at CP READ instead of where you left off. Enter BEGIN (or b) to let the virtual machine continue. Options such as IPL or STORAGE on the LOGON command are ignored on a reconnect, and some SET and TERMINAL settings are switched off or reset. QUERY SET and QUERY TERMINAL show what is active.

For a user ID you are allowed to use on someone else's behalf, such as a shared server or guest ID, the form is LOGON guest1 BY user1 HERE, with your own password. The guest ID must list you on its LOGONBY directory statement, or your security manager must allow it.

Leaving without this message next time

  • LOGOFF ends the virtual machine. CP closes its spool files, detaches its devices and resets it, so anything not saved is lost. Use this when you are done.
  • DISCONNECT detaches your terminal and leaves the virtual machine running. You come back later with LOGON. From CMS, type CP DISC, or #CP DISC on any console line; # is the default logical line end character. Linux guests set up with IBM's LINDFLT directory profile use % instead.

DISCONNECT is meant for a virtual machine that keeps working, such as a server or a long job. If it stops to wait for input while disconnected, for example CMS at its command prompt, and no secondary user is set up, CP logs it off after a grace period that the site sets, usually 15 minutes. If the connection breaks instead of being disconnected with the command, CP also gives you a grace period to log on again before it logs the virtual machine off. IBM documents this for console errors and for a display that was switched off without logging off.

Other HCP054E messages

The same message number has three other forms. They mean the system will not take logons right now, not that you are logged on:

  • LOGON not permitted because the SSI cluster is not in STABLE mode. Ask your system support to bring the cluster back to stable mode.
  • LOGON not permitted because the system has not completed initialization. Try again in a few minutes.
  • LOGON not permitted because memory overcommitment level would be exceeded. Try again later, or log on with a smaller STORAGE value.

Sources

Spotted a mistake? Email [email protected].