gzock / ipmisim

Fake IPMI server based on conpot and pyghmi

Home Page:https://pypi.python.org/pypi/ipmisim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipmisim

A fake ipmi server for testing purposes both as a tool and a library. The code is forked from Conpot and based on pyghmi.

version badge download badge

This was created for testing IPMI related features in Apache CloudStack.

The tool ships with default sets of users for ease of use:

ID  Name       Callin  Link Auth  IPMI Msg   Channel Priv Limit
1   admin            true    true       true       ADMINISTRATOR
2   operator         true    false      false      OPERATOR
3   user             true    true       true       USER

The default passwords are:

admin  : password
opuser : oppassword
user   : userpassword

Installation:

pip install --upgrade ipmisim

Running:

ipmisim 3000  # Runs on custom port 3000, else 9001 by default

For, usage in integration tests you can import the server module and create a server:

from ipmisim.ipmisim import IpmiServer
import socketserver

port = 3000
server = SocketServer.UDPServer(('0.0.0.0', port), IpmiServer)
server.serve_forever()

For testing BMC power state, you can inspect IpmiServerContext().bmc.powerstate For more details see server usage ipmisim/ipmisim.py

Testing with ipmitool:

ipmitool -I lanplus -H localhost -p 9001 -R1 -U admin -P password chassis power status

About

Fake IPMI server based on conpot and pyghmi

https://pypi.python.org/pypi/ipmisim

License:Apache License 2.0


Languages

Language:Python 99.8%Language:Makefile 0.2%