HPunix CPU 内存 磁盘等利用率 输出成报表

本文介绍了如何在HP UNIX系统上利用glance工具的adviser模式来监控CPU、内存、磁盘和网络利用率,并将数据输出为报表。通过配置adviser脚本`total_system_perf`,启动监控脚本`start_monit.sh`收集数据,最后使用`kill_glance_script_monit.sh`停止监控并格式化日志。监控结果以CSV格式保存,便于分析。
摘要由CSDN通过智能技术生成

 

      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,&#

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值