Question : Get the DHCP scopes (Ranges)

Hi,

I have 4 DHCP servers.I have there ip's in a file.txt.I want to get there start and end ip range as each DHCP server have many scopes.Is there any i can get the start and end ip range to a file.

Regards
Sharath

Answer : Get the DHCP scopes (Ranges)

>> I get some scopes of some machines others show this.
Strange!!  Verify the configuration of those system that are giving your proper results and those that are misbehaving .

>> 1. Is there any way to get only 1 days leases that is only today's leases

DHCP server maintains a log files for all events,you can find the audit logs in the c:\windows\system32\dhcp folder. The log files use the name DhcpSrvLog-XXX.log, where XXX is a series of three letters that represents the day of the week that the log was created on. For example, a log named DhcpSrvLog-Fri.log would be the log file that was created on Friday.

If you look at the sample log file, you'll see that the first part of the log file contains a list of codes.
The log portion of the file is actually presented in CSV format.This means that each field is separated by a comma. CSV files can be difficult to read within a word processor. However they can be imported into Microsoft Excel for easier reading.

Copy and paste current date log file to desktop and open it in Notepad.
Delete all lines until following heading
ID,Date,Time,Description,IP Address,Host Name,MAC Address
Save log file -> Close Notepad -> Import this log to MS Excel and enable 'Auto Filter' -> Now in 'ID' column check for ID 10 and 11.
10 represents a new IP address was leased to a client and 11 represents a lease was renewed by a client.

>>2. Get to know only ip leases for machines which are not of my domain.This would be useful to get users details who have connected to our network(External users laptops)

NOT possible through DHCP, however you can I have already provided you the another trick that can work for you in this case.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_22713374.html#a19546758
Random Solutions  
 
programming4us programming4us