File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl install db
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl install db
70+ EOF
7171 then
7272 echo "✅ Completed DB agent installation on $HOST"
7373 else
Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl install java
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl install java
70+ EOF
7171 then
7272 echo "✅ Completed Java agent installation on $HOST"
7373 else
Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl install machine
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl install machine
70+ EOF
7171 then
7272 echo "✅ Completed Machine agent installation on $HOST"
7373 else
Original file line number Diff line number Diff line change 8585 -o UserKnownHostsFile=/dev/null \
8686 -o ConnectTimeout=30 \
8787 "${SSH_USER}@${HOST}" << 'EOF'
88- cd /opt/appdynamics/appdsmartagent
89- sudo ./smartagentctl install node
90- EOF
88+ cd /opt/appdynamics/appdsmartagent
89+ sudo ./smartagentctl install node
90+ EOF
9191 then
9292 echo "✅ Completed Node agent installation on $HOST"
9393 else
Original file line number Diff line number Diff line change @@ -65,14 +65,14 @@ jobs:
6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69-
70- # Stop Smart Agent
71- sudo ./smartagentctl stop
72-
73- # Clean environment and purge data
74- sudo ./smartagentctl clean
75- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+
70+ # Stop Smart Agent
71+ sudo ./smartagentctl stop
72+
73+ # Clean environment and purge data
74+ sudo ./smartagentctl clean
75+ EOF
7676 then
7777 echo "✅ Completed stop and clean on $HOST"
7878 else
Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl uninstall db
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl uninstall db
70+ EOF
7171 then
7272 echo "✅ Completed DB agent uninstall on $HOST"
7373 else
Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl uninstall java
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl uninstall java
70+ EOF
7171 then
7272 echo "✅ Completed Java agent uninstall on $HOST"
7373 else
Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl uninstall machine
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl uninstall machine
70+ EOF
7171 then
7272 echo "✅ Completed Machine agent uninstall on $HOST"
7373 else
Original file line number Diff line number Diff line change 6565 chmod 600 ~/.ssh/id_rsa_$HOST
6666
6767 if ssh -i ~/.ssh/id_rsa_$HOST -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=30 "${SSH_USER}@${HOST}" << 'EOF'
68- cd /opt/appdynamics/appdsmartagent
69- sudo ./smartagentctl uninstall node
70- EOF
68+ cd /opt/appdynamics/appdsmartagent
69+ sudo ./smartagentctl uninstall node
70+ EOF
7171 then
7272 echo "✅ Completed Node agent uninstall on $HOST"
7373 else
You can’t perform that action at this time.
0 commit comments