Hi everyone, I want to get system cpu usage information on windows paltform through net-snmp.
I installed net-snmp 5.4.2 on my windowsXP sp2 OS and can get IF-MIB and TCP-MIB successfully.
But can not get any response related with system cpu usage information.
when I perform
Code:
snmpwalk.exe -v2c -c public localhost 1.3.6.1.4.1.2021
Such result returned :
Code:
UCD-SNMP-MIB::laIndex.1 = INTEGER: 1
UCD-SNMP-MIB::laIndex.2 = INTEGER: 2
UCD-SNMP-MIB::laIndex.3 = INTEGER: 3
UCD-SNMP-MIB::laNames.1 = STRING: Load-1
UCD-SNMP-MIB::laNames.2 = STRING: Load-5
UCD-SNMP-MIB::laNames.3 = STRING: Load-15
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.4.2
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2006-09-15 01:48:50 +0100 (Fri, 15
Sep 2006) $
UCD-SNMP-MIB::versionCDate.0 = STRING: Tue Oct 28 14:50:40 2008
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c 15220 2006-09-15 00:48
:50Z tanders $
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING:
UCD-SNMP-MIB::versionClearCache.0 = INTEGER: 0
UCD-SNMP-MIB::versionUpdateConfig.0 = INTEGER: 0
UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 0
UCD-SNMP-MIB::versionSavePersistentData.0 = INTEGER: 0
UCD-SNMP-MIB::versionDoDebugging.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrIndex.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrNames.0 = STRING: snmp
UCD-SNMP-MIB::snmperrErrorFlag.0 = INTEGER: noError(0)
UCD-SNMP-MIB::snmperrErrMessage.0 = STRING:
But if snmpwalk.exe -v2c -c public [ip of linux system] 1.3.6.1.4.1.2021
I can get cpu usage like
Code:
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 1
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 97
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 1157514
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 324475
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 593095
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 93769727
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 916800
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 565103
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 27992
My question is how can I get cpu usage informaition like I got from linux ? Any help will be appreciated.