<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Execute dynatrace.sh bash script | Dynatrace help</title>
    <description></description>
    <link>https://www.dynatrace.com/support/help/</link>
    <atom:link href="https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/dynatrace-script/feed.xml" rel="self" type="application/rss+xml"/>
    <lastBuildDate>Fri, 18 Oct 2019 07:17:18 +0200</lastBuildDate>
    <pubDate>Thu, 22 Aug 2019 08:55:07 +0200</pubDate>
    <generator>Metalsmith v2.3.0</generator>
    <item>
      <title>Execute dynatrace.sh bash script updated on Thu, 22 Aug 2019 08:55:07 +0200</title>
      <description>&lt;p&gt;Dynatrace Managed software consists of a number of Dynatrace services that are dependent on each other and should be stopped or started in a particular order. You can use the official &lt;code&gt;dynatrace.sh&lt;/code&gt; script with additional parameters to properly start, stop, or restart Dynatrace services. By default, the script is located at &lt;code&gt;/opt/dynatrace-managed/launcher/&lt;/code&gt;. Make sure the &lt;code&gt;dynatrace.sh&lt;/code&gt; script has executable permissions.&lt;/p&gt;
&lt;p&gt;You can execute the &lt;code&gt;dynatrace.sh&lt;/code&gt; script with a parameter (&lt;code&gt;start&lt;/code&gt;, &lt;code&gt;stop&lt;/code&gt;, &lt;code&gt;restart&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;check&lt;/code&gt;, &lt;code&gt;pid&lt;/code&gt;) as described below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;start&lt;/strong&gt;&lt;br&gt;
Starts all Dynatrace Managed required services in the recommended order.&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;[root@localhost]#&lt;/span&gt;&lt;span class=&quot;bash&quot;&gt; ./dynatrace.sh start&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;stop&lt;/strong&gt;&lt;br&gt;
Stops all Dynatrace Managed required services in the recommended order.&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;[root@localhost]#&lt;/span&gt;&lt;span class=&quot;bash&quot;&gt; ./dynatrace.sh stop&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;restart&lt;/strong&gt;&lt;br&gt;
Restarts all Dynatrace Managed required services in the recommended order.&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;[root@localhost]#&lt;/span&gt;&lt;span class=&quot;bash&quot;&gt; ./dynatrace.sh restart&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;&lt;br&gt;
Displays a list of Dynatrace required services and the status of each, including detailed information about each service:&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;[root@localhost]#&lt;/span&gt;&lt;span class=&quot;bash&quot;&gt; ./dynatrace.sh status&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;section class=&quot;expandable expandable--separated&quot; id=&quot;expand-160example-of-dynatracesh-status-output&quot;&gt;
&lt;a class=&quot;expandable__trigger&quot; href=&quot;#expand-160example-of-dynatracesh-status-output&quot;&gt;Example of dynatrace.sh status output&lt;/a&gt;
&lt;article class=&quot;expandable__content&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&amp;#x25CF; dynatrace-firewall.service - Dynatrace Firewall settings
   Loaded: loaded (/etc/systemd/system/dynatrace-firewall.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2019-07-09 08:34:54 UTC; 1 months 3 days ago
Main PID: 12967 (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
      CPU: 0
   CGroup: /system.slice/dynatrace-firewall.service

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
&amp;#x25CF; dynatrace-nodekeeper.service - Dynatrace Nodekeeper
   Loaded: loaded (/etc/systemd/system/dynatrace-nodekeeper.service; enabled; vendor preset: enabled)
  Active: active (running) since Tue 2019-07-09 08:30:02 UTC; 1 months 3 days ago
    Tasks: 69 (limit: 32768)
   Memory: 389.2M
      CPU: 2h 9min 51.936s
   CGroup: /system.slice/dynatrace-nodekeeper.service
           &amp;#x251C;&amp;#x2500;  552 /opt/managed/nodekeeper/jre/bin/java -Xms239M -Xmx239M -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 -Duser.language=EN -Djava.io.tmpdir=...
           &amp;#x251C;&amp;#x2500;  966 /bin/sh /opt/managed/nodekeeper/services/watchdog.sh watch /opt/managed/nodekeeper/services/nodekeeper.sh
          &amp;#x2514;&amp;#x2500;22167 sleep 60

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
&amp;#x25CF; dynatrace-cassandra.service - Dynatrace Cassandra
   Loaded: loaded (/etc/systemd/system/dynatrace-cassandra.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-09 08:37:52 UTC; 1 months 3 days ago
    Tasks: 199 (limit: 32768)
   Memory: 3.2G
      CPU: 17h 1min 32.540s
   CGroup: /system.slice/dynatrace-cassandra.service
           &amp;#x251C;&amp;#x2500;13690 /opt/managed/jre/bin/java -javaagent:/opt/managed/cassandra/bin/../lib/jamm-0.3.0.jar -XX:+CMSClassUnloadingEnabled -XX:+UseThreadPriorities -XX:ThreadPr...
           &amp;#x251C;&amp;#x2500;13721 /bin/sh /opt/managed/services/watchdog.sh watch /opt/managed/services/cassandra.sh
           &amp;#x2514;&amp;#x2500;22197 sleep 60

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
&amp;#x25CF; dynatrace-elasticsearch.service - Dynatrace Elasticsearch
   Loaded: loaded (/etc/systemd/system/dynatrace-elasticsearch.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-09 08:38:15 UTC; 1 months 3 days ago
    Tasks: 58 (limit: 32768)
   Memory: 884.6M
      CPU: 6h 59min 48.051s
   CGroup: /system.slice/dynatrace-elasticsearch.service
           &amp;#x251C;&amp;#x2500;14802 /opt/managed/jre/bin/java -Xms558M -Xmx558M -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysP...
           &amp;#x251C;&amp;#x2500;14834 /bin/sh /opt/managed/services/watchdog.sh watch /opt/managed/services/elasticsearch.sh
           &amp;#x2514;&amp;#x2500;21975 sleep 60

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
&amp;#x25CF; dynatrace-server.service - Dynatrace Server
   Loaded: loaded (/etc/systemd/system/dynatrace-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-09 08:39:01 UTC; 1 months 3 days ago
Main PID: 2927 (code=exited, status=0/SUCCESS)
    Tasks: 475 (limit: 32768)
   Memory: 1.6G
      CPU: 1d 3h 10min 18.812s
   CGroup: /system.slice/dynatrace-server.service
           &amp;#x251C;&amp;#x2500;15294 /opt/managed/server/dynatraceserver -vm=/opt/managed/jre/bin/java -vmargs -Xms2873M -Xmx2873M -XX:-OmitStackTraceInFastThrow -XX:+UseConcMarkSweepGC -XX:...
           &amp;#x2514;&amp;#x2500;15302 /opt/managed/jre/bin/java -Dcom.compuware.apm.WatchDogPort=50004 -classpath :/opt/managed/server/lib/ace-1.4.4-dt-2.0.jar:/opt/managed/server/lib/acme4j-...

Aug 12 13:04:05 ip-10-176-32-69 sudo[20856]: pam_unix(sudo:session): session closed for user root
Aug 12 13:04:05 ip-10-176-32-69 sudo[21125]:  dynaman : TTY=unknown ; PWD=/opt/managed/server ; USER=root ; COMMAND=/opt/dtrun/dtrun service dynatrace-cassandra status
Aug 12 13:04:05 ip-10-176-32-69 sudo[21125]: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 12 13:04:05 ip-10-176-32-69 sudo[21125]: pam_unix(sudo:session): session closed for user root
Aug 12 13:04:05 ip-10-176-32-69 sudo[21389]:  dynaman : TTY=unknown ; PWD=/opt/managed/server ; USER=root ; COMMAND=/opt/dtrun/dtrun service dynatrace-security-gateway status
Aug 12 13:04:05 ip-10-176-32-69 sudo[21389]: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 12 13:04:05 ip-10-176-32-69 sudo[21389]: pam_unix(sudo:session): session closed for user root
Aug 12 13:04:05 ip-10-176-32-69 sudo[21665]:  dynaman : TTY=unknown ; PWD=/opt/managed/server ; USER=root ; COMMAND=/opt/dtrun/dtrun service dynatrace-server status
Aug 12 13:04:05 ip-10-176-32-69 sudo[21665]: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 12 13:04:05 ip-10-176-32-69 sudo[21665]: pam_unix(sudo:session): session closed for user root
Hint: Some lines were ellipsized, use -l to show in full.
&amp;#x25CF; dynatrace-security-gateway.service - Dynatrace Active Gate
   Loaded: loaded (/etc/systemd/system/dynatrace-security-gateway.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-09 08:39:37 UTC; 1 months 3 days ago
Main PID: 16173 (dynatracegatewa)
    Tasks: 247 (limit: 32768)
   Memory: 410.7M
      CPU: 3h 44min 58.189s
   CGroup: /system.slice/dynatrace-security-gateway.service
           &amp;#x251C;&amp;#x2500;16173 /opt/managed/security-Gateway/launcher/dynatracegateway -bg -vm=/opt/managed/jre/bin/java -vmargs -Xms638M -Xmx638M -XX:+UseConcMarkSweepGC -XX:CMSInitia...
           &amp;#x2514;&amp;#x2500;16182 /opt/managed/jre/bin/java -Dcom.compuware.apm.WatchDogPort=50005 -classpath /opt/managed/security-Gateway/lib/* -XX:ErrorFile=/var/opt/managed/log/securi...

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
&amp;#x25CF; dynatrace-nginx.service - Dynatrace Nginx
   Loaded: loaded (/etc/systemd/system/dynatrace-nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-07-09 08:39:46 UTC; 1 months 3 days ago
    Tasks: 14 (limit: 32768)
   Memory: 92.7M
      CPU: 40min 38.507s
   CGroup: /system.slice/dynatrace-nginx.service
           &amp;#x251C;&amp;#x2500;17152 nginx: OneAgent companion process
           &amp;#x251C;&amp;#x2500;17153 nginx: master process /opt/managed/nginx/sbin/nginx -c /opt/managed/nginx/conf/nginx.conf
           &amp;#x251C;&amp;#x2500;17155 nginx: worker process
           &amp;#x251C;&amp;#x2500;17156 nginx: worker process
           &amp;#x251C;&amp;#x2500;17164 /bin/bash /opt/managed/services/logs-watcher.sh watch-nginx /var/opt/managed/log/nginx/access.log /var/opt/managed/log/nginx/error.log
           &amp;#x2514;&amp;#x2500;19214 sleep 600

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
All services are OK

&lt;/code&gt;&lt;/pre&gt;
&lt;/article&gt;
&lt;/section&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;check&lt;/strong&gt;&lt;br&gt;
Checks the status of iptable rules and the processes for Nodekeeper, Cassandra, Elasticsearch, ActiveGate, Watcher, and Nginx.&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;[root@localhost]#&lt;/span&gt;&lt;span class=&quot;bash&quot;&gt; ./dynatrace.sh check&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;section class=&quot;expandable expandable--separated&quot; id=&quot;expand-161example-of-dynatracesh-status-output&quot;&gt;
&lt;a class=&quot;expandable__trigger&quot; href=&quot;#expand-161example-of-dynatracesh-status-output&quot;&gt;Example of dynatrace.sh status output&lt;/a&gt;
&lt;article class=&quot;expandable__content&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;Checking rules in iptables ...
Rule is present in &amp;apos;filter&amp;apos;: INPUT -p tcp -m tcp -m multiport --ports 443,5701:5711,7000:7001,7199,8018:8022,8443,9042,9200,9300,9998 -j DROP
Rule is present in &amp;apos;filter&amp;apos;: OUTPUT -p tcp -m tcp -m multiport --ports 443,5701:5711,7000:7001,7199,8018:8022,8443,9042,9200,9300,9998 -j ACCEPT
Rule is present in &amp;apos;filter&amp;apos;: INPUT -p tcp -m addrtype --src-type LOCAL -m tcp -m multiport --ports 443,5701:5711,7000:7001,7199,8018:8022,8443,9042,9200,9300,9998 -j ACCEPT
Rule is present in &amp;apos;filter&amp;apos;: INPUT -s 10.10.10.10/32 -p tcp -m tcp -m multiport --ports 5701:5711,7000:7001,7199,8019,9042,9200,9300 -j ACCEPT
Rule is present in &amp;apos;filter&amp;apos;: INPUT -p tcp -m tcp -m multiport --ports 443,8020:8022,8443,9998 -j ACCEPT
Rule is present in &amp;apos;filter&amp;apos;: FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
Rule is present in &amp;apos;nat&amp;apos;: PREROUTING -p tcp -m addrtype --dst-type LOCAL -m tcp --dport 443 -j REDIRECT --to-ports 8022
Rule is present in &amp;apos;nat&amp;apos;: OUTPUT -p tcp -m addrtype --dst-type LOCAL -m tcp --dport 443 -j REDIRECT --to-ports 8022
All rules are active.
Nodekeeper is running at launcher PID: 966, main PID: 552, listening on ports 8018
Cassandra is running at launcher PID: 13721, main PID: 13690, listening on ports 9042
Elasticsearch is running at launcher PID: 14834, main PID: 14802, listening on ports 9200,9300
{
  &amp;quot;cluster_name&amp;quot; : &amp;quot;11bc1cd1e1-c222-33e3-4f44-0e0bc0dcdc0d&amp;quot;,
  &amp;quot;status&amp;quot; : &amp;quot;yellow&amp;quot;,
  &amp;quot;timed_out&amp;quot; : false,
  &amp;quot;number_of_nodes&amp;quot; : 1,
  &amp;quot;number_of_data_nodes&amp;quot; : 1,
  &amp;quot;active_primary_shards&amp;quot; : 299,
  &amp;quot;active_shards&amp;quot; : 299,
  &amp;quot;relocating_shards&amp;quot; : 0,
  &amp;quot;initializing_shards&amp;quot; : 0,
  &amp;quot;unassigned_shards&amp;quot; : 598,
  &amp;quot;delayed_unassigned_shards&amp;quot; : 0,
  &amp;quot;number_of_pending_tasks&amp;quot; : 0,
  &amp;quot;number_of_in_flight_fetch&amp;quot; : 0,
  &amp;quot;task_max_waiting_in_queue_millis&amp;quot; : 0,
  &amp;quot;active_shards_percent_as_number&amp;quot; : 33.33333333333333
}
Server is running at launcher PID: 15294, main PID: 15302, listening on ports 8021
ActiveGate is running at launcher PID: 16173, main PID: 16182, listening on ports 8443
Command to run as user dynaman: /opt/managed/services/logs-watcher.sh status
Watcher is running, reporting in log: /var/opt/managed/log/logs-watcher-for-nginx-logs.log
Nginx is running at launcher PID: 17153, main PID: 17155 17156, listening on ports 8022
All processes are OK

&lt;/code&gt;&lt;/pre&gt;
&lt;/article&gt;
&lt;/section&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;pid&lt;/strong&gt;&lt;br&gt;
Displays the process ID for all Dynatrace required services that were started with the &lt;code&gt;dynatrace.sh&lt;/code&gt; script.&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;&lt;span class=&quot;hljs-meta&quot;&gt;[root@localhost]#&lt;/span&gt;&lt;span class=&quot;bash&quot;&gt; ./dynatrace.sh pid&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;section class=&quot;expandable expandable--separated&quot; id=&quot;expand-162example-of-dynatracesh-status-pid&quot;&gt;
&lt;a class=&quot;expandable__trigger&quot; href=&quot;#expand-162example-of-dynatracesh-status-pid&quot;&gt;Example of dynatrace.sh status pid&lt;/a&gt;
&lt;article class=&quot;expandable__content&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-shell hljs&quot;&gt;966 552 13721 13690 14834 14802 15294 15302 16173 16182 17153 17155 17156
&lt;/code&gt;&lt;/pre&gt;
&lt;/article&gt;
&lt;/section&gt;
</description>
      <pubDate>Thu, 22 Aug 2019 08:55:07 +0200</pubDate>
      <link>https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/dynatrace-script/?updated=thu-22-aug-2019-08-55-07-0200</link>
      <guid isPermaLink="true">https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/operation/dynatrace-script/</guid>
    </item>
  </channel>
</rss>