Re: [tkined] Setting of TimeTicks

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 28 Jul 1998 08:52:06 +0200

>>>>> Frieda van Rooyen writes:

Frieda> How do I set an object of type TimeTicks in Scotty?

Frieda> When I read (get) the object is comes back as follow:-

Frieda> {1.3.6.1.4....... INTEGER {0d 0.00:01.50}}

Scotty believes the variable identified by the OID is of type
TimeTicks (because that is written down in the MIB) and shows the
value in TimeTicks format. The agent however sends the value encoded
as an INTEGER. Assuming the MIB is correct, I would argue that the
agent is broken.

Frieda> I then tried setting it as follow:-

Frieda> snmphandle set {{objectname.1 150} }

Frieda> and it gave me an error:-

Frieda> genErr 1 {1.3.6.1.4....... TimeTicks {0d 0.00:01.50}

This again looks like a broken agent. Scotty converts the value into a
TimeTicks varbind and the agent screws it up.

Frieda> On the router where I did the set I get an faulty encoding
Frieda> error.

Frieda> 1. Why is the get an INTEGER and the set TimeTicks?

I assume the router is broken.

Frieda> 2. What format is 0d 0.00:01.50 or what does 0d mean.

Zero days.

Frieda> 3. How do I specify a value of type TimeTicks within the set.

You should specify the TimeTicks value as a number (as you did above).
You can use the formatted version as well (e.g. {1d 17:24:35.32}) but
this format will be gone in scotty 3.0.X. Better use numbers.

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.