Skip to content

Instantly share code, notes, and snippets.

@ashishb888
Last active October 26, 2020 07:55
Show Gist options
  • Save ashishb888/4e859298ddd6c9f7cd99820d21019888 to your computer and use it in GitHub Desktop.
Save ashishb888/4e859298ddd6c9f7cd99820d21019888 to your computer and use it in GitHub Desktop.
Operating system statistics
#!/bin/bash
nohup iostat -t 5 > /var/log/iostat-logs/iostat-`date +%FT%H-%M-%S`.log &
nohup top -u hdpusr -b > /var/log/top-logs/top-`date +%FT%H-%M-%S`.log &
nohup vmstat -t 5 > /var/log/vmstat-logs/vmstat-`date +%FT%H-%M-%S`.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment