RE: [tkined] How to get the engineID?

From: Sanapoori, Hari (
Date: Tue Apr 04 2000 - 17:01:16 MET DST


        I tried the way you mentioned in your email. The output of the
        catch {$s getnext 1.3} is

        noResponse 0 {}

        But, According to books, we need to send an empty request with
        no user name, no variable bindings and noAuth/noPriv. Then the
        agent will return the report with engineID and other stuff.

        How to do that....? I am stuck at this level.... I want to
        know whether the latest scotty package supports the discover of
        SNMPv3 Engine ID. If not what is the possible date we can get the

        If you have any work-arounds for this, Pls let me know...



-----Original Message-----
From: Juergen Schoenwaelder []
Sent: Tuesday, April 04, 2000 3:41 AM
To: Sanapoori, Hari
Subject: Re: [tkined] How to get the engineID?

>>>>> Sanapoori, Hari writes:

Hari> When I try to get some mib information from agent, there is an
Hari> error message from agent saying no user for the specific engine
Hari> ID. The engine ID passed is empty. I hope scotty has to detect
Hari> the engine ID before sending the get/set/getnext or any possible
Hari> PDU to the snmpv3 agent. At present it is not discovering the
Hari> engineID.

It some sort of discovers the engineID, but it reports an error the
first time. The reasons here are some internals. (The previous USEC
was patching the right "engineID" into the packet once a report was
received. This patching does not work with SNMPv3 since it does not
have a fixed size engineID at a fixed place in the packet.) So right
now, the simplest solution is to do a dummy get in a catch command:

     set s [Tnm::snmp generator -version SNMPv3 -address xxxx]
     catch {$s getnext 1.3}
     # your code goes here

But of course, this dummy catch should go away and these things should
be handled internally.


Juergen Schoenwaelder      Technical University Braunschweig
<>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:>

-- !! 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 <>. !! See for more information.

This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:39 MET