WeeBadger

The WeeBadger is a small Java application that runs on the machines you wish to use in your test. This application will take instructions from a MasterBadger and execute the states as instructed. All data is sent to it from the MasterBadger and does not require any prior knowledge of the system file it is going to run.

By default the WeeBadger should not require any parameters to be passed in. It will auto discover the MasterBadger by broadcasting out a small multicast message on each of the network interfaces it detects on the machine. Depending on your platform you can run up the WeeBadger from the %installation folder%/bin/ folder using one of the following methods:

Windows XP
c:\blackbadger\bin\> slavebadger.bat

Linux
[user@machine /opt/blackbadger/bin/] sh slavebadger.sh

You can pass in the following parameters:

  • -localport
    The port to which the MasterBadger will attempt to communicate with the WeeBadger.
    default: 6002
  • -ip
    The IP address of the MasterBadger. Particularly useful if you have more than one MasterBadger running on your network.
    default: attempts to auto-discover
  • -port
    The port the MasterBadger is listening to.
    default: 6001
  • -logdirectory
    The directory where the log files will be stored
    default: current directory
  • -logfilename
    The name of the log file where all output will be stored.
    default: weebadger.log

Example Usage:

Windows XP
c:\blackbadger\bin\> slavebadger.bat -ip 192.168.100.100 -logfile wee.log

Linux
[user@machine /opt/blackbadger/bin/] sh slavebadger.sh -ip 192.168.100.100 -logfile wee.log

Once the MasterBadger has connected to the WeeBadger, then all console output will be sent to both the local file and to the MasterBadger.

While a WeeBadger will only execute one system plan at once, it does not require restarting between runs. Although in test environments it is important to make sure the machine is in a good clean state. It is therefore advisable that one places the WeeBadger code in the start up of the machine and on the final state make a call to reboot the machine.