[openib-general] Re: netstat

Michael S. Tsirkin mst at mellanox.co.il
Thu Nov 3 14:33:14 PST 2005


Quoting r. yipee <yipeeyipeeyipeeyipee at yahoo.com>:
> Subject: Re: netstat
> 
> Sean Hefty <mshefty <at> ichips.intel.com> writes:
> 
> > > Is there some way to view the list of current CM end points in their
> various
> > > states (listen,connection)?
> > 
> > Nothing like this is available today.  I can record this as something
> to add in
> > the future, but it's unlikely to be a high priority for at least a few
> weeks.
> 
> Maybe I can write some initial implementation.
> How do you think the data flow should be?
> libibcm.so issues a write(ucm_fd, buf, buf_len) with the request in
> buf (and enough extra space in buf for the reply).
> ib_ucm copies the information from ib_cm into buf.
> 
> Maybe another command is needed inorder to know how large the reply
> buffer
> should be?
> 
> 
> any comments?
> 
> y

I would a imagine ib_cm would need to implement a file in /proc or sysfs.
One place to start would be to look at how /proc/net/tcp is implemented
(thats what netstat uses, I think).

-- 
MST



More information about the general mailing list