------------------ Original ------------------
From: "Dave Shield"<d.t.shi...@liverpool.ac.uk>;
Date: Wed, Jan 27, 2010 05:23 PM
To: "Alexander King"<chenyapu1...@qq.com>;
Cc: "net-snmp-users"<net-snmp-users@lists.sourceforge.net>;
Subject: Re: when snmpwalk query my private trap OID the snmpd routine auto
termination
2010/1/27 Alexander King <chenyapu1...@qq.com>:
> I checked the handler function on systemJBODNumber and systemStatus,
> objectively speaking,I hadnot found something apparently wrong contrast
> to the other object handler function.I will check it more carefully again
> later.
Remember that you need to pass a pointer *to* the value that you want to
return. You were actually returning this value *AS* a pointer variable.
So when the agent dereferenced this pointer later (to retrieve the actual
value), this triggered the crash.
>>>>I will test this again.
You also need to look again at how Counter64 values are handled in the
Net-SNMP agent. Hint: It's not a simple "long" or "long long" variable.
>>>> I did this:
prefix = /usr/local \
--enable-shared \
--with-default-snmp-version=2 \
--with-mib-modules="uit" \
--enable-mfd-rewrites
and use uint64_t in my c source code,is it right?
Dave
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users