Setting Up the DX-O2 Environment Using Provided Scripts
Once your application is running and receiving traffic, configure and fine tune the DX O2 tenant-side resources—such as Services, Management Modules, Alerts, Universes, SLIs, Dashboards, and EUM—using the automated scripts.
Download the dx-do CLI Tool
Download and verify the supported version of the dx-do CLI into your project:
build-scripts/download-dx-do.sh
It is being downloaded as a binary from dx-do-dist. It is required to perform CLI configuration using the provided API.
For this deployment, release v7.2.1 works. The script makes sure to download the appropriate version. A newer version may work, but I have not tested it.
Check the agents are running and connected
After having ran:
~/test/bpa-demo-env$ ./build-scripts/compose.sh up -d
[+] up 5/5
✔ Network bpa-demo-env_bpa-demo Created 0.0s
✔ Container bpa-demo-env-mariadb-1 Healthy 6.7s
✔ Container bpa-demo-env-dxo2-1 Started 6.1s
✔ Container bpa-demo-env-apachephp-1 Started 6.8s
✔ Container bpa-demo-env-traffic-1 Started 6.9s
Log in as admin and go to the lower left side Diagnostics -> DX O2 Status section. It will take some minutes until the APMIA Agent is deployed. So hit F5 until it shows that all agents are connected. Go through the entire page to see if any error shows up (log sections).

If it shows this - your demo system is nearly up and running!
Note: As long as you have not configured the AXA Application, the Browser agent will remain Orange/Disabled. This is normal and will be dealt with later.
Execute Tenant Configuration Scripts
Run the scripts in dxo2-scripts/ in sequence.
Note: Every script requires the explicit platform mode (docker or k8s) as its first argument.
All scripts are idempotent and support create, check, and delete commands. After running these steps, log into your Broadcom DX O2 console to view your live topology maps, health dashboards, and real-time transaction alerts!
Create the Service "bpa-demo-docker"
# Create the "BPA-Demo" Service definition
dxo2-scripts/bpa-demo-service.sh docker create
Once ran, check under "Overview => Services" that the service bpa-demo-docker shows up. It may take 30 seconds to a minute for it to show up.
The previous screenshot already shows alarms and situations, but this is due to my tenant being also my development environment.
Create the Management modules and associated alerts.
# Create Management Module and trouble-use-case alert
dxo2-scripts/bpa-demo-management-module.sh docker create
# Create 12 agent alerts (DB Monitor, PHP probe, RUM)
dxo2-scripts/bpa-demo-agent-alerts.sh docker create
Check the settings section "APM Management Modules". An entry for bpa-demo-docker should show up, and if both scripts executed correctly, you should see 13 configured alerts. If that is the case, all is good.

The Service Level indicators are a major part of the demo setup
# Create Service Level Indicators (SLIs) & SLOs
dxo2-scripts/bpa-demo-sli.sh docker create
Once this script executed correctly, you should see 2 red images next to the bpa-demo-docker service showing up. IT takes a while for the SLI/SLO to turn green. It needs to go through the Cycle to identify everything is all right.

Create the Universes
# Create the APM Universe scope
dxo2-scripts/bpa-demo-universe.sh docker create
# Create the Services Universe scope
dxo2-scripts/bpa-demo-services-universe.sh docker create
You should now be able to select the Service universe. After around 30 seconds, it should show up.

Create the dashboards
# Deploy the Agent Health Dashboard
dxo2-scripts/bpa-demo-agent-health-dashboard.sh docker create
# Deploy the remaining Application Dashboards
dxo2-scripts/bpa-demo-application-dashboards.sh docker create
You can check these out under Dahboards and search for "bpa-demo"

Note that each dashboard has a description of what it shows. Just hover your mouse pointer on the "i" on the top left side of each graph.

Next create the EUM Application "BPA Demo AXA docker"
Extra attention should be made when creating the EUM Application Experience Analytics application.
Create it with:
# Deploy the AXA application
dxo2-scripts/bpa-demo-axa-app.sh docker create
After you have created it, check that the application shows up in EUM: Settings -> Manage Mobile/Browser Web Monitoring.

We can now check the file .config.example file - it should have the Browser Agent snippet filled at the APMIA_BROWSER_SNIPPET_DOCKER to be injected into the application. Copy the snippet over to your .config file, or leave it there but make sure to comment line #APMIA_BROWSER_SNIPPET_DOCKER in your .docker file so it will be taken into account.
APMIA_BROWSER_SNIPPET_DOCKER='<script type="text/javascript" id="ca_eum_ba" src="https://dxc.dxi-xxx.xxxx.broadcom.com/api/1/urn:ca:tenantId:CAXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX/urn:ca:appId:BPA Demo AXA docker/bajs?agent=browser" data-profileUrl="https://dxc.dxi-xxx.xxxx.broadcom.com/api/1/urn:ca:tenantId:CAXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX/urn:ca:appId:BPA Demo AXA docker/profile?agent=browser" data-tenantID="CAXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX" data-appID="BPA Demo AXA docker" data-appVersion="1.0" data-use-axa-appname="true" data-appKey="xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" async ></script>'
Note - the snippet is shown in the EUM settings page. You can also copy it over manually into your .config file:

Start the application again with:
./build-scripts/compose.sh up -d
Once that is done, point your browser to the application under http://localhost:8080, log in as admin/demo123 and go to the Diagnostics => DX O2 Status section It should show you the status of all Agents. It may take a minute for the APMIA and BTListener to start.

That's it. Only the BPA remains to configure (next blog, as it is a dedicated step).
Because the Business Payload Analyzer (BPA) is currently in a prototype state, its tenant configuration is the single component that cannot be fully automated. However, it provides vital operational visibility by separating external user reachability from internal server processing—making it easy to distinguish network connectivity issues from backend performance problems.
When used alongside the Browser Agent (BA), BPA allows you to rapidly assess infrastructure health, response speed, and backend completeness. By embedding a correlation ID into the web page response, the BA, BPA WebServer plugin, PHP Probe, and MySQL Agent seamlessly trace the complete end-to-end journey of every request, precisely pinpointing where latency or failures occur.
In the next blog of the series, we will show you how to setup the BPA!