-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BMC: Added CLI commands runner and Serial Console access. (#419)
* BMC: Added CLI commands runner and Serial Console access. BMC's CLI commands can be run using the bmc.RunCLICommand method, which connects to the CLI via SSH. The method blocks until the command ends or a timeout happens, whatever comes first. The command's output is copied into the stdout & stderr string vars. The underlying SSH session is created and closed internally after the command finishes. The new method OpenSerialConsole returns a piped reader and writer interfaces that can be used to interactively receive/send commands/text to/from the serial console. Since the serial console is tunneled in a SSH session, the CloseSerialConsole method must be called to release that session to prevent leaks that would prevent CLI commands to fail due to maximum concurrent SSH sessions reached in the BMC. Also, added SSH port as parameter for BMC's New() method * Addressed comments from Nikita. * Added host on glog traces and errors. * Updated UTs to the new error messages.
- Loading branch information
Showing
112 changed files
with
18,276 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.