SNMP Manager Programmer's Guide

Programming Examples
SNMP Manager Programmer’s Guide–134249
2-113
SNMPHOST
SNMPHOST
SNMPHOST retrieves and displays information from the hrDevice group of the Host
Resources MIB defined by RFC 1514 using Get and GetNext packets encoded for UDP
or IPC communication. This group, which is supported by the Host Resources
Subagent, contains tables describing system devices:
iso (1)
org (3)
dod (6)
internet (1)
mgmt (2)
mib-2 (1)
host (25)
hrDevice (3)
hrDeviceTable (2)
hrProcessorTable (3)
hrNetworkTable (4)
hrPrinterTable (5)
hrDiskStorageTable (6)
hrPartitionTable (7)
hrFSTable (8)
Figure 2-3
shows the tables from which SNMPHOST retrieves information; objects
accessed are highlighted in bold type. Each entry in the hrDeviceTable describes a
processor, a network device, a printer, a disk, a partition, and a file system on a host.
Each hrDeviceTable entry has an index (hrDeviceIndex) linking it to an entry in
hrProcessorTable, hrPrinterTable, or hrDiskStorageTable when the device is a processor,
printer, or disk, respectively.
Figure 2-3. MIB Tables Accessed by SNMPHOST
208
hrDeviceEntry
hrProcessorEntry
hrPrinterEntry
hrDiskStorageEntry
hrDeviceIndex
hrDeviceType
hrDeviceDescr
hrDeviceID
hrDeviceStatus
hrDeviceErrors
hrProcessorFrwID
hrProcessorLoad
hrPrinterStatus
hrPrinterDetectedErrorState
hrDiskStorageAccess
hrDiskStorageMedia
hrDiskStorageRemoveble
hrDiskStorageCapacity
hrDeviceTable
hrProcessorTable
hrPrinterTable
hrDiskStorageTable