Skip to content

Instantly share code, notes, and snippets.

@agup006
Last active August 16, 2016 01:10
Show Gist options
  • Save agup006/4190823c9011a344a495ae844f2cf571 to your computer and use it in GitHub Desktop.
Save agup006/4190823c9011a344a495ae844f2cf571 to your computer and use it in GitHub Desktop.
#!/bin/bash
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/v1.1.0-239/omsagent-1.1.0-239.universal.x64.sh -O /tmp/omsagent.sh
sh /tmp/omsagent.sh --upgrade -w $1 -s $2
cp /etc/opt/microsoft/omsagent/sysconf/omsagent.conf /etc/opt/microsoft/omsagent/conf/omsagent.conf
wget -O /etc/opt/microsoft/omsagent/conf/omsagent.d/hbase.conf http://ashishdata.blob.core.windows.net/oms/hbase.conf
sudo service omsagent restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment