A virtual BMC for controlling virtual machines using IPMI commands.
Go to file
Ilya Etingof ba4ced4657 Fix power status command error reporting
With pyghmi API, some methods return generic IPMI error
codes, while some return payload values. This patch fixes
the `get_power_state()` method to raise exception instead
of returning IPMI error code because the latter goes against
pyghmi API.

Change-Id: If30c1ee49982a7a1198a39a7afdc1edc2c516078
2018-05-11 11:36:27 +02:00
doc/source Unrevert usage example inconsistency fix in docs 2018-05-09 12:53:35 +02:00
playbooks/legacy/virtualbmc-tempest-dsvm-ironic-pxe_ipmitool-src Do not run functional (API) tests in the CI 2018-05-07 15:32:29 +02:00
virtualbmc Fix power status command error reporting 2018-05-11 11:36:27 +02:00
zuul.d add lower-constraints job 2018-03-22 19:06:50 -04:00
.gitignore Add "cover" to .gitignore 2016-05-11 17:32:55 +01:00
.gitreview Restructure the repository according to OpenStack 2016-05-09 12:35:50 +01:00
.testr.conf Restructure the repository according to OpenStack 2016-05-09 12:35:50 +01:00
CONTRIBUTING.rst Update bug tracker url for storyboard 2018-03-26 13:58:20 -07:00
HACKING.rst Update the documentation link for doc migration 2017-07-25 14:06:06 +08:00
LICENSE Initial Commit with code 2016-02-11 15:55:51 +00:00
README.rst Update links in README 2018-03-08 11:27:33 +00:00
babel.cfg Restructure the repository according to OpenStack 2016-05-09 12:35:50 +01:00
lower-constraints.txt add lower-constraints job 2018-03-22 19:06:50 -04:00
requirements.txt Updated from global requirements 2018-03-16 03:55:01 +00:00
setup.cfg Migrate CLI to cliff 2018-03-14 18:26:23 +01:00
setup.py Updated from global requirements 2017-05-02 21:23:24 +00:00
test-requirements.txt Updated from global requirements 2018-03-16 03:55:01 +00:00
tox.ini add lower-constraints job 2018-03-22 19:06:50 -04:00

README.rst

Virtual BMC

A virtual BMC for controlling virtual machines using IPMI commands.

Installation

pip install virtualbmc

Supported IPMI commands

# Power the virtual machine on, off, graceful off, NMI and reset
ipmitool -I lanplus -U admin -P password -H 127.0.0.1 power on|off|soft|diag|reset

# Check the power status
ipmitool -I lanplus -U admin -P password -H 127.0.0.1 power status

# Set the boot device to network, hd or cdrom
ipmitool -I lanplus -U admin -P password -H 127.0.0.1 chassis bootdev pxe|disk|cdrom

# Get the current boot device
ipmitool -I lanplus -U admin -P password -H 127.0.0.1 chassis bootparam get 5

# Get the current boot device
ipmitool -I lanplus -U admin -P password -H 127.0.0.1 chassis bootparam get 5

Team and repository tags

image