HP unix 没有像Aix 有nmon,但HPunix 有glance,但比起 nmon 易用性就差一些了,但glance 支持adviser模式,
所以此次利用glance的adviser模式,把监控的信息输出到文本,留下记号,方便大家使用;
1 . adviser 配置文件
# -------------------------------------------------------------
# file name "total_system_perf"
#
#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.
# Don't change file name
#
firsttime=firsttime
if firsttime == 0 then
{
print ""
firsttime=1
print "Date_Time Interval CPU% DISK% MEM% SWAP% NetworkWait %"
print "---------------------------------------------------------------------------------"
}
print GBL_STATDATE,"_",GBL_STATTIME,&#