zoukankan      html  css  js  c++  java
  • ns统计使用资源的SNMP OID

    ns统计使用资源的SNMP OID

    > add snmp manager 192.168.195.1
    > add snmp community public ALL
    > add snmp trap generic 192.168.195.1 -communityName public
    > add snmp trap specific 192.168.195.1 -communityName public
    
    #############################
    
    # resCpuUsage --- CPU utilization percentage.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.1.0
    
    # resMemUsage --- Percentage of memory utilization on HGAns.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.2.0
    
    # numCPUs --- The number of active CPUs.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.3.0
    
    # memSizeMB --- Total amount of system memory, in megabytes.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.4.0
    
    # numSSLCards  Number of SSL Cards on the system
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.5.0
    
    # mgmtCpuUsage --- Mgmt CPU utilization percentage.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.6.1.2.8.77.103.109.116.32.67.80.85
    
    # packetCpu0Usage --- Packet CPU 0 utilization percentage.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.6.1.2.12.80.97.99.107.101.116.32.67.80.85.32.48
     
    # cpuSpeedMHz --- CPU speed in MHz.
    .snmpget.exe -v2c -c public 192.168.195.205 .1.3.6.1.4.1.5951.4.1.1.41.15.0
    
    #############################

    ========================== End

  • 相关阅读:
    51.try块和catch块中return语句的执行
    17. 处理日期
    16.查找特定字符出现的次数
    15.字符串长度
    14.字符串拆分
    13.字符串比较
    12.幸运抽奖
    11.使用枚举
    10.获取系统时间
    MSSQL 判断临时表是否存在
  • 原文地址:https://www.cnblogs.com/lsgxeva/p/9355069.html
Copyright © 2011-2022 走看看