snmp agent extension

2009-04-24 Thread anshul mittal
Hi all I have been assigned a task of extending the snmp agent.Mostly I have to do it in net snmp in c language. can anybody give an idea what exactly is agent extension and how to go about it. Regards Anshul

Re: Agent Extension

2007-11-29 Thread kujtim . hyseni
Hi, attaching to arbitrary port works fine. The problem requires implementing snmp_add_full with respective routines, which doesn't work. Here is the code (for transport) ptp_tr = netsnmp_transport_open_server("agentx", "ptpext"); ... (for session) main_session = snmp_add_full(&def_sess, ptp_tr,

Re: Agent Extension

2007-11-29 Thread Dave Shield
On 28/11/2007, <[EMAIL PROTECTED]> wrote: > main_session = snmp_add_full(&def_sess, ptp_tr, NULL, ptpagentx_parse, >NULL, NULL, NULL, ptpagentx_checkpacket, NULL); The seventh parameter is the routine called to encode the request into a data packet - ready for sending out over the network. If

Re: Agent Extension

2007-11-14 Thread Dave Shield
On 13/11/2007 <[EMAIL PROTECTED]> wrote: > And how is the procedure of integrating this to the agent. Just by calling > the mentioned routines or should provide the adding by ./configure before > installation too. Fundamentally, all you need to do is add the relevant code files to the build proces

Re: Agent Extension

2007-11-13 Thread kujtim . hyseni
And how is the procedure of integrating this to the agent. Just by calling the mentioned routines or should provide the adding by ./configure before installation too. Please explain the steps as follow. Kujtim > On 26/10/2007, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: >> there was nothing h

Re: agent extension problem

2007-11-06 Thread Dave Shield
On 02/11/2007, wqs <[EMAIL PROTECTED]> wrote: > I've written a MIB and used mib2c to generate the c template. > After modify,configure,make,make install,I ran the command: >"snmpwalk -m ALL -c public -v2c localhost sysConfigMib" , > and gotSYS-CONFIG-MIB::sysConfigMib = > No more varia

agent extension problem

2007-11-01 Thread wqs
I've written a MIB and used mib2c to generate the c template.After modify,configure,make,make install,I ran the command: “snmpwalk -m ALL -c public -v2c localhost sysConfigMib” ,and got SYS-CONFIG-MIB::sysConfigMib = No more variables left in this MIB View (It is past the end of the MIB t

Re: Agent Extension

