[clug] How do i get a list for only connected clients

Paul "TBBle" Hampson Paul.Hampson at Pobox.com
Tue Apr 29 22:52:10 GMT 2008

Hash: SHA1

steve jenkin wrote:
| Sukhee wrote on 28/4/08 7:56 PM:
|> Hello,
|> I'm using fedora core 8 and using samba server to share my folders to
|> windows clients.
|> I need to know my clients IP's at runtime.  How do i get a list
for only
|> connected clients?
|> Can anyone help me ? Please.

| 'lsof' tells you who's connected to what program
| strace can tell you what's connected on what IP ports.
| The linux 'netstat' command does produce a per connection (with
| protocol) listing, not unlike 'lsof'.

| There is also loads of information in the SMBD log files - and you can
| turn up the debugging levels for more info.

| This is without looking at /proc - I seem to remember there is a
| in there for IPv4 and TCP connections...

| How good are your scripting skills?
| I think the info is all readily available, but you have to collate it.

I didn't see the original email, but surely smbstatus tells him what
~ he's asking for?

- --
- -----------------------------------------------------------
Paul "TBBle" Hampson, B.Sc, LPI, MCSE
Very-later-year Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
Paul.Hampson at Pobox.com

Of course Pacman didn't influence us as kids. If it did,
we'd be running around in darkened rooms, popping pills and
listening to repetitive music.
~ -- Kristian Wilson, Nintendo, Inc, 1989

License: http://creativecommons.org/licenses/by/2.1/au/
- -----------------------------------------------------------
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the linux mailing list