HUAWEI iBMC client
Project description
python-ibmcclient is a Python library to communicate with HUAWEI iBMC based systems.
The goal of the library is to be extremely simple, small, have as few dependencies as possible and be very conservative when dealing with BMCs by access HTTP REST API provided by HUAWEI iBMC based systems.
Currently, the scope of the library has been limited to supporting OpenStack Ironic ibmc driver
Requirements
Python 2.7 and 3.4+
Installation
From PyPi:
$ pip install python-ibmcclient
or
$ easy_install python-ibmcclient
Or from source:
$ python setup.py install
Getting Started
Please follow the Installation and then run the following:
from __future__ import print_function
from pprint import pprint
import ibmc_client
from ibmc_client import constants
# ibmc server
address = "https://example.ibmc.com"
# credential
username = "username"
password = "password"
# disable certification verify
verify = False
with ibmc_client.connect(address, username, password, verify) as client:
# get system
system = client.system.get()
print('Power State: ')
pprint(system.power_state)
print('Boot Sequence: ')
pprint(system.boot_sequence)
print('Boot Source Override:' )
pprint(system.boot_source_override)
# reset system
client.system.reset(constants.RESET_FORCE_RESTART)
# set boot source override
client.system.set_boot_source(constants.BOOT_SOURCE_TARGET_PXE,
constants.BOOT_SOURCE_MODE_BIOS,
constants.BOOT_SOURCE_ENABLED_ONCE)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-ibmcclient-0.2.5.1.tar.gz
.
File metadata
- Download URL: python-ibmcclient-0.2.5.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c703b357f993f4ec3a3dfc2dd07f38fc2da0b94a8baa694d83450932d222ec1 |
|
MD5 | d6f3c99346dacc314a62e6b114f79bb4 |
|
BLAKE2b-256 | 5acf90b37bb162ea3cb0e1d367b907b6d830ed5ee05d503e4c33e47e87aabd36 |
File details
Details for the file python_ibmcclient-0.2.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: python_ibmcclient-0.2.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 67.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96f92f3da8f97c83d9ad90ab64a11b9fa245bb8c29a296cde019da9818b8c89 |
|
MD5 | 80732ff3749bfea96ee017d6ba305291 |
|
BLAKE2b-256 | 919144df56fe93852e5511db1a5c9550aa89dd26170134dd7e0a48a81190e242 |