Windows OID uses SNMP for host information-Alibaba Cloud

网友投稿 326 2022-10-18


Windows OID uses SNMP for host information-Alibaba Cloud

Windows OID ' for CPU, Memory, Disk utilization2007-10-3111:03windows CPU utilization:

oid:.1.3.6.1.2.1.25.3.3.1.2 (. Iso.org.dod.internet.mgmt.mib-2.host.hrdevice.hrprocessortable.hrprocessorentry.hrprocessorload) in Host-resources-mib

1.3.6.1.2.1.25.3.3.1.2.2And 1.3.6.1.2.1.25.3.3.1.2.3

Windows Memory Utilization:

total:oid:1.3.6.1.2.1.25.2.2.0 Unit (KB)--windows 2003

1.3.6.1.2.1.25.2.2.0 = 2096304 [Integer]

Memory usage processing and HDD total, HDD usage consistent

Windows Disk Utilization:

Total OID:

Usage OID:

Disk type OID (hrstrogetype):

Hrstoragetypes

1.3.6.1.2.1.25.2.1

OBJECT IDENTIFIER

Hrstorageother

1.3.6.1.2.1.25.2.1.1

OBJECT IDENTIFIER

Hrstorageram

1.3.6.1.2.1.25.2.1.2

OBJECT IDENTIFIER

Hrstoragevirtualmemory

1.3.6.1.2.1.25.2.1.3

OBJECT IDENTIFIER

Hrstoragefixeddisk

1.3.6.1.2.1.25.2.1.4

OBJECT IDENTIFIER

Hrstorageremovabledisk

1.3.6.1.2.1.25.2.1.5

OBJECT IDENTIFIER

Hrstoragefloppydisk

1.3.6.1.2.1.25.2.1.6

OBJECT IDENTIFIER

Hrstoragecompactdisc

1.3.6.1.2.1.25.2.1.7

OBJECT IDENTIFIER

Hrstorageramdisk

1.3.6.1.2.1.25.2.1.8

OBJECT IDENTIFIER

Hrstorageram represents memory, Hrstoragefixeddisk represents hard disk, Hrstoragevirtualmemory represents virtual memory, Hrstoragecompactdisc represents disc

Distinguish the types of each disk/partition

1.3.6.1.2.1.25.2.3.1.2.1 = 1.3.6.1.2.1.25.2.1.4 [objectidentifier]//HDD

1.3.6.1.2.1.25.2.3.1.2.2 = 1.3.6.1.2.1.25.2.1.4 [objectidentifier]//HDD

1.3.6.1.2.1.25.2.3.1.2.3 = 1.3.6.1.2.1.25.2.1.4 [objectidentifier]//HDD

1.3.6.1.2.1.25.2.3.1.2.4 = 1.3.6.1.2.1.25.2.1.4 [objectidentifier]//HDD

1.3.6.1.2.1.25.2.3.1.2.5 = 1.3.6.1.2.1.25.2.1.7 [objectidentifier]//disc

1.3.6.1.2.1.25.2.3.1.2.6 = 1.3.6.1.2.1.25.2.1.7 [objectidentifier]//disc

1.3.6.1.2.1.25.2.3.1.2.7 = 1.3.6.1.2.1.25.2.1.3 [objectidentifier]//virtual memory

1.3.6.1.2.1.25.2.3.1.2.8 = 1.3.6.1.2.1.25.2.1.2 [objectidentifier]//physical memory

disk/Partition information OID:

1.3.6.1.2.1.25.2.3.1.3.1 = "c:label:serial number Dc26ea33" [Octets]

1.3.6.1.2.1.25.2.3.1.3.2 = "D:label:test Serial number 9629f314" [Octets]

1.3.6.1.2.1.25.2.3.1.3.3 = "E:label:test_backup Serial Number94389268" [Octets]

1.3.6.1.2.1.25.2.3.1.3.4 = "F:label:others Serial number 5c4002e8" [Octets]

1.3.6.1.2.1.25.2.3.1.3.5 = "G:" [Octets]

1.3.6.1.2.1.25.2.3.1.3.6 = "h:label:oracle10g Serial numberb1c04dbe" [Octets]

1.3.6.1.2.1.25.2.3.1.3.7 = "Virtual Memory" [Octets]

1.3.6.1.2.1.25.2.3.1.3.8 = "Physical Memory" [Octets]

Storageallocationunits OID: Also known as the size of each chopsticks/block

1.3.6.1.2.1.25.2.3.1.4.1 = [Integer]

1.3.6.1.2.1.25.2.3.1.4.2 = 4096 [Integer]

1.3.6.1.2.1.25.2.3.1.4.3 = 4096 [Integer]

1.3.6.1.2.1.25.2.3.1.4.4 = 4096 [Integer]

1.3.6.1.2.1.25.2.3.1.4.5 = 0 [Integer]

1.3.6.1.2.1.25.2.3.1.4.6 = 2048 [Integer]

1.3.6.1.2.1.25.2.3.1.4.7 = 65536 [Integer]

1.3.6.1.2.1.25.2.3.1.4.8 = 65536 [Integer]

5.StorageSize OID: How many blocks/chopsticks a disk is divided into, total size

1.3.6.1.2.1.25.2.3.1.5.1 = 25157789 [Integer]

1.3.6.1.2.1.25.2.3.1.5.2 = 2815383 [Integer]

1.3.6.1.2.1.25.2.3.1.5.3 = 4096567 [Integer]

1.3.6.1.2.1.25.2.3.1.5.4 = 11006525 [Integer]

1.3.6.1.2.1.25.2.3.1.5.5 = 0 [Integer]

1.3.6.1.2.1.25.2.3.1.5.6 = 317298 [Integer]

1.3.6.1.2.1.25.2.3.1.5.7 = 63101 [Integer]

1.3.6.1.2.1.25.2.3.1.5.8 = 32754 [Integer]

Storageused oid://already used block/chopsticks

1.3.6.1.2.1.25.2.3.1.6.1 = 7427924 [Integer]

1.3.6.1.2.1.25.2.3.1.6.2 = 861039 [Integer]

1.3.6.1.2.1.25.2.3.1.6.3 = 16820 [Integer]

1.3.6.1.2.1.25.2.3.1.6.4 = 5788717 [Integer]

1.3.6.1.2.1.25.2.3.1.6.5 = 0 [Integer]

1.3.6.1.2.1.25.2.3.1.6.6 = 317298 [Integer]

1.3.6.1.2.1.25.2.3.1.6.7 = 12172 [Integer]

1.3.6.1.2.1.25.2.3.1.6.8 = 13270 [Integer]

Storageallocationfailures oid://failed to allocate block/chopsticks

1.3.6.1.2.1.25.2.3.1.7.1 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.2 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.3 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.4 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.5 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.6 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.7 = 0 [Counter32]

1.3.6.1.2.1.25.2.3.1.7.8 = 0 [Counter32]

In this example

You can see the drive letter is c:d: e:f:; also can get virtual memory information, physical memory information

C: Disk size is 512x25157789= 12880787968bytes or 12GB

C: Disk to use space 512x7427924= 3803097088bytes or 3.54GB

C: The disk usage rate is 3.54/12*100% = 29.5%

C: Disk space allocation Error 512x0 = 0 bytes

Disk usage size is 512

total size of the hard disk is 512*25157789 + 4096*2815383 + 4096*4096567+ 4096*11006525 =about 80Gk usage size is 512*7427924 + 4096*861039 + 4096*16820 + 4096*5788717 =about 29G

Total HDD usage 29/80 *100% = 36.2%

Physical memory

Total RAM 65536*32754 = 2096256 KB, 2047.125M approximately 2G this number is about the same as the 1.3.6.1.2.1.25.2.2.0 result.

Used RAM 65536*13270 = 829M

Memory Utilization 829/2048

ory Utilization 829/2048 * 100% = 40.4%

Memory size per chopsticks/block: Hrstorageallocationunits,1.3.6.1.2.1.25.2.3.1.4,host-resources-mib,object

Memory used block/chopsticks size: Hrstorageused,1.3.6.1.2.1.25.2.3.1.6,host-resources-mib,object

Block/chopsticks size of CPU: Hrprocessorload,1.3.6.1.2.1.25.3.3.1.2,host-resources-mib,object

Windows OID uses SNMP for host information

Related Article:

​​Complete snmp installation, configuration, startup, and remote testing process on Ubuntu​​

​​Install and configure the snmp service in RedHatLinux​​


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:视频直播点播平台EasyDSS出现突发高访问导致直播中断,该如何处理?
下一篇:RestTemplate未使用线程池问题的解决方法
相关文章

 发表评论

暂时没有评论,来抢沙发吧~