From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15573 invoked by alias); 29 Jan 2007 10:15:18 -0000 Received: (qmail 15564 invoked by uid 22791); 29 Jan 2007 10:15:17 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 29 Jan 2007 10:15:12 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1HBTXY-0002Ze-00; Mon, 29 Jan 2007 11:15:08 +0100 Date: Mon, 29 Jan 2007 10:15:00 -0000 To: Nelly PISON Cc: ecos-devel@sources.redhat.com Subject: Re: snmp agent : how does it work Message-ID: <20070129101508.GN4953@lunn.ch> References: <45BDC423.9010507@elios-informatique.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45BDC423.9010507@elios-informatique.fr> User-Agent: Mutt/1.5.13 (2006-08-11) From: Andrew Lunn X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2007-01/txt/msg00009.txt.bz2 On Mon, Jan 29, 2007 at 10:53:39AM +0100, Nelly PISON wrote: > Hello, > > I have to realize an SNMP agent on a board with ecos and the freeBSD > TCP/IP stack that already work fine > > 1 - does the ecos agent snmp work without problem ? > > 2 - I want to manage only 4 data to be read by a manager. I think it is > possible to do so without creating necessarily a MIB. You always need a MIB. > So in the user init function I want to declare them: which function can > be use? > I look for an equivalent to netsnmp_register_int_instance() that I > found in an example about SNMP > But this function doesn't exist in the ecos packages . Take a look at the existing agent MIB implementations. eg packages/net/snmp/agent/current/src/mibgroup/mibII/ip.c Andrew