[tkined] DateAndTime textual convention not used?

Matthew Levine (mlevine@cisco.com)
Fri, 04 Dec 1998 16:22:14 -0800

Hi,

I'm new to the list so I apologize if this question has been asked
before.

The basic gist of this is I have an object whose textual convention is
not being applied. How can I get the textual convention to be applied?

Now the background:

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

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

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

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

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

For additional reference, here's the DateAndTime textual convention from
rfc1903.tc:

DateAndTime ::= TEXTUAL-CONVENTION
DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
STATUS current
DESCRIPTION
"A date-time specification.

field octets contents range
----- ------ -------- -----
1 1-2 year 0..65536
2 3 month 1..12
3 4 day 1..31
4 5 hour 0..23
5 6 minutes 0..59
6 7 seconds 0..60
(use 60 for leap-second)
7 8 deci-seconds 0..9
8 9 direction from UTC '+' / '-'
9 10 hours from UTC 0..11
10 11 minutes from UTC 0..59

For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be
displayed as:

1992-5-26,13:30:15.0,-4:0

Note that if only local time is known, then timezone
information (fields 8-10) is not present."
SYNTAX OCTET STRING (SIZE (8 | 11))

Thanks,
Matthew

-- 
---
------
Matthew Levine
Quality Assurance (Global Alliances)
Cisco Systems, Santa Cruz	http://www.cisco.com/
mlevine@cisco.com
--
!! 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.