07-01-2011 11:38 AM
Hello
I'm looking for the snmp oids on the size of the DRE partition as well as what's used.
Can anyone confirm if I have the correct SNMP string values?
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /swstore
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /state
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /local/local1
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /sw
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /local/local1/spool
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /obj1
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /dre1
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: /ackq1
HOST-RESOURCES-MIB::hrStorageDescr.9 = STRING: /plz1
HOST-RESOURCES-MIB::hrStorageDescr.101 = STRING: RAM
HOST-RESOURCES-MIB::hrStorageDescr.102 = STRING: Swap Space
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 253866
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 2031410
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 8633716
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 253866
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 253926
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 57389296
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 126967406 <--- Doesn't match with size
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 609024
HOST-RESOURCES-MIB::hrStorageSize.9 = INTEGER: 1828112
HOST-RESOURCES-MIB::hrStorageSize.101 = INTEGER: 12188284
HOST-RESOURCES-MIB::hrStorageSize.102 = INTEGER: 12582664
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 122273
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 50223
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 162604
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 181867
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 8206
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 37611
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 136461 <--- Doesn't match with INUSE
HOST-RESOURCES-MIB::hrStorageUsed.8 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageUsed.9 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageUsed.101 = INTEGER: 4206320
HOST-RESOURCES-MIB::hrStorageUsed.102 = INTEGER: 0
WAE-7341
Mounted file systems:
MOUNT POINT TYPE DEVICE SIZE INUSE FREE USE%
/swstore internal /dev/sda2 991MB 477MB 514MB 48%
/state internal /dev/sda3 7935MB 196MB 7739MB 2%
/local/local1 SYSFS /dev/sda6 33725MB 635MB 33090MB 1%
/sw internal /dev/sda1 991MB 710MB 281MB 71%
.../local1/spool PRINTSPOOL /dev/data1/spool 991MB 32MB 959MB 3%
/obj1 CONTENT /dev/data1/obj 224176MB 146MB 224030MB 0%
/dre1 CONTENT /dev/data1/dre 495966MB 533MB 495433MB 0%
/ackq1 internal /dev/data1/ackq 2379MB 1MB 2378MB 0%
/plz1 internal /dev/data1/plz 7141MB 0MB 7141MB 0%
07-01-2011 04:34 PM
Hi John,
It seems to be the correct OID but if you compare the SIZE/INUSE values of your device with the SNMP data, you'll see that the SNMP ones are 256 times the value in MB.
If you divide all of the input you see there by 256, you should have the correct data.
For instance:
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /dre1
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 126967406
126967406 / 256 = 495966.43
/dre1 CONTENT /dev/data1/dre 495966MB 533MB 495433MB 0%
Regards,
Nicolas
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide