+ Post New Thread
Results 1 to 9 of 9
Windows Server 2008 R2 Thread, Monitor when a device is connected to DHCP in Technical; Hi there, Not sure where to put this so feel free to move if required, I need to log when ...
  1. #1
    Tsonga's Avatar
    Join Date
    Oct 2012
    Location
    Dorset
    Posts
    151
    Thank Post
    8
    Thanked 19 Times in 16 Posts
    Rep Power
    7

    Monitor when a device is connected to DHCP

    Hi there,

    Not sure where to put this so feel free to move if required,

    I need to log when a device is connected to the network, I can obviously delete it's DHCP lease and check back later to see when it connected....and then delete it again, but I am looking for a solution that better logs the active times of this device.

    Any suggestions?

    Thanks

  2. #2
    Tsonga's Avatar
    Join Date
    Oct 2012
    Location
    Dorset
    Posts
    151
    Thank Post
    8
    Thanked 19 Times in 16 Posts
    Rep Power
    7
    41 views and nothin'>

  3. #3

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,656
    Thank Post
    324
    Thanked 506 Times in 474 Posts
    Rep Power
    177
    Get it's MAC and check in the DHCP logs?

    %system32%\dhcp\DhcpSrvLog...somethin

    Should show everytime it's used DHCP up to about a week in the past I think by default

    Steve

  4. #4


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,534
    Thank Post
    271
    Thanked 752 Times in 590 Posts
    Rep Power
    218
    One device, a handful of devices or all devices?

    Assuming one device to a handful of devices and you want to know when they're actively connected to the network....

    Assign a reserved IP, tell Nagios (or Cacti or whatever you're using) to monitor it via ping every "X" minutes, where "X" depends on the granularity you need. Then look at the pretty graphs it generates / nagios alert logs for those devices.

  5. Thanks to pete from:

    Tsonga (30th January 2013)

  6. #5
    Tsonga's Avatar
    Join Date
    Oct 2012
    Location
    Dorset
    Posts
    151
    Thank Post
    8
    Thanked 19 Times in 16 Posts
    Rep Power
    7
    Quote Originally Posted by pete View Post
    One device, a handful of devices or all devices?

    Assuming one device to a handful of devices and you want to know when they're actively connected to the network....

    Assign a reserved IP, tell Nagios (or Cacti or whatever you're using) to monitor it via ping every "X" minutes, where "X" depends on the granularity you need. Then look at the pretty graphs it generates / nagios alert logs for those devices.
    You had my curiosity, but now you have my attention! Thanks

  7. #6
    Duke5A's Avatar
    Join Date
    Jul 2010
    Posts
    731
    Thank Post
    74
    Thanked 113 Times in 99 Posts
    Blog Entries
    8
    Rep Power
    27
    You could give this a try: VB Script to snoop DHCP logs - Blogs - EduGeek.net

    The only issue I would see with using ping is if the host you're tying to monitor doesn't respond to ICMP requests. It would be best to parse the DHCP server logs.

  8. Thanks to Duke5A from:

    Tsonga (8th February 2013)

  9. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,216
    Thank Post
    2,766
    Thanked 935 Times in 875 Posts
    Rep Power
    343
    You trying to stop this device(s) from accessing your network or what exactly ? Maybe give it a dhcp reservation with an ip address on the wrong range or assign it a static ip and you could ( if the device allows ICMP traffic ) do a constant ping to see when it is live and not.

  10. Thanks to mac_shinobi from:

    Tsonga (8th February 2013)

  11. #8
    Danp's Avatar
    Join Date
    Jul 2011
    Posts
    1,281
    Thank Post
    57
    Thanked 144 Times in 128 Posts
    Rep Power
    107
    In 2008R2 you can right click > deny, then they can't get another IP.

  12. Thanks to Danp from:

    Tsonga (8th February 2013)

  13. #9
    Tsonga's Avatar
    Join Date
    Oct 2012
    Location
    Dorset
    Posts
    151
    Thank Post
    8
    Thanked 19 Times in 16 Posts
    Rep Power
    7
    Hi guys, in the end I went with Robotest and setup a ping every 30 mins, exported this and made a pretty chart. Thanks for all your help.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 2nd March 2010, 07:44 PM
  2. Replies: 7
    Last Post: 20th July 2008, 09:38 AM
  3. Log When Laptops Connect to The Server
    By nawbus in forum Network and Classroom Management
    Replies: 1
    Last Post: 11th July 2008, 12:48 PM
  4. SCSI Connection to Backup Device keeps failing
    By FragglePete in forum Hardware
    Replies: 17
    Last Post: 14th April 2008, 11:06 AM
  5. running scrip when laptop connects to n/w
    By russdev in forum How do you do....it?
    Replies: 2
    Last Post: 5th September 2005, 11:45 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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