> Because the hrDeviceTable contains entries for a wide variety
> of different types of device, the code for reporting the status
> and error count is very device-specific.
>   So the code will look for a device-specific hook routine,
> and if that's not provided for a particular type of device, it
> will skip the instance altogether.

Reading the MIB, and maybe I'm missing something here, it doesn't
seem like this OID is optional.  In my interpretation, if the hook
is missing, the value returned should be 'unknown(1)'.

> Checking the code, it's only the network interface and printer
> devices that support both of these, and the processor device
> only supports hrDeviceStatus.

What I am seeing is that on my SuSE Intel box:
 * Rows with hrDeviceTypes of hrDevicePrinter & hrDeviceNetwork
   show valid hrDeviceStatus & hrDeviceErrors
 * Don't have a row with an hrDeviceType of hrDeviceProcessor
   (maybe the Intel box is not playing nice when it comes to 
   divulging processor info)

On my SuSE RISC box:
 * Row with hrDeviceType of hrDevicePrinter has row for
   hrDeviceStatus & hrDeviceErrors
 * Rows with hrDeviceType of hrDeviceNetwork do not show any
   rows for hrDeviceStatus & hrDeviceErrors (possibly no hooks,
   but seems like a bug)
 * Row with hrDeviceType of hrDeviceProcessor does not have
   a corresponding row for hrDeviceStatus (seems like bug as per
   your comments above)

In re-reading my note, it sounds a bit confusing even though I 
know what's going on, so I am cutting and pasting the hrDevice
table dumps here for clarification.

Thanks for any help on this matter.

DUMP FROM INTEL BOX (ALL'S WELL ON THIS BOX, EXCEPT NO PROC ROW):
---------------------------------------------------------
ccantu:/work/bld/console/snmp/config ==>Dump hrDevice
hrDeviceIndex.1 = 1
hrDeviceIndex.1025 = 1025
hrDeviceIndex.1026 = 1026
hrDeviceIndex.1027 = 1027
hrDeviceIndex.1536 = 1536
hrDeviceIndex.1538 = 1538
hrDeviceType.1 = hrDevicePrinter     <-------------|
hrDeviceType.1025 = hrDeviceNetwork  )
hrDeviceType.1026 = hrDeviceNetwork  >-------------|
hrDeviceType.1027 = hrDeviceNetwork  )
hrDeviceType.1536 = hrDeviceDiskStorage
hrDeviceType.1538 = hrDeviceDiskStorage
hrDeviceDescr.1 = My Printer
hrDeviceDescr.1025 = network interface lo
hrDeviceDescr.1026 = network interface eth0
hrDeviceDescr.1027 = network interface sit0
hrDeviceDescr.1536 = ST380011A
hrDeviceDescr.1538 = HL-DT-ST RW/DVD GCC-4480B
hrDeviceID.1 = ibm.9.2.3.63.6
hrDeviceID.1025 = zeroDotZero
hrDeviceID.1026 = zeroDotZero
hrDeviceID.1027 = zeroDotZero
hrDeviceID.1536 = zeroDotZero
hrDeviceID.1538 = zeroDotZero
hrDeviceStatus.1 = down           <----------------|
hrDeviceStatus.1025 = running     )
hrDeviceStatus.1026 = running     >----------------|
hrDeviceStatus.1027 = down        )
hrDeviceErrors.1 = 0           <----------------|
hrDeviceErrors.1025 = 0        )
hrDeviceErrors.1026 = 0        >----------------|
hrDeviceErrors.1027 = 0        )
hrNetworkIfIndex.1025 = 1
hrNetworkIfIndex.1026 = 2
hrNetworkIfIndex.1027 = 3
hrPrinterStatus.1 = other
hrPrinterDetectedErrorState.1 = "00 00 "
hrDiskStorageAccess.1536 = readWrite
hrDiskStorageAccess.1538 = readWrite
hrDiskStorageMedia.1536 = unknown
hrDiskStorageMedia.1538 = unknown
hrDiskStorageRemoveble.1536 = false
hrDiskStorageRemoveble.1538 = true
hrDiskStorageCapacity.1536 = 78156288 KBytes
hrDiskStorageCapacity.1538 = 0 KBytes

