Giter VIP home page Giter VIP logo

openbmc_simulator's Introduction

Simulator for Test

Supported Arch: PPC64LE

Install and Start Simulator

  • Clone this repo git clone [email protected]:gurevichmark/openbmc_simulator.git

  • Run ./simulator [-c] [-d <delay type> -t <delay time(max)>] [-n <NIC> -r <IP range>]

For Ubuntu OS, please run apt-get update first

Options

-c: Cleanup IPs configuration. If not specified, will setup openbmc simulator environment and start simulator

-d: Delay response type, supported parameters: random and constant.

-t: Delay response time, must be used with -d. If delay type is random, the parameter specifies the max value. The delay time will be random between 0 and input parameter. Format is "xxmxx"

-n: NIC name on which to configure IPs

-r: IPs to configure on NIC. The format is as '10.[1|{1.10}].[1|{1..200}].[1|{1..200}]'

Example:

Setup environment and start simulator ./simulator -n eth0 -r 10.1.1.{1..10}

Clear environment: ./simulator -c -n eth0 -r 10.1.1.{1..10}

Setup environment and start simulator that will delay response ./simulator -d random -t 10

Node Definition in xCAT

If the node that simulator runs on as below:

ip=10.0.0.1

You can define the node as below:

mkdef simulator groups=all bmc=10.0.0.1 mgt=openbmc bmcusername=root bmcpassword=0penBmc

Run Command Against Simulator

Take rpower command as example:

# rpower simulator on
simulator: on

openbmc_simulator's People

Contributors

gurevichmark 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.