On 3/5/2016 2:09 PM, James Carlson wrote:
> On 3/5/2016 4:47 AM, skeletor wrote:
>> Hello.
>> Is any method to obtain next stats: number of
>> TIME_WAIT,SYN_RCVD,LAST_ACK,FIN_WAIT_2 not from count every time from
>> `netstat -an | grep TIME_WAIT| wc -l` ?
>> Netstat -s only shows tcpCurrEstab from my requires. May be dtrace can
>> help?
> 
> Dtrace triggers on events.  What events are you interested in?  State

Well, that's silly.  I forgot about the TCP state__change probe that you
could easily use for this.

Still, the question is: what are you trying to achieve?  If you're
trying to see transitions -- events -- then that's the way to do it.  If
you're trying to get current status, then it might not be the best tool
for the job.

-- 
James Carlson         42.703N 71.076W         <[email protected]>


-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to