Hi.  I have Net-SNMP v5.6.1 configured to generate engine IDs in the MAC 
format, using the snmpd.conf statement "engineIDType 3".  However, I've noticed 
some systems configured this way actually running with engineIDs in Net-SNMP's 
"random" format.  When I tried to debug this by restarting snmpd with more 
debug tokens, it returned to using the MAC format.

I noticed that the MAC address is obtained using socket() and ioctl() calls.  
Is it possible that these could fail, depending on what's happening on the 
processor, and the engineID default to random?  I didn't notice such logic in 
the code.  Are there other error scenarios that would lead to random format 
engineIDs?

Below are Wireshark trace snippets showing the same controller with a random 
engineID then the intended, MAC-based one.

Thanks in advance.

Gary Dunlap

Frame 123 (185 bytes on wire, 185 bytes captured)
...
Internet Protocol, Src: 10.134.100.10 (10.134.100.10), Dst: 10.134.1.9 
(10.134.1.9)
msgAuthoritativeEngineID: 80001F8880EB009929578E2E4E
1... .... = Engine ID Conformance: RFC3411 (SNMPv3)
Engine Enterprise ID: net-snmp (8072)
Engine ID Format: Reserved/Enterprise-specific (128): Net-SNMP Random
Engine ID Data: EB009929
Engine ID Data: Creation Time: Jul 26, 2011 03:52:23

Now:

Internet Protocol, Src: 10.134.100.10 (10.134.100.10), Dst: 10.134.1.9 
(10.134.1.9)
msgAuthoritativeEngineID: 80001F880300C0FFDB0659
1... .... = Engine ID Conformance: RFC3411 (SNMPv3)
Engine Enterprise ID: net-snmp (8072)
Engine ID Format: MAC address (3)
Engine ID Data: MAC address: DotHill_db:06:59 (00:c0:ff:db:06:59)


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to