2007-10-29 Thread Dave Shield
On 26/10/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > there was nothing helpful in snmplib/fd_event_manager.c > Since the routines are original and there is no example, please send the > simplest example, where it implements register_{read,write}fd(). > I must implement sending the (new pro

Re: Agent Extension

2007-10-29 Thread kujtim . hyseni
Hi Dave, there was nothing helpful in snmplib/fd_event_manager.c Since the routines are original and there is no example, please send the simplest example, where it implements register_{read,write}fd(). I must implement sending the (new protocol!) messages via agent. Waiting for answer! Kujtim

Re: Agent Extension

2007-10-03 Thread kujtim . hyseni
Hi again and thanks for answering. > Alternatively, if your protocol doesn't match SNMP sufficiently > to fit into the netsnmp_pdu structure, then you can use the ... the protocol is totally different from SNMP - PTP (Precision Time Protocol) defined by IEEE-1588 standard. It's data management sid

Re: Agent Extension

2007-09-25 Thread Dave Shield
On 24/09/2007, <[EMAIL PROTECTED]> wrote: > Hi, > > how to extent the agent to support new user defined protocol, other than > 1, 2c and 3. There are two possibilities. If the new protocol is similar to SNMP, then you need to: - provide a routine to take an incoming request, and parse

Agent Extension

2007-09-25 Thread kujtim . hyseni
Hi, how to extent the agent to support new user defined protocol, other than 1, 2c and 3. Thnx. Kujtim Hyseni - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.a

Mib Parsing from agent extension

2007-05-17 Thread Erik Earle
if I use the mib parsing code in mib_api within an dlmod extension, will that affect it's use elsewhere in the main agent? Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sim

Re: NET-SNMP Agent Extension

2006-08-18 Thread Thomas Anders
timon wrote: > ..I'm using the the mib files from: > > http://www.nagiosexchange.org/typo3...gins-cpq.tar.gz > > ..convert them in .c and .h files with mib2c > env MIBS=ALL mib2c -c /usr/local/share/snmp/mib2c.scalar.conf -i compaq > reconfigureing the Net-SNMP instalation with the new mo

NET-SNMP Agent Extension

2006-08-18 Thread timon
hi, I'm trying to monitor the hardware of HP PRoLiant DL380 servers with FreeBSD. For that I'm using NEt-SNMP -the only one that runs on FreeBSD for that purposes.The problem is that Net-SNMP does NOT include the branch "compaq" under the branch iso.org.dod.internet.private.enterprises, that is

Re: Agent Extension

2005-04-08 Thread John Pfaff
Dave Shield actually answered this another thread (agent example puzzle) and it turned out to be access control.On Apr 8, 2005 12:08 PM, Robert Story <[EMAIL PROTECTED]> wrote:On Mon, 4 Apr 2005 12:52:30 -0400 John wrote:JP> snmpget -c public -v 1 localhost nstAgentModuleObject.0JP> Error in packet

Re: Agent Extension

2005-04-08 Thread Robert Story
On Mon, 4 Apr 2005 12:52:30 -0400 John wrote: JP> snmpget -c public -v 1 localhost nstAgentModuleObject.0 JP> Error in packet JP> Reason: (noSuchName) There is no such variable name in this MIB. JP> Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0 Did you configure the nstAgentModuleOb

Re: Agent Extension

2005-04-04 Thread John Pfaff
quot; will > > help you with command related stuff. > > > > Bernhard > > > > > -Original Message----- > > > From: John Pfaff [mailto:[EMAIL PROTECTED] > > > Sent: Montag, 04. April 2005 16:57 > > > To: [email protected]

Re: Agent Extension

2005-04-04 Thread John Pfaff
MIBS=ALL"? "man snmp.conf" and "man snmpcmd" will > help you with command related stuff. > > Bernhard > > > -Original Message- > > From: John Pfaff [mailto:[EMAIL PROTECTED] > > Sent: Montag, 04. April 2005 16:57 > > To: net-sn

Re: Agent Extension

2005-04-04 Thread Dave Shield
On Mon, 2005-04-04 at 02:08, John Pfaff wrote: > I generated my code with mib2c -c mib2c.int_watch.conf my-mib.txt. > I do ./configure --with-mib-modules="my-mib" I see .o files, so I > know it's getting compiled, but when I do snmpget all I get is > noSuchName. Have you tried working through th

RE: Agent Extension

2005-04-04 Thread Penz, Bernhard
can get the data. > > > > > > -res > > > > > > - Original Message - > > > From: "John Pfaff" <[EMAIL PROTECTED]> > > > To: > > > Sent: Sunday, April 03, 2005 6:08 PM > > > Subject: Agent Extension > > >

Re: Agent Extension

2005-04-04 Thread John Pfaff
Apr 4, 2005 1:16 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Have you included MIB file to the right place? try use OID number to see if > > you can get the data. > > > > -res > > > > - Original Message - > > From: "John Pfaff" &l

Re: Agent Extension

2005-04-04 Thread John Pfaff
e data. > > -res > > - Original Message - > From: "John Pfaff" <[EMAIL PROTECTED]> > To: > Sent: Sunday, April 03, 2005 6:08 PM > Subject: Agent Extension > > > I'm sure there's probably a step I'm missing, but I can't figure out

Re: Agent Extension

2005-04-03 Thread res0d1zz
Have you included MIB file to the right place? try use OID number to see if you can get the data. -res - Original Message - From: "John Pfaff" <[EMAIL PROTECTED]> To: Sent: Sunday, April 03, 2005 6:08 PM Subject: Agent Extension I'm sure there's probably

Agent Extension

2005-04-03 Thread John Pfaff
I'm sure there's probably a step I'm missing, but I can't figure out what it is. I generated my code with mib2c -c mib2c.int_watch.conf my-mib.txt. I do ./configure --with-mib-modules="my-mib" I see .o files, so I know it's getting compiled, but when I do snmpget all I get is noSuchName. I can q

Re: Agent Extension: help

2004-09-14 Thread Coders
On 14 Sep 2004 13:00:41 +0530 Divakar wrote: DY> I'm working on QNX 4.25 and TCP/IP 5.0. DY> We use Watcom 10.6 compiler and we recently got the source code of snmp DY> from QSS. Then you will have to contact them for support. We only support Net-SNMP here. -- Robert Story; NET-SNMP Junkie

Agent Extension: help

2004-09-14 Thread Divakar Yadavalli
Hello All, I'm working on QNX 4.25 and TCP/IP 5.0. We use Watcom 10.6 compiler and we recently got the source code of snmp from QSS. We have got only three directories services, lib and utils. My objective is to provide agent extension for a MIB got from RFC 1493. I would like your

Re: agent extension MIB

2004-06-09 Thread Wes Hardaker
> On Wed, 09 Jun 2004 10:35:25 +0100, Dave Shield <[EMAIL PROTECTED]> said: Dave> On balance, I'd still prefer to change the behaviour immediately, Dave> but I can well understand the reasons to proceed more cautiously. Dave> Would you be happy with deprecating this in 5.2 and dropping it in 5

RE: agent extension MIB

2004-06-09 Thread Bruce Shaw
I'm still here. I'm just kinda stumped (and busy) at the moment. >Majority support? Hah! >There seems to be a general lack of interest in any aspect of the development of this package at the moment :-( >I'm going through another phase of wondering how long we'll be able to continue to keep it g

Re: agent extension MIB

2004-06-09 Thread Coders
On Wed, 09 Jun 2004 10:35:25 +0100 Dave wrote: DS> > My proposal: DS> > DS> > 1) new token for new mib ('extend'?) DS> > 2) document new token in man page. Mark old option as deprecated DS> > 3) optionally log warning at startup for old token DS> > 4) in a future release, drop old token su

