how can I quickly and easily spin up a large number of robots for testing purposes?

book

Article ID: 221034

calendar_today

Updated On:

Products

CA Unified Infrastructure Management On-Premise (Nimsoft / UIM)

Issue/Introduction

In my lab/test environment, I want to set up a large number of robots (hundreds) in my UIM environment so I can test at scale.  How can I easily accomplish this?

Environment

UIM - any version - Linux robot required

Resolution

Attached to this article is a script (nimdup.sh) which can be used to make numerous copies of an existing robot that can run on a single host.  These will be real robots that can accept probe deployments, generate alarms and QoS, etc.

You will need one robot on Linux OS which will be used as the base robot image.  You will need to place the nimdup.sh file on the robot somewhere and the robot should be installed to the default /opt/nimsoft location.

 

You will need to edit the nimdup.sh file as follows:

Line 22:  Replace "MyDomain" with your UIM Domain.

Line 23 (optional): change "fakerobot" to some other name.  Robots will be named e.g. fakerobot-1, fakerobot-2, fakerobot-3, etc. if you do not change this.

Line 24: change 1.2.3.4 to the actual IP address of the machine hosting the robot (where you are running nimdup.sh)

Line 35: change "MyHub" to the name of the hub which the robots will connect to

Line 36: change "MyHubRobotName" to the robotname of the hub from line 35

Line 37: change "4.5.6.7" to the IP address of the hub from line 35

 

Once you have made the appropriate changes, run the command as follows - the first parameter/digit is the "start number" and the second parameter digit is the "finish number", e.g. if you specify "1" and "20" you will get 20 robots named fakerobot-1 through fakerobot-20.

./nimdup.sh 1 20

to generate 200 robots:

./nimdup.sh 1 200

If you want 100 more after that, numbered fakerobot-201 through fakerobot-300:

./nimdup.sh 201 300

Robots are relatively low impact; on a system with 4gb RAM I was able to run 200 robots with plenty of resources left over.

Attachments

1628101729110__nimdup.sh get_app