Giter Club home page Giter Club logo

ipmisim's Introduction

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

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

ipmisim's People

Contributors

rohityadavcloud avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.