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 side is
based on SNMP's MIB concept.
> Unfortunately, I don't believe that there's an example of
> this approach in the Net-SNMP code base.
I realy in an example or more detailed help how to implement it. ASAP.
Kujtim Hyseni
> 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
> it into a 'netsnmp_pdu' structure
> - provide a routine to process this netsnmp_pdu request
> structure, and construct a response PDU
> - provide a routine to take a netsnmp_pdu structure, and
> encode it ready for sending over the network
>
> You can then use snmp_add_full() to register these three
> routines with the main agent framework.
> See agent/mibgroup/agentx/{subagent.c,protocol.c} for an
> example of this approach.
>
>
> Alternatively, if your protocol doesn't match SNMP sufficiently
> to fit into the netsnmp_pdu structure, then you can use the
> register_{read,write}fd() routines to read/send arbitrary data
> on specified sockets. See snmplib/fd_event_manager.c
> for details.
> Unfortunately, I don't believe that there's an example of
> this approach in the Net-SNMP code base.
>
> Dave
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders