Trying to use Dexter to fetch data and having an authorization error. Below is the target section of the job.json file I am using... Not sure what format to use for the username.. The sample I found suggests username@customer, so I tried josh@conduent (my username and customer name), but that doesn't work, so I tried several other possible ways and the logs still show authorization error.
"Target":
[
{
"Controller": "https://conduent.saas.appdynamics.com/",
"UserName": "josh@conduent",
"UserPassword": "",
"Application": ".*",
"NameRegex": false
}
]
Thank you. Its working !
Also, do you have any idea on how to get JVM Heap Used % in the metric related data reports. Currently I am getting only JVM Heap Used (in mb). Thanks
The below (with non-relevant stuff removed for clarity) :
<configuration> <system.net> <defaultProxy enabled="true" useDefaultCredentials="true"> <proxy proxyaddress="http://<myproxyhost>:3128" /> </defaultProxy> </system.net> </configuration>
What did you add exactly ?
Hello there,
If you are using SAML or LDAP, those types of accounts do not work for REST API and thus for DEXTER. This is documented here https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Job-File#username-string
Just a thought, You could have a look at dexter code on github to see what its doing thats different.After some digging through the log files, I noticed it was getting a connection refused error. The documentation says it will use system proxy settings but that apparently isn't working and the error returned from the dexter process seemed to clearly indicate an authentication issue with my user name and/or password. Once I explicitly added proxy settings to the AppDynamics.Dexter.exe.config file it started working.
I just tried Dexter and ran into the same login problem. I have a SAAS controller at my company and when I normally login to the AppD UI through a browser I just enter the account name and get directed to an internally managed LDAP authentication page before getting logged into the UI.
I was also given a separate login/password to use for the REST API which works fine to make REST calls but it doesn't seem to work with Dexter. I assume the login I was provided for the REST API would work with Dexter but it doesn't seem to and I don't know what else I could try.
For the REST API I can do:
curl --user <user>@<account>:<passw> https://<account>.saas.appdynamics.com/controller/rest/...
The same credentials don't work with Dexter. I've tried all the combinations I can think of between my REST credentials and LDAP credentials but can't get authenticated.
Hi Josh,
Is this still an issue? If yes we would like to have an update on teh status and help this get resolved.Well the thing is when using dexter, You must specify user as username@account name
https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Job-File#username-string
So if your user is CREAdmin@somethingrather, where if you are on-prem, somethingrather is most likely "customer1", and if you are saas, it is your account name (you can always verify this from the controller's license screen, Account tab, "Name" parameter value).
So assuming you are on a on-prem stup, can you try with "josh.loos@customer1" and see if that works.
If however your account name is conduent only, what happens if you just try with, "josh@conduent" as username, does it do any good?
Let me know how it goes.
Thanks,
Chitra
thats https://www.chickenkatsu.co.uk/apps/reporter/index.php
hi, what information are you trying to extract. I might be able to help as I've got an app that uses the APis to extract data - see goo.gl/1TDg9u
Thank you for your reply. I have tried that.. I tried "josh.loos@conduent" since my username is "josh.loos" and "conduent" is our account name. I still get the unauthorized error. To make sure the controller URL is correct, I changed it to a wrong URL and get a different error.. so when it is the correct URL, it seems it can hit the controller but then fails on the username.
-Josh
Hi Joshua,
The username has to be in STRING format and you need to pass it as the Username of the user to use to connect to Controller in @ format.
appdexter@customer1 for user named appdexter and for single-tenant on-premises Controller
appddexter@saastenant for user named appdexter in SaaS Controller
For Example:
"UserName": "username@customer1",
Where customer1 is the value of Name parameter in your license screen accounts tab. Refer to the below screenshot for clarity:
Hope this helps. Do let me know in case you have further queries.
Thank You,
Chitra
Trying to use Dexter to fetch data and having an authorization error. Below is the target section of the job.json file I am using... Not sure what format to use for the username.. The sample I found suggests username@customer, so I tried josh@conduent (my username and customer name), but that doesn't work, so I tried several other possible ways and the logs still show authorization error.
"Target":
[
{
"Controller": "https://conduent.saas.appdynamics.com/",
"UserName": "josh@conduent",
"UserPassword": "",
"Application": ".*",
"NameRegex": false
}
]
Hi Joshua,
The username has to be in STRING format and you need to pass it as the Username of the user to use to connect to Controller in @ format.
appdexter@customer1 for user named appdexter and for single-tenant on-premises Controller
appddexter@saastenant for user named appdexter in SaaS Controller
For Example:
"UserName": "username@customer1",
Where customer1 is the value of Name parameter in your license screen accounts tab. Refer to the below screenshot for clarity:
Hope this helps. Do let me know in case you have further queries.
Thank You,
Chitra
Thank you for your reply. I have tried that.. I tried "josh.loos@conduent" since my username is "josh.loos" and "conduent" is our account name. I still get the unauthorized error. To make sure the controller URL is correct, I changed it to a wrong URL and get a different error.. so when it is the correct URL, it seems it can hit the controller but then fails on the username.
-Josh
hi, what information are you trying to extract. I might be able to help as I've got an app that uses the APis to extract data - see goo.gl/1TDg9u
Hi Josh,
Is this still an issue? If yes we would like to have an update on teh status and help this get resolved.Well the thing is when using dexter, You must specify user as username@account name
https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Job-File#username-string
So if your user is CREAdmin@somethingrather, where if you are on-prem, somethingrather is most likely "customer1", and if you are saas, it is your account name (you can always verify this from the controller's license screen, Account tab, "Name" parameter value).
So assuming you are on a on-prem stup, can you try with "josh.loos@customer1" and see if that works.
If however your account name is conduent only, what happens if you just try with, "josh@conduent" as username, does it do any good?
Let me know how it goes.
Thanks,
Chitra
I just tried Dexter and ran into the same login problem. I have a SAAS controller at my company and when I normally login to the AppD UI through a browser I just enter the account name and get directed to an internally managed LDAP authentication page before getting logged into the UI.
I was also given a separate login/password to use for the REST API which works fine to make REST calls but it doesn't seem to work with Dexter. I assume the login I was provided for the REST API would work with Dexter but it doesn't seem to and I don't know what else I could try.
For the REST API I can do:
curl --user <user>@<account>:<passw> https://<account>.saas.appdynamics.com/controller/rest/...
The same credentials don't work with Dexter. I've tried all the combinations I can think of between my REST credentials and LDAP credentials but can't get authenticated.
After some digging through the log files, I noticed it was getting a connection refused error. The documentation says it will use system proxy settings but that apparently isn't working and the error returned from the dexter process seemed to clearly indicate an authentication issue with my user name and/or password. Once I explicitly added proxy settings to the AppDynamics.Dexter.exe.config file it started working.
Hello there,
If you are using SAML or LDAP, those types of accounts do not work for REST API and thus for DEXTER. This is documented here https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Job-File#username-string