Skip to main content

BuildStatus PyPiVersion Coveralls CodeClimate

Features

  • RMCP interface (using ipmitool)

  • IPMB interface (The Total Phase Aardvark)

Requirements

You need an either the ipmitool for accessing RCMP interface or a Total Phase Aardvark for communication over the IPMB interface.

Example

Below is an example that shows how to setup the interface and the connection using the ipmitool as backend with both network and serial interfaces.

Example with lan interface:

import pyipmi
import pyipmi.interfaces

# Supported interface_types for ipmitool are: 'lan' , 'lanplus', and 'serial-terminal'
interface = pyipmi.interfaces.create_interface('ipmitool', interface_type='lan')

connection = pyipmi.create_connection(interface)

connection.target = pyipmi.Target(0xb2)
connection.target.set_routing([(0x20,0)])

connection.session.set_session_type_rmcp('10.0.0.1', port=623)
connection.session.set_auth_type_user('admin', 'admin')
connection.session.establish()

connection.get_device_id()

ipmitool command:

ipmitool -I lan -H 10.0.0.1 -p 623 -b 0 -t 0xb2 -U "admin" -P "admin" -l 0 raw 0x06 0x01

Example with serial interface:

import pyipmi
import pyipmi.interfaces

interface = pyipmi.interfaces.create_interface('ipmitool', interface_type='serial-terminal')

connection = pyipmi.create_connection(interface)

connection.target = pyipmi.Target(0xb2)

# set_session_type_serial(port, baudrate)
connection.session.set_session_type_serial('/dev/tty2', 115200)
connection.session.establish()

connection.get_device_id()

ipmitool command:

ipmitool -I serial-terminal -D /dev/tty2:115200 -t 0xb2 -l 0 raw 0x06 0x01

Compatibility

Python 2.7 is currently supported. Python 3.x support is in beta

Contributing

Contributions are always welcome. You may send patches directly (eg. git send-email), do a github pull request or just file an issue.

  • respect the coding style (eg. PEP8),

  • provide well-formed commit message (see this blog post.)

  • add a Signed-off-by line (eg. git commit -s)

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Release files for python-ipmi 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-ipmi 0.3.0
File Size Uploaded
python-ipmi-0.3.0.tar.gz 62.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-ipmi 0.3.0
File Interpreter ABI Platform
python_ipmi-0.3.0-py2.6.egg Legacy Egg format - - Details

Total release size: 289.6 kB

Release files / python-ipmi-0.3.0.tar.gz

Download URL python-ipmi-0.3.0.tar.gz
Size 62.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b310337aad74644c2cab607d92bf3866cee6a581668348bcfadd7c2b175444bc
BLAKE2b-256 checksum
How to use checksums
77259615c231d1641ab30f5153828195b265fb80223647bfabe45d990c73ffc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_ipmi-0.3.0-py2.6.egg

Download URL python_ipmi-0.3.0-py2.6.egg
Size 227.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
d19357543f28157bac5e7b7731bd014e443122a1ea6f813d625f26abeb6a296f
BLAKE2b-256 checksum
How to use checksums
d2e2f0253e616bb51a889f9d612537fd3659efb83bebacf72a0cd2f8db6a317c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.8

2 release files

0.5.7

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

This release

0.3.0 This release

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page