Re: agent extension MIB

2004-06-09 Thread Dave Shield
Robert> I'd say there should be a configure option to choose the new/old Robert> style implementation. Dave> configure --with-mib-modules=ucd-snmp/extensible Robert> I assume that this would enable the old-style? Yup Robert> And the new style has a new name? Or is in a new directory?

Re: agent extension MIB

2004-06-08 Thread Coders
On Tue, 08 Jun 2004 09:58:23 +0100 Dave wrote: DS> It's clearly premature for us to stop shipping these files with DS> the source distribution. What I'm really suggesting is to DS> omit this module from the default configuration. DS> It would still be available, but you'd have to ask for it expl

Re: agent extension MIB

2004-06-08 Thread Dave Shield
DS> The reason I'm mentioning it here, is to float the idea of dropping DS> the 'ucd-snmp/extensible' module completely - as from v5.2 RS> Gack! I don't like the sound of that at all! OK - that was probably badly phrased (and badly thought through). It's clearly premature for us to stop shipping

Re: agent extension MIB

2004-06-07 Thread Coders
On Mon, 07 Jun 2004 17:00:09 +0100 Dave wrote: DS> The reason I'm mentioning it here, is to float the idea of dropping DS> the 'ucd-snmp/extensible' module completely - as from v5.2 Gack! I don't like the sound of that at all! DS> The advantage of doing so is that it avoids the need to have two D

Re: agent extension MIB

2004-06-07 Thread Dave Shield
Those of you who follow activity on the CVS main branch may have noticed that I've been working on a re-implementation of the old UCD-SNMP-MIB::extTable - taking the same basic idea but making it somewhat more flexible. Up to now, this has been a completely new MIB (NET-SNMP-EXTEND-MIB), but I've