Install the Database Agent as a Windows Service
To create the Database Agent as a Windows service, run the following command as an administrator:
cscript <db_agent_home>\InstallService.vbs <jvm_options>
<db_agent_home> is the path to the install directory.
A Windows service named Appdynamics Database Agent
is created.
SilentInstall
and serviceName
are optional parameters, which can be used along with the preceding command. The following syntax shows how to add these parameters:
cscript <db_agent_home>\InstallService.vbs SilentInstall serviceName=<name_of_the_service> <jvm_options>
<db_agent_home>
is the path to install directory, and <name_of_service>
is the name that you want to use for renaming the service.
For example:
cscript C:\db-agent\InstallService.vbs -Ddbagent.name="Scarborough Network Database Agent"
You can use SilentInstall
to create the Database Agent as a Windows service in the silent mode where the script skips user input for installation.
For Database Agent>= 20.5, you can add a service with a different name or change the name of the service by using the serviceName
parameter. If you do not specify any value for this parameter, the service name is set to Appdynamics Database Agent
by default.