DUMP FROM RIST BOX (ALL SORTS OF CALAMITY):
-----------------------------------------------------
hrDeviceIndex.1 = 1
hrDeviceIndex.768 = 768
hrDeviceIndex.1025 = 1025
hrDeviceIndex.1026 = 1026
hrDeviceIndex.1027 = 1027
hrDeviceIndex.1028 = 1028
hrDeviceIndex.1029 = 1029
hrDeviceIndex.1536 = 1536
hrDeviceIndex.1552 = 1552
hrDeviceIndex.1553 = 1553
hrDeviceIndex.3072 = 3072
hrDeviceType.1 = hrDevicePrinter
hrDeviceType.768 = hrDeviceProcessor <--- HEY I DIDN'T HAVE THIS BEFORE
hrDeviceType.1025 = hrDeviceNetwork
hrDeviceType.1026 = hrDeviceNetwork
hrDeviceType.1027 = hrDeviceNetwork
hrDeviceType.1028 = hrDeviceNetwork
hrDeviceType.1029 = hrDeviceNetwork
hrDeviceType.1536 = hrDeviceDiskStorage
hrDeviceType.1552 = hrDeviceDiskStorage
hrDeviceType.1553 = hrDeviceDiskStorage
hrDeviceType.3072 = hrDeviceCoprocessor
hrDeviceDescr.1 = My Printer
hrDeviceDescr.768 = An electronic chip that makes the computer work. <--- 
INTERESTING
hrDeviceDescr.1025 = network interface lo
hrDeviceDescr.1026 = network interface tunl0
hrDeviceDescr.1027 = network interface eth0
hrDeviceDescr.1028 = network interface eth1
hrDeviceDescr.1029 = network interface sit0
hrDeviceDescr.1536 = HL-DT-ST CD-ROM GCR-8482B
hrDeviceDescr.1552 = SCSI disk (/dev/sda)
hrDeviceDescr.1553 = SCSI disk (/dev/sdb)
hrDeviceDescr.3072 = Guessing that there's a floating point co-processor
hrDeviceID.1 = ibm.9.2.3.63.5
hrDeviceID.768 = zeroDotZero
hrDeviceID.1025 = zeroDotZero
hrDeviceID.1026 = zeroDotZero
hrDeviceID.1027 = zeroDotZero
hrDeviceID.1028 = zeroDotZero
hrDeviceID.1029 = zeroDotZero
hrDeviceID.1536 = zeroDotZero
hrDeviceID.1552 = zeroDotZero
hrDeviceID.1553 = zeroDotZero
hrDeviceID.3072 = zeroDotZero
hrDeviceStatus.1 = down   <---- THESE OIDS .1 ARE FOR THE PRINTER ROW
hrDeviceErrors.1 = 0      <---- NOTICE THERE ARE NO OIDS FOR THE NICS
                             ** IS THIS A BUG IN THE HARDWARE DEVICE 
DRIVERS **
                              * OR IN NET-SNMP, OR IS IT WORKING AS 
DESIGNED *
hrNetworkIfIndex.1025 = 1
hrNetworkIfIndex.1026 = 2
hrNetworkIfIndex.1027 = 3
hrNetworkIfIndex.1028 = 4
hrNetworkIfIndex.1029 = 5
hrPrinterStatus.1 = other
hrPrinterDetectedErrorState.1 = "02 00 "
hrDiskStorageAccess.1536 = readWrite
hrDiskStorageAccess.1552 = readWrite
hrDiskStorageAccess.1553 = readWrite
hrDiskStorageMedia.1536 = unknown
hrDiskStorageMedia.1552 = unknown
hrDiskStorageMedia.1553 = unknown
hrDiskStorageRemoveble.1536 = true
hrDiskStorageRemoveble.1552 = false
hrDiskStorageRemoveble.1553 = false
hrDiskStorageCapacity.1536 = 0 KBytes
hrDiskStorageCapacity.1552 = 35548320 KBytes
hrDiskStorageCapacity.1553 = 35548320 KBytes



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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

Reply via email to