Find the answer to your Linux question:
Results 1 to 6 of 6
Hi! I am trying to get the h/w, ip addresses, connection time,disconnection time of computers of all those which connect to my computer by any source ssd,telnet. I am able ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2004
    Posts
    33

    Getting info about connected(ing) computer


    Hi!
    I am trying to get the h/w, ip addresses, connection time,disconnection time
    of computers of all those which connect to my computer by any source ssd,telnet.
    I am able to get the ip address from /var/log/secure,/var/log/messages

    thanx in advance!

  2. #2
    Just Joined! adamdaughterson's Avatar
    Join Date
    Mar 2003
    Location
    Denver, Colorado, USA
    Posts
    78
    You can probably get most of the info that you are looking for with nmap.

    http://freshmeat.net/projects/nmap/?...43%2C150%2C151

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    The connection times are also logged in the syslog. To get the hardware address, just run "arp -n" while the computer is connected.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jan 2004
    Posts
    33
    I just want to keep a log the computers connected.
    arp will give just connected machines only.

  6. #5
    Just Joined!
    Join Date
    Jan 2004
    Posts
    33
    it is just like that when a visitor visits the site and counter keeps the log of ip , time spent,user agent,operating system
    like this I want to implement this on lan with computers

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I think you shouldn't care too much about the hardware address, though. In different network configurations, it's often far from reliable, and often even impossible, to get the hardware address.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •