This is a sample Perl script that uses the BVE API server to create a composite test on each device that contains 2 or more CPU Load tests.

usage: [ --host=<fqdn | ip_address> ] [ --port=<port> ] --username =<username> --password=<password> 
[ --testname=<testname> ] [ --warning=<warning> ] [ --critical=<critical> ] [--noop] [--debug] [ --help ]

--host = host name or ip address of BVE API host (default
--port = port to connect to BVE API host (default 7661)
--username = logon to BVE API server as this user
--password = password for the specified user
--testname = name of test to create on each device
--warning = warning threshold for test (default 85)
--critical = critical threshold for test (default 95)
--debug = print debug output to stdout
--noop = do not actually create composite tests but show what tests would be created
--help = print this help message

In order to run this script, unzip the attached file and place the script under plugin/utils directory on the BVE server (the utils directory may need to be created) and execute the following commands:



cd /usr/local/traverse
etc/bveapi.init start
plugin/utils/ --user ABC --pass XYZ --noop
plugin/utils/ --user ABC --pass XYZ



cd "\Program Files\Traverse"
net start nvbveapi
plugin\utils\ --user ABC --pass XYZ --noop
plugin\utils\ --user ABC --pass XYZ

ABC is a user in Traverse and XYZ is the corresponding password. If you specify superuser as the login, all devices for all departments will be modified. 

The --noop flag will show you what tests will be created, but will not actually create them.

Standard corporate disclaimer applicable.