• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Sathish S. · Jul 21, 2014 at 02:29 AM ·

Error connect using RESTAPI

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

6 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Sathish S. · Jul 29, 2014 at 05:09 AM

Let me know if you want to open ticket with support team if it requires futher investigation. Thanks

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sathish S. · Jul 24, 2014 at 05:51 AM

 

Further information on this.

I downloaded automation library from below site for dynatrace 5.6 version.

https://community.compuwareapm.com/community/display/DL/Automation+Library+for+dynaTrace

I was browsing through clases inside that jar, i found "com.dynatrace.diagnostics.automation.Console" class is not present.

This is same I'm getting by executing below command

java -cp com.dynatrace.diagnostics.automation_5.6.0.5713.jar com.dynatrace.diagnostics.automation.Console
Error: Could not find or load main class com.dynatrace.diagnostics.automation.Console

Is it something broken ?

 

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sathish S. · Jul 24, 2014 at 05:36 AM

I'm not sure how to find version of that library. But i pasted manifest file of automation library jar file.

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.5.0_10-b03 (Sun Microsystems Inc.)
Main-Class: com.dynatrace.diagnostics.automation.Console
Bundle-ManifestVersion: 2
Bundle-Name: dynaTrace Automation
Bundle-SymbolicName: com.dynatrace.diagnostics.automation;singleton:=t
 rue
Bundle-Version: 1.0.0
Bundle-ClassPath: .,lib/ant.jar,lib/doxia-site-renderer-1.0-alpha-11.j
 ar,lib/maven-2.2.1-uber.jar,lib/maven-reporting-impl-2.0.4.1.jar
Bundle-Vendor: dynaTrace software GmbH
Export-Package: com.dynatrace.diagnostics.automation.ant,com.dynatrace
 .diagnostics.automation.maven,org.apache.maven.plugin
Require-Bundle: com.dynatrace.diagnostics.automation.rest.sdk;bundle-v
 ersion="1.0.0"

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sathish S. · Jul 22, 2014 at 01:27 AM

Thanks Andi, Yes i know that RESTAPI but i was trying using "com.dynatrace.diagnostics.automation.jar " API to get agents information.

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Wolfgang G. · Jul 22, 2014 at 02:06 AM 0
Share

Which version of the automation library are you using?

avatar image

Answer by Andreas G. · Jul 21, 2014 at 05:08 PM

Hi

Thanks for letting us know about this. If you want to access the REST INterface - have you ever tried to access it directly instead via the command line options of our automation library? To get the agent information we have the following REST interfaces: Agents and Collectors (REST) - example: http://<server>:8020/rest/management/agents

Andi

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Sathish S. · Jul 21, 2014 at 02:31 AM

Trying to connect DT using restfull service, getting below exception.

Any idea about this exception ?

java -cp com.dynatrace.diagnostics.automation.jar com.dynatrace.diagnostics.automation.Console -user <User name> -pass <password>
-server "server ulrl" -agentinfo

Jul 20, 2014 11:26:47 AM com.dynatrace.diagnostics.automation.Console loadProperties
WARNING: Unable to load properties - using defaults.
Exception in thread "main" com.dynatrace.diagnostics.automation.rest.sdk.Command
ExecutionException: Error listing agents: For input string: "b4f01794"
        at com.dynatrace.diagnostics.automation.rest.sdk.RESTEndpoint.getAgents(
RESTEndpoint.java:386)
        at com.dynatrace.diagnostics.automation.Console.main(Console.java:219)
Caused by: java.lang.NumberFormatException: For input string: "b4f01794"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
        at java.lang.Integer.parseInt(Integer.java:492)
        at java.lang.Integer.valueOf(Integer.java:582)
        at com.dynatrace.diagnostics.automation.rest.sdk.entity.Agent.setValue(A
gent.java:12)
        at com.dynatrace.diagnostics.automation.rest.sdk.AgentXMLHandler.charact
ers(AgentXMLHandler.java:65)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characte
rs(AbstractSAXParser.java:546)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:463)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:848)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:777)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:141)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1213)
        at com.dynatrace.diagnostics.automation.rest.sdk.RESTEndpoint.getAgentHa
ndler(RESTEndpoint.java:180)
        at com.dynatrace.diagnostics.automation.rest.sdk.RESTEndpoint.getAgents(
RESTEndpoint.java:383)
        ... 1 more

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A