commit | 15374c85c8ffa3335c815506a0c7f51cf55cac99 | [log] [tgz] |
---|---|---|
author | Deepak Kodihalli <dkodihal@in.ibm.com> | Tue Apr 17 05:49:46 2018 -0500 |
committer | Gunnar Mills <gmills@us.ibm.com> | Thu May 03 03:20:39 2018 +0000 |
tree | 5db5115735fabf3d42d49b991ecb670b6fadff53 | |
parent | db44b09744fd042123013050010046ada92df0aa [diff] |
Get the Serial over LAN console working This commit hooks up hterm to a websocket that the BMC's REST server exposes as an access to the host serial console. Writes to the terminal are sent over the websocket and reads from the websocket are written to the terminal. The websocket is open only when the console page in the GUI is loaded. Tested: - The host console can be accessed as expected from the GUI page. - The "Open in new tab" is still unimplemented. I'll code that up in a subsequent commit. - One issue that I've noticed is if you have the console open before the host is powered on, and then you power on the host, at the time the petitboot config menu shows, the text in the terminal stops scrolling and starts wrapping. The work-around is to refresh the page. This doesn't happen for example if you access the console after the host has powered on, or at any other time for that matter. I think this is an hterm.js issue. I'm still investigating. - The console looks desirably performant. The REST server's performance to serve other routes is not impacted when the /console websocket is open. Change-Id: I35fa39d7f63094552061b097c46be0fda79ed14f Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
TODO: Write a project description
nodejs npm
npm install
npm run-script server
This will run it locally in http://localhost:8080
.
https://<bmc-ip>
and bypass the secure warning. You will see a JSON response with Login required
message.http://localhost:8080
. Enter the BMC IP, Username and Password (defaults: root
/0penBmc
).Now you are logged in.