Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on
04-07-2020
01:54 PM
- edited on
11-10-2020
01:46 PM
by
Claudia.Landiva
If you want to run the Synthetic Private Agent jobs using the chosen domain admin user account instead of the installer created agent_user
, try this workaround.
Note: This solution is not officially documented or supported at this time
and therefore may not work in every environment.
This configuration workaround to using the default agent_user
to run the Synthetic Private Agent jobs is to modify the Synthetic Private Agent's configurations so they use chosen domain admin user account user (ex: DOMAIN\appdadmin
) instead.
To achieve this you will need to do the following:
DOMAIN\appdadmin
. Validate that all Private agent processes are fully stopped, and kill any java.exe
processes even if they don't belong to the agent_user.
synthetic-driver.yml
file before making any changes.C:\appdynamics\synthetic-agent\synthetic-driver\conf\synthetic-driver.yml
synthetic-driver.yml
to remove any lines that reference the agent_user. Specifically, update the following two sets of commands.agent_user Appdynamics123
from the line starting with -Command
webdriverServerCommand:
name: WebDriver Server
exe: powershell.exe
args: >
-ExecutionPolicy ByPass
-Command .\synthetic-driver\scripts\windows\sudo.ps1 agent_user Appdynamics123
.\synthetic-driver\scripts\windows\start-webdriver-server.bat
To this:
webdriverServerCommand:
name: WebDriver Server
exe: powershell.exe
args: >
-ExecutionPolicy ByPass
-Command .\synthetic-driver\scripts\windows\start-webdriver-server.bat
Remove > -ExecutionPolicy ByPass -Command .\synthetic-driver\scripts\windows\sudo.ps1 agent_user Appdynamics123 powershell.exe
from the line starting with args:
Change this:
- name: Reset IE cache
exe: powershell.exe
args: >
-ExecutionPolicy ByPass
-Command .\synthetic-driver\scripts\windows\sudo.ps1 agent_user Appdynamics123
powershell.exe -ExecutionPolicy ByPass -Command .\synthetic-driver\scripts\windows\reset-ie-cache.ps1
browsers: IE10, IE11
To this:
- name: Reset IE cache
exe: powershell.exe
args: -ExecutionPolicy ByPass -Command .\synthetic-driver\scripts\windows\reset-ie-cache.ps1
browsers: IE10, IE11
After you've made these changes, save the .yml
file.
start_agent.bat
file first and then edit the original start_agent.bat
file located at C:\appdynamics\synthetic-agent by modifying the following line:
if exist "C:\appdynamics\installers" (powershell.exe -ExecutionPolicy Unrestricted C:\appdynamics\cookbooks\run_chef_as_unprivileged_user.ps1 )
To this:
rem if exist "C:\appdynamics\installers" (powershell.exe -ExecutionPolicy Unrestricted C:\appdynamics\cookbooks\run_chef_as_unprivileged_user.ps1 )
If you’re running the scheduled task to start the agent, make sure to update the scheduled task to use the DOMAIN\appdadmin
user instead of the agent_user
for running said task.
This article is really great, and it works.
But the problem is unfortunately, if any issues raised with AppD support, AppD is not officially supporting any of those implementations .
Hi, @Dan.Loku -
Glad to hear the article is helpful and that it worked for you.
You're right: as noted, this solution won't work for everyone, depending on their configurations. The idea was to make it available so that those who can be helped by the information could access it.
Thanks for your engagement here! It helps others to hear of your experience.
Kind regards,
Claudia Landivar
Community Manager & Editor, Knowledge Base
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form