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
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,
; 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
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;
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
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
>>>
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
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
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
>>
>>
>&
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
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
> 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
12 matches
Mail list logo