Skip to content

xuweibj/openbmc_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulator for Test

Supported Arch: PPC64LE

Install and Start Simulator

  • Clone this repo

  • 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 set it, will setup openbmc simulator environment and start simulator

-d: Delay response type, supported parameter: random, constant.

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

-n: NIC name which want to configure IPs on

-r: IPs want 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

About

Simulator For Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published