Skip to content

Instantly share code, notes, and snippets.

@FilBot3
Created August 20, 2015 21:08
Show Gist options
  • Select an option

  • Save FilBot3/5a7fc61ec3c7164e9dbc to your computer and use it in GitHub Desktop.

Select an option

Save FilBot3/5a7fc61ec3c7164e9dbc to your computer and use it in GitHub Desktop.
Gets a stat from the Linux OS for LV read/write, i forget which field it was.
sudo -u zabbix -- cat /proc/diskstats | /bin/grep dm-`dmsetup ls | grep \`cat /etc/fstab | grep /u01/app/oracle/admin/mybi_domain/mserver/applications | awk '{print $1}' | awk -F/ '{print $NF}'\` | awk '{print $3}' | sed s'/.$//'` | awk '{print $13}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment