Windows OID uses SNMP for host information

Source: Internet
Author: User
Tags snmp disk usage

Reprinted from: http://blog.csdn.net/grpideas/article/details/38150173


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:
1. 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
2. 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
3. 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]
4. 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]
6. 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]
7. 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]
8. 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
The total size of the hard disk is 512*25157789 + 4096*2815383 + 4096*4096567+ 4096*11006525 =about 80G
Disk 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 * 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.