Skip to main content

Pure python IPMI library

Project description

BuildStatus PyPiVersion 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.

import pyipmi
import pyipmi.interfaces

interface = pyipmi.interfaces.create_interface('ipmitool')

connection = pyipmi.create_connection(interface)

connection.target = pyipmi.Target(0xb2)
connection.target.set_routing_information([(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

Compatibility

Currently only python 2.7 is supported.

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

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

python-ipmi-0.1.1.tar.gz (54.2 kB view details)

Uploaded Source

File details

Details for the file python-ipmi-0.1.1.tar.gz.

File metadata

  • Download URL: python-ipmi-0.1.1.tar.gz
  • Upload date:
  • Size: 54.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-ipmi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9da48de5d939d9cee578709b8776ed14a90c5d3950b8efc5e9e3b238e9924c73
MD5 3d143582afac409be5f9e28d1166e4e5
BLAKE2b-256 15e3a303998ebeb782403a77e3b5f0a964e850aedf93aecc03b1fe7cb3c2d1c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page