Adding a Post Installation Script to a Software Distribution Task

Hello House,

I want to distribute and Install TrendMicro Agents with BigFix.

How can I include the following scripts during the installation?

1. /opt/ds_agent/dsa_control -r
2. /opt/ds_agent/dsa_control -a dsm://172.1.7.16:4120/

Thank you!

If it’s done at the end of the fixlet you could do somethig like this…

// Adding a wait
parameter "startTime"="{now}"
pause while { (now-time(parameter "startTime") < 180*second) }

wait /opt/ds_agent/dsa_control -r
wait /opt/ds_agent/dsa_control -a dsm://172.1.7.16:4120/
1 Like

If you are using the Manage Software Distribution dashboard to create your packages and tasks there is an option to include pre and post installation commands. The screenshots need to be updated here but the general flow is still accurate: https://help.hcltechsw.com/bigfix/10.0/lifecycle/Lifecycle/SWD_Users_Guide/c_edit_a_package_or_fixlet.html

1 Like

Thanks!

I was able to deploy the agents successfully using this script

2 Likes