Re: [tkined] DateAndTime textual convention not used?

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 7 Dec 1998 00:00:59 +0100

>>>>> Matthew Levine writes:

Matthew> In the CABLE-DEVICE-MIB.mib which can be found in the public
Matthew> area of www.cablemodem.com (or I can forward it to someone on
Matthew> request), there is this object:

Matthew> docsDevDateTime OBJECT-TYPE SYNTAX DateAndTime MAX-ACCESS
Matthew> read-write STATUS current DESCRIPTION "The date and time,
Matthew> with optional timezone information." ::= { docsDevBase 2 }

Matthew> Here is the result using getone from SNMP Research
Matthew> International (nevermind the error msg): % getone -v1
Matthew> 10.0.0.10 public 1.3.6.1.3.83.1.1.2.0 GetSNMPPort: no snmp
Matthew> entry in /etc/services; at line 211 in file getport.c
Matthew> experimental.83.1.1.2.0 = FRI DEC 04 16:13:06 1998

Note, the format returned by the SNMP Research utility is not the
format of DateAndTime as defined in RFC 1903. I think that the SNMP
code from SNMP Research is actually not capable to apply arbitrary
DISPLAY-HINTs.

Matthew> Now the result from scotty: % $r get docsDevDateTime.0
Matthew> {1.3.6.1.3.83.1.1.2.0 {OCTET STRING}
Matthew> 18002-73-32,68:69:67.32,052:324954584951585056324957575610}

This is funny. Scotty applies the DISPLAY-HINT, but it returns some
interesting results. Here is what I think has happened: The agent
returns the ASCII octets "FRI DEC 04 16:13:06 1998" - thus violating
RFC 1903. The SNMP Research tool simply displays the received octets
(because it does not know how to do better). Scotty tries to interpret
the value and screws up because the agent is broken.

Matthew> Why did Scotty not apply the textual convention and how can I
Matthew> get it to do so?

Scotty is doing fine. The agent you are using is broken.

Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3289)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.