华为IBMC客户端

python-ibmcclient的Python项目详细描述


python ibmcclient

Build Status

python ibmcclient是一个与华为通信的python库iBMC 基于系统。

图书馆的目标是非常简单,小,有 尽可能依赖,在处理BMC时非常保守 通过访问华为基于iBMC的系统提供的http rest api。

目前,图书馆的范围仅限于支持 ^{}

要求。

python 2.7和3.4+

安装

来自PYPI:

    $ pip install python-ibmcclient

    $ easy_install python-ibmcclient

或来源:

    $ python setup.py install

开始

请按照installation procedure操作,然后运行以下命令:

from__future__importprint_functionfrompprintimportpprintimportibmc_clientfromibmc_clientimportconstants# ibmc serveraddress="https://example.ibmc.com"# credentialusername="username"password="password"# disable certification verifyverify=Falsewithibmc_client.connect(address,username,password,verify)asclient:# get systemsystem=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 systemclient.system.reset(constants.RESET_FORCE_RESTART)# set boot source overrideclient.system.set_boot_source(constants.BOOT_SOURCE_TARGET_PXE,constants.BOOT_SOURCE_MODE_BIOS,constants.BOOT_SOURCE_ENABLED_ONCE)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
运行ClassSpy java时发生反射错误   java Android ContextWrapper fileList()看不到我的文件   java使用JAXWS构建大型MTOM/XOP消息   eclipse如何使用ACM库(控制台程序)编写Java程序?   java m2eclipse插件搜索在配置为Nexus时不会给出结果   java Scanner只识别文本文件中的某些行,而不识别其他行   java如何从smartwatch启动活动或服务   java检查数组是否至少有两个具有特定值的元素   JAVA网URL编码器/解码器替代方案   Java中通过引用传递对象   spring如何在使用JavaJSON修补程序进行修补时禁止更新字段   使用java将海量数据存储到mysql的最佳方法   java字符串作为不可变对象   java我无法访问tomcat服务器(localhost),甚至无法访问mysql   java While循环条件未给出预期结果   java如何启动传递图像uri的新活动   Java中类定义在方法中的使用   Java程序在Ubuntu中运行我的另一个程序