Re: [Agentx] Benefit of multiple sessions per sub-agent connection

"Randy Presuhn" <> Thu, 01 July 2010 21:40 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 761D43A6948 for <>; Thu, 1 Jul 2010 14:40:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: 0.158
X-Spam-Status: No, score=0.158 tagged_above=-999 required=5 tests=[AWL=0.157, BAYES_50=0.001]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id PfE9Hwow+PQi for <>; Thu, 1 Jul 2010 14:40:24 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 3E7D43A68BB for <>; Thu, 1 Jul 2010 14:40:24 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327;; b=VtzkAmnfxy2kDjcRLV1t4fl03BtYPghuaBkKAU5YBuhRhCY+ICdz42hmx485DMPK; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP;
Received: from [] (helo=oemcomputer) by with esmtpa (Exim 4.67) (envelope-from <>) id 1OURUp-0001oC-5t for; Thu, 01 Jul 2010 17:40:35 -0400
Message-ID: <001601cb1966$500d5240$6801a8c0@oemcomputer>
From: "Randy Presuhn" <>
To: <>
References: <>
Date: Thu, 1 Jul 2010 14:42:31 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-ELNK-Trace: 4488c18417c9426da92b9037bc8bcf44d4c20f6b8d69d888a91fc720532780356819e8eb4c795ae07a6ee960092aa2ce350badd9bab72f9c350badd9bab72f9c
Subject: Re: [Agentx] Benefit of multiple sessions per sub-agent connection
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SNMP Agent Extensibility <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 01 Jul 2010 21:40:25 -0000

Hi -

> From: "Julian Scheid" <>
> To: <>
> Sent: Thursday, July 01, 2010 6:07 AM
> Subject: [Agentx] Benefit of multiple sessions per sub-agent connection
> Could someone give a practical example of when a sub-agent would want
> to open more than one session per connection?

Examples that come to mind are when the subagent is functioning as a
gateway to some other subagent protocol, bridging to a transport
protocol not supported by the master agent implementation, or both.
I suppose it could come in handy with a connectionless subagent transport,
but that seems to me to be a bit of a stretch.  There might be other uses,
but I've been away from this stuff for a long time.
> I've written a sub-agent implementation whose code and API would be
> simpler if it would limit users to a single session per connection,

There really isn't much reason to expose session ID in a subagent API.
Assuming you have some kind of constructor that returns a session object,
the session ID would be private data that only the library, and not the
user code, would ever have to llok at.

> and I am wondering what benefits it would deprive them of by doing so.
> As you might guess, I'm hard pressed to come up with use cases myself
> -- I must be missing something.
> I'm not exactly an SNMP expert, my apologies if this is a silly question.
> Thanks in advance.

Not silly at all.  As I recall, this was a "borderline" feature of the protocol,
dating from a time when lots of things other than AgentX were in use,
and the need to be able to build ways to support legacy subagents was
a real concern.