Die Abfrage der HD Groesse mit SNMP bei einem Windows Server2008r2 System liefert folgende Werte:
snmpbulkwalk -v 2c -c public <IP-Address> .1.3.6.1.2.1.25.2.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: C:\ Label: Serial Number 2f04275b
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: D:\ Label:Data_int Serial Number b291f5cb
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: E:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: F:\ Label:Data_ext Serial Number 9e94b203
MaxUnits pro Laufwerk:
snmpbulkwalk -v 2c -c public <IP-Address> .1.3.6.1.2.1.25.2.3.1.5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 146481397
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 1025516031
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: -1950888193
Werte = Allocation units
Groesse der units:
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HD Groesse = units * 4096
c: 599.987.802.112 Bytes = 558 GB
d: 4.200.513.662.976 Bytes = 3,82 TB
e: DVD
f: error !
Bei Laufwerk F: kommt der „BUG“ das die Variable nur vom Format INTEGER ist.
Groesse des Laufwerkes F: gemaess Windows 9.601.348.005.888 Bytes = 8,73 TB
Continue reading Post ID 12556