Help Requested to know the format of DiskSpace , using snmpwalk
John Joseph <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
I am trying to find the disk space using snmpwalk
while I do snmpwalk I get the results as
john@john snmp]$ snmpwalk 192.168.20.99 -c public
HOST-RESOURCES-MIB::hrStorageSize
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 483660
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 483660
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 1076312
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER:
12672022
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 0
The "HOST-RESOURCES-MIB::hrStorageSize.4 =
INTEGER: 12672022" gives the value of the disk size
for the root
I do not have any idea , in which format this
result is displayed , and what should I do to convert
it to GB
Guidance requested
Thanks
Joseph
Note: below is the result of "df" and "snmpwalk"
command which I had given ,
[john@john snmp]$ df
Filesystem 1K-blocks Used Available
Use% Mounted on
/dev/hda2 50688088 30078400 18034872
63% /
none 241828 0 241828
0% /dev/shm
[john@john snmp]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 49G 29G 18G 63% /
none 237M 0 237M 0% /dev/shm
[john@john snmp]$ snmpwalk 192.168.20.99 -c public
HOST-RESOURCES-MIB::hrStorageSize
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 483660
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 483660
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 1076312
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER:
12672022
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 0
[john@john snmp]$ snmpwalk 192.168.20.99 -c public
HOST-RESOURCES-MIB::hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Memory
Buffers
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real
Memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Swap
Space
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /sys
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING:
/proc/bus/usb
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING:
/var/lib/nfs/rpc_pipefs
[john@john snmp]$
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users