I Got these Fuctions after running mib2c tool with
mib2c.scalar.conf file
ipForwarding.c and *.h

init _ipForwarding(void)
{
 ----one DEBUG message---

 and
 netsnmp_create_handler_registration (-----,---,---,---);
 }



int
handle_ipForwarding
(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo
,netsnmp_agent_request_info *reqinfo,
netsnmp_request_info *requests)

MODE_GET
MODE_SET_RESERVE1
MODE_SET_RESERVE2
MODE_SET_FREE
MODE_SET_ACTION
MODE_SET_COMMIT
MODE_SET_UNDO
}

=========================
after running mib2c -c mibc.scalar_implement.conf  $1
i got
myScalar_implement *.c and *.h files

 myScalar_implement.c file (ipForwarding)
which is called with GET and SET Routines
and get_scalar_ipforwarding ()
is coded with snmp_DbGetValue by which we get an int value which
indicates SUCESS or FAILURE........
since scalar is an instance by which we have to fetch single variable from
database
so is der an instance so that i can call some other function. so THAt i can
sucessfully implement
a Scalar Variable to My Device

Reply Me GUYS

Thanks
Mak
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to