Hi Akhil.

Akhil Jain wrote:
> Hi All,
> 
> I have some doubts in usage of kstat framework (kstat_open; kstat_lookup) 
> regarding SCTP statistics:
> 
>  Do we have option to reset the kernel statistics in our program?

I don't think so. To get data for given period of time just subtract
older value from newer value.

>  When I run the command "kstat sctp 10" on my Solaris system, it provides me 
> the statistics in every 10 seconds. So can I have the same option when using 
> the kstat framework in my implementation? If yes, can you please tell me the 
> workaround for that? 

That's a feature of the kstat tool, not the kstat framework. In your
application, you need to query kstat framework in a loop.

> Thanks,
> Akhil Jain

Regards,
Milan Cermak
-- 
* There is an ancient curse saying: 'Interesting times on you.' *

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to