Hi,

I have several questions:

We have used the getkstat function to retrieve the ipackets and opackets values.

1) From previous answers:

"The code takes care of using a 32 bit counter and watching for it to wrap, and updating the
hc counters."

Q: So do we just enter the 32 bit value that is retrieved using kstat into

entry -> stats.ibytes.low

What do I have to put in entry -> stats.ibytes.high if this is the case ?

2) The values are only updated after roughly 27 seconds. You have to wait this amount of time before a new value is posted. Sending a snmpget

Q1: Where can one modify this value modified ?

Q2: Why is this value roughly 25 seconds ?

Q3: It seems that snmp_api.c (/snmplib directory) funtion snmp_sess_select_info deals with this. What do we need to do to make this quicker ??

 
3) Why do we have to multiply 308 by ipackets to get ifInOctets and if InHCoctets?
Thank you for response !
 
Malcolm

 


On 3/13/06, Dave Shield <[EMAIL PROTECTED]> wrote:
On Thu, 2006-03-09 at 20:07 +0100, Malcolm Townsend wrote:
> Would anyone know who calls var_ifEntry in Solaris ?

It's called by the main agent driving code, when a request
is received for a MIB object within the interfaces tree.

If you want to follow the flow of control, it basically
starts with 'handle_snmp_packet' (in snmp_agent.c), then
netsnmp_handle_request, netsnmp_handle_pdu, handle_var_requests
which calls the relevant handler chain.
In the case of the traditional interfaces.c code, this
ends up invoking the 'old_api' helper, which calls the
var_ifEntry routine.



> I'm trying to follow my intuition, and copy the
> pertinent /mibII/interfaces.c code into a
> new /data_access/interface_solaris.c file

That sounds about right, yes.

Dave

Reply via email to