RE: Newbie question: writing a simple agent

2007-08-10 Thread Graeme Wilson
following Debug tokens "-Dagent,handler". G > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 09 August 2007 18:35 > To: Graeme Wilson > Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: Newbie question: writing a simple

RE: Newbie question: writing a simple agent

2007-08-09 Thread Milan_Tvarozek
t; -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: 09 August 2007 16:09 >> To: Graeme Wilson >> Cc: net-snmp-users@lists.sourceforge.net >> Subject: RE: Newbie question: writing a simple agent >> >> >> Hello Graeme,

RE: Newbie question: writing a simple agent

2007-08-09 Thread Graeme Wilson
; Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: Newbie question: writing a simple agent > > Hello Graeme, > > thanks for your prompt reply. > > netsnmp_register_handler( reg ) is "hidden" in > > printf("returned=%d\n", netsnmp_register_handler(reg)); &g

RE: Newbie question: writing a simple agent

2007-08-09 Thread Milan_Tvarozek
ile(keep_running) { agent_check_and_process(1); /* 0 == don't block */ >> printf("mainloop\n"); } >> >> >> /* at shutdown time */ >> netsnmp_unregister_handler(reg); snmp_shutdown("ippc agent"); >> SOCK_CLEANUP; >> >> >> return 0;

RE: Newbie question: writing a simple agent

2007-08-09 Thread Graeme Wilson
August 2007 15:43 > To: Graeme Wilson > Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: Newbie question: writing a simple agent > > Hello Graeme, > > sorry for bothering you again. > > I have tried to merge your code with MFD code. I am obviously > doing some

RE: Newbie question: writing a simple agent

2007-08-09 Thread Milan_Tvarozek
dler_registration_create( "GenericHandler", >>> handler, root_oid, OID_LENGTH(root_oid), 0 ); >>> >>> netsnmp_register_handler( reg ); >>> >>> >>> >>> /* Generic function which will be called for all OIDs below >>>

RE: Newbie question: writing a simple agent

2007-08-08 Thread Graeme Wilson
process) - etc etc Cheers Graeme > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 08 August 2007 14:47 > To: Graeme Wilson > Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: Newbie question: writing a simple agent > > Hell

RE: Newbie question: writing a simple agent

2007-08-08 Thread Milan_Tvarozek
code to process the 'requests' argument */ ret = > myData->getNextData( requests ); break; default: > /* we should never get here in my code */ > iRet = SNMP_ERR_GENERR; break; } > return ret; } > > > > >> -Original Message- >> From: [EMA

RE: Newbie question: writing a simple agent

2007-08-08 Thread Milan_Tvarozek
gt;> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of [EMAIL PROTECTED] >> Sent: 08 August 2007 06:51 >> To: Mike Ayers >> Cc: net-snmp-users@lists.sourceforge.net >> Subject: RE: Newbie question: writing a simple agent >> >> >&

RE: Newbie question: writing a simple agent

2007-08-08 Thread Graeme Wilson
half Of [EMAIL PROTECTED] > Sent: 08 August 2007 06:51 > To: Mike Ayers > Cc: net-snmp-users@lists.sourceforge.net > Subject: RE: Newbie question: writing a simple agent > > Hello Mike, > > thanks for replying to my question. > > I understand that a standard approach is

RE: Newbie question: writing a simple agent

2007-08-07 Thread Milan_Tvarozek
Hello Mike, thanks for replying to my question. I understand that a standard approach is to register the agent for a range of OISs and to let the agent to be OID aware while the other process should take care of the underlaying data. However, I was asked to write an agent that would NOT be OID-a

RE: Newbie question: writing a simple agent

2007-08-07 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > The agent itself will not be aware of individual OIDs and > their meaning. > This will be done by the other process that also holds the > actual data. This is a bit of a design problem as stated