linux数据收集

#!/bin/sh
timeout 3610 sar -t 60  >>/opt/collect/cpu_collect.txt
timeout 3610 iostat  -x -k 60 >>/opt/collect/io_collect.txt
timeout 3610 free -s 60 -m >>/opt/collect/mem_collect.txt
原文地址:https://www.cnblogs.com/pengpengboshi/p/14917454.html