SNMP Commands
The following explains some commands to get and walk SNMP mib trees.
Note in the cases below we are using SNMP Version 1 commands to communicate based on community string.
See also "How to Setup SNMP on Sco"
1. Walk the SNMP Tree
# snmpwalk -v1 -c public server
(i.e. use version 1 snmp with the public community string to display the entire tree on the server "server")
2. Specifically find filesystem labels and sizes
(Note your OID, 1.3.6.1.2.1.25.2.3.1.3 may be different, best to do an snmpwalk and find the OID your after)
# snmpwalk -v1 -c public server 1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Filesystem /dev/boot
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Filesystem /dev/root
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Filesystem /dev/u
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: Filesystem /dev/u2
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Filesystem /dev/v
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: swap
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: queues
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: streams msg blocks
HOST-RESOURCES-MIB::hrStorageDescr.9 = STRING: streams data blocks
# snmpwalk -v1 -c public server 1.3.6.1.2.1.25.2.3.1.5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 19968
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 2999910
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 9210982
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 19999948
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 20284824
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 1538000
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 1704
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 3855
HOST-RESOURCES-MIB::hrStorageSize.9 = INTEGER: 3914872
use snmpget to actually retrieve data, like what mrtg would do
# snmpget -v1 -c public server 1.3.6.1.2.1.25.2.3.1.6.2
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 1878528
other Linux Related Tips...