Hi,
I am working on DLMOD Extension agent development. My agent is working
fine with the code generated by mib2c.scalar.conf for scalar attributes.
To fulfil some of my objective. I need to register only one handle
method for all the scalar. Is it possible??
int handle_HandMethod(netsnmp_mib_handler *handler,
netsnmp_handler_registration *reginfo,
netsnmp_agent_request_info *reqinfo,
netsnmp_request_info *requests)
{
switch(reqinfo->mode) {
case MODE_GET:
snmp_set_var_typed_value(requests->requestvb, ASN_INTEGER,
(u_char *) &data, sizeof((data)));
break;
default:
return SNMP_ERR_GENERR;
}
return SNMP_ERR_NOERROR;
}
Can I get the requested OID inside this function??, so that I can use
that OID to compare with all the scalar attibutes.
I tried With old API for scalar properties which registers only one
handle method, but in that case only get is working fine. For getNext I
am getting the same OID. Is it due to use of old API??
Thanks and Regards,
Sazid
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders