-
Notifications
You must be signed in to change notification settings - Fork 32
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
IPMI console support? #3
Comments
Yes, please submit a pull request. You will need to test by writing integration tests. I'll update my documentation to include more information on development. For starters just figure out the CLI method and then we can translate to ruby code. Corey
|
I have added some untested code that would support the console. However, I am not sure how the console features works. Maybe you can add some input. What happens after activating the sol? Where does the console get redirected to? Can I redirect the output somewhere else via ruby? |
That should work, see here what one could get with that http://www.woodwose.net/thatremindsme/2010/08/ipmi-and-serial-over-lan-on-dell-poweredge-servers/ , http://www.hps.com/~tpg/notebook/sol.php The main problem is the extra parameters and configuration options to use SOL with different vendors make the console almost useless if you have more than one vendor, to be fair I've stopped considering SOL in production because of that. I can't test it because of the extra conf parameters, but I would assume outputs goes to stdout, it's nothing else but characters. |
The command to activate the console actually becomes an input/output process, so you'll need to use Popen or something like that to fork out the process and return an IO handle to the caller. Does runcmd do this? |
I am wondering if we should open a socket and just return the filepath to the socket that controls the console. I created a console branch with the changes required, but this is completely untested. If you want to update this branch please submit a merge request on the console branch. |
@logicminds - Hi, Corey! |
No more work done on this. I have been focusing time elsewhere. I am guessing the output is being sent as a stream that we need to capture. How exactly does sol work on the command line now? does it open a socket and stuff data there? I think we just need to forward the connection details on activate. Can you recreate this with the CLI tools? |
Not sure what you mean by recreating with CLI tools. "ipmitool sol activate" starts up an interactive session for the user, if that's what you're asking. |
"starts up an interactive session for the user" What does this do exactly? Then what do you do afterwards? How does you interact with the console via ipmitool commands? |
Oh, SOL session becomes your input/output, just like "virsh console ". Unlike the latter example, to disconnect from SOL session, one needs to send "~." or "sol deactivate" from different terminal session. |
Hello, Has SOL related functionality been added to the project? I've got plenty of modern, non-branded BMC devices to help test with. Thanks |
I have not done any more work on this. But the prior conversations would suggest the best way to implement is to just return a IO object. |
I noticed there is no support for the BMC remote shell.
ipmitool -H {YOUR BMC IP} -U {YOUR USER} -I lanplus sol activate
or
ipmiconsole -h {YOUR BMC IP} -u {YOUR USER} -p {YOUR PASSWORD}
on freeipmi are both ways to get it.
I'd be happy to do it and submit a pull request if you give me a few pointers on the right direction. Thanks !
The text was updated successfully, but these errors were encountered: