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

CNSLPORT xxxx command in Hyperion console doesn't seem to work #318

Closed
moshix opened this issue Aug 20, 2020 · 4 comments
Closed

CNSLPORT xxxx command in Hyperion console doesn't seem to work #318

moshix opened this issue Aug 20, 2020 · 4 comments
Assignees
Labels
BUG The issue describes likely incorrect product functionality that likely needs corrected.

Comments

@moshix
Copy link

moshix commented Aug 20, 2020

When I IPL a guest with a config file saying, for example, CNSLPORT 3270, and if I then want to change that at runtime to 3280, I do from the Hyperion console:

cnslport 3280

It responds with:

HHC01603I cnslport 3280

It accepts the command fine, but it never changes the console port to the new value of 3280 (or whatever valid port number).

Seems to be the same behavior also with Spinhawk (if that helps).

thanks

M

@Peter-J-Jansen
Copy link
Collaborator

Peter-J-Jansen commented Aug 20, 2020

OK, but the CNSLPORT statement in the configuration .cnf file works, right? At least for me it does.

Cheers,

Peter

@moshix
Copy link
Author

moshix commented Aug 20, 2020

Peter

Yes, in the config file it takes the port parameter fine.

The CNSLPORT command in the console seems to not do anything at all. I tried also combinations like CNSLPORT 192.168.1.100:3280, etc. Nothing works.

The documentation on this command is not clear. Is it supposed to only report the current port, but not change it? Or is it supposed to change and it silently refuses to do that? Unclear.

I would of course love it if it actually did change the port.

thanks

M

@moshix
Copy link
Author

moshix commented Aug 20, 2020

After looking at the code in https://github.com/SDL-Hercules-390/hyperion/blob/master/console.c it's clear that there is no way to close down a previous socket and re-open with a new configuration of address and port.

So, the cnslport command actually only reports the current configuration as loaded from the config file. It does not send any new address/port argument to console.c to close and re-open with the argument.

So, what is the use case for this?

For me it's when I want to add a LUNAME to a console port to block others temporarily from connecting, or when I really need to change the port number without taking down the mainframe OS down for that small change.

thanks

M

@Fish-Git
Copy link
Member

Fixed by commit f8f2437.

@Fish-Git Fish-Git added the BUG The issue describes likely incorrect product functionality that likely needs corrected. label Aug 21, 2020
@Fish-Git Fish-Git self-assigned this Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG The issue describes likely incorrect product functionality that likely needs corrected.
Projects
None yet
Development

No branches or pull requests

3 participants