HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

lsof question

 
allanm77
Frequent Advisor

lsof question

Hi All,

 

I wanted to know if there is an argument in lsof which can tell me the time when socket was left in CLOSE_WAIT state

(start time of that state).

 

Is there any other way I can find that?

 

Thanks,

Allan.

3 REPLIES
allanm77
Frequent Advisor

Re: lsof question

Is there any other way to find this out?

Thanks,
Allan.
Robert_Jewell
Honored Contributor

Re: lsof question

I am not sure, but here is the man page for lsof that you can reference for options and what they do:

 

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.84/man.html

 

-Bob

 

 

----------------
Was this helpful? Like this post by giving me a thumbs up below!
Dave Olker
HPE Pro

Re: lsof question

I'm not sure if any tool would be able to show this unless the TCP data structures themselves keep track of this information somewhere that the kernel could extract it from via a tool like ndd or lsof.  I used the latest version of xportshow (WTEC developed tool for deep analysis of TCP connection problems) and I don't see anything obvious in the data structures it dumps that looks like it tracks when a connection changed state.  There are some timers tracked in the per-connection structures (i.e. keepalive, etc.) but I don't see anything resembling a state timer showing when a connection transitioned from one state to another.

 

If you really need this information, meaning not just a casual interest, you could try contacting HP support and seeing if the RCEs or WTEC teams have any other tools for determining this.  They might have some tool I'm not familiar with that can extract this information from a live system.

 

Dave