Skip to content

Instantly share code, notes, and snippets.

@nilstgmd
Created February 20, 2016 18:36
Show Gist options
  • Save nilstgmd/729157ed4c4150cd132d to your computer and use it in GitHub Desktop.
Save nilstgmd/729157ed4c4150cd132d to your computer and use it in GitHub Desktop.
Commands to install and run the OpsCenter Agent on a Cassandra node.
#!/bin/bash
echo "Installing Agent..."
mkdir /opt/agent; \
wget -O - http://downloads.datastax.com/community/datastax-agent-5.1.0.tar.gz \
| tar xzf - --strip-components=1 -C "/opt/agent"
cd /opt/agent/conf
echo "stomp_interface: $OPS_IP" >> ./address.yaml
touch /root/.agentconfig
cd /opt/agent
echo "Starting Agent"
bin/datastax-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment