- 论坛徽章:
- 0
|
不知道这样行不行?
global.adviser.txt(此脚本需放置在/opt/perf/examples/adviser/下)
#This adviser script prints the global cpu/disk/mem/swap utilization and also
# the network subsystem wait percent for the interval. Think of it as the
# glance global bars plus a network indicator.
firsttime=firsttime
if firsttime == 0 then
{
print \" \"
firsttime=1
print \" CPU DISK MEM SWAP Network\"
print \"Date Time Interval Util Util Util Util Wait %\"
print \"---------------------------------------------------------------------\"
}
print GBL_STATDATE,\" \",GBL_STATTIME,\" \",GBL_INTERVAL,\" \",GBL_CPU_TOTAL_UTIL,\" \",GBL_DISK_UTIL_PEAK,\" \",GBL_MEM_UTIL,\" \",GBL_SWAP_SPACE_UTIL,\" \",GBL_NETWORK_SUBSYSTEM_WAIT_PCT
//////结束
脚本运行语句:nohup glance -adviser_only -syntax /opt/perf/examples/adviser/global.adviser.txt -j 900>>/tmp/hpmon/global.txt & |
|