Re: [tkined] TimeTicks format

From: Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Date: Thu Jun 28 2001 - 11:44:01 MET DST


>>>>> philippe mounier writes:

philippe> I use scotty3.0.0. Is it possible to convert TimeTicks
philippe> value in format like version 2.1.10 ?

philippe> scotty2.1.10 snmp0 get sysUpTime.0 {1.3.6.1.2.1.1.3.0
philippe> TimeTicks {19d 19:23:44.23}}

philippe> scotty3.0.0 snmp get sysUpTime.0 {1.3.6.1.2.1.1.3.0
philippe> TimeTicks {1700245214}}

The format used in 2.1.10, although it reads nicely for humans, was
considered a bug, as it makes it hard to use the value in programs.
It is the job of the application which uses the Tnm extension to
render values appropriately. The 3.0.0 version only does the
formatting that is specified in MIBs and nothing else.

There were requests in the past to have a mechanism which allows
people to write formatting/scanning hooks in Tcl. But nobody ever
submitted patches for it that could go into the distribution.

/js

--
!! 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.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:27 MET