Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for having sessions to multiple HMCs #544

Open
andy-maier opened this issue Jan 13, 2024 · 0 comments
Open

Support for having sessions to multiple HMCs #544

andy-maier opened this issue Jan 13, 2024 · 0 comments

Comments

@andy-maier
Copy link
Member

andy-maier commented Jan 13, 2024

When dealing with multiple HMCs, the zhmc command today can have only one session open (that is layed down in environments variables). A session to a second HMC without making the first session unavailable requires a separate terminal session.

This ticket is to somehow support multiple sessions in the same terminal session to be open, and zhmc commands can then select which one to use.

One idea is to use a new -s / --session option to specify a session name when creating a session, and to reference that session in subsequent commands. The session parameters would be stored in a hidden file in the user's home directory:

zhmc -n -h 10.11.12.13 -u user -s hmc13 session create    # logon and add session to hidden file
zhmc -n -h 10.11.12.14 -u user -s hmc14 session create    # logon and add session to hidden file

zhmc -s hmc13 cpc list    # perform command using session from hidden file
zhmc -s hmc14 cpc list    # perform command using session from hidden file

zhmc -s hmc13 session delete    # logoff and remove session from hidden file
zhmc -s hmc14 session delete    # logoff and remove session from hidden file

This also makes the logon command more convenient, compared to today's:

eval $(zhmc -n -h 10.11.12.13 -u user -s hmc13 session create)   # logon and store session vars in env

Related to PR #543.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant