寫在shell腳本中,每5秒執行一次ios
#!/bin/bash while true do echo '========================'`date +%Y%m%d_%T` >> iostat_monitor.log iostat -x -m >> iostat_monitor.log ps -ef |grep /usr/bin/ssh |grep 15:01 | grep -v grep |wc -l sleep 5 done