Displaying DateAndTime type as index in OID
"Thomas Williams" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Using version 5.2.5, I am displaying a row in the ALARM-MIB::alarmActiveTable (RFC-3877) which uses a DateAndTime type as the 2nd key. The output from net-snmp doesn't appear to decode the DateAndTime type in either the 8 or 11 byte format correctly with the default output options. [tjw@typhoon net-snmp-5.2.5]$ snmptranslate -m ALARM-MIB 1.3.6.1.2.1.118.1.2.2.1.13.0.8.7.216.4.10.10.22.8.0.2 ALARM-MIB::alarmActiveModelPointer.""."........".2 Using the -OX option: [tjw@typhoon net-snmp-5.2.5]$ snmptranslate -OX -m ALARM-MIB 1.3.6.1.2.1.118.1.2.2.1.13.0.8.7.216.4.10.10.22.8.0.2 ALARM-MIB::alarmActiveModelPointer[STRING: ][STRING: 2008-4-10,10:22:8.0][2] (11 byte version of DateAndTime): [tjw@typhoon net-snmp-5.2.5]$ snmptranslate -m ALARM-MIB 1.3.6.1.2.1.118.1.2.2.1.13.0.11.7.216.4.10.10.22.8.0.45.2.0.2 ALARM-MIB::alarmActiveModelPointer.""."........-..".2 [tjw@typhoon net-snmp-5.2.5]$ snmptranslate -OX -m ALARM-MIB 1.3.6.1.2.1.118.1.2.2.1.13.0.11.7.216.4.10.10.22.8.0.45.2.0.2 ALARM-MIB::alarmActiveModelPointer[STRING: ][STRING: 2008-4-10,10:22:8.0,-2:0][2] Should the default output option work with the DateAndTime text convention as a key? I don't *think* my agent is generating the OID improperly although my testers don't like the net-snmp output enough to generate a couple of bugs against the agent. (net-snmp is the standard we test our agents against). I searched the archives and buglists but didn't run across anything along these lines. Thanks, -Tom Williams ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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