Dump DHCP Lease information

G

Guest

I have a number of Windows 2000 DHCP servers located throughout my network.
Each server has a number of active scopes. I need to produce a report of all
IP addresses in use (leased) on our network. I have looked at the netsh
command, dhcpcmd (an oldie from NT 4 resource kit), export from the
management console, etc. Nothing will show a list of all leases for the DHCP
server as a whole. Does anyone know of a tool (or a script snippet) that
will list all leases from all scopes on a DHCP server? Thanks
 
P

Phillip Windell

NetSH???

Why not just go to the DHCP MMC and select the Address Leases Object on the
left window so that the leases show in the right window. Right-click on the
Address Leases object and choose "Export List..."?
 
G

Guest

Thank you for the suggestion. This is an option. However each Dhcp server
has about 25 active scopes. I was looking for a solution that would not
involve having to expand each scope on each of the 11 Dhcp servers -
something that I could run periodically whenever a report was needed.

Phillip Windell said:
NetSH???

Why not just go to the DHCP MMC and select the Address Leases Object on the
left window so that the leases show in the right window. Right-click on the
Address Leases object and choose "Export List..."?

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com



kt2000 said:
I have a number of Windows 2000 DHCP servers located throughout my network.
Each server has a number of active scopes. I need to produce a report of all
IP addresses in use (leased) on our network. I have looked at the netsh
command, dhcpcmd (an oldie from NT 4 resource kit), export from the
management console, etc. Nothing will show a list of all leases for the DHCP
server as a whole. Does anyone know of a tool (or a script snippet) that
will list all leases from all scopes on a DHCP server? Thanks
 
P

Phillip Windell

Ok,...Well, you can also add all the DHCP Servers to the same MMC, so at
least they are all in one place,...if that helps a little more.

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com



kt2000 said:
Thank you for the suggestion. This is an option. However each Dhcp server
has about 25 active scopes. I was looking for a solution that would not
involve having to expand each scope on each of the 11 Dhcp servers -
something that I could run periodically whenever a report was needed.

Phillip Windell said:
NetSH???

Why not just go to the DHCP MMC and select the Address Leases Object on the
left window so that the leases show in the right window. Right-click on the
Address Leases object and choose "Export List..."?

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com



kt2000 said:
I have a number of Windows 2000 DHCP servers located throughout my network.
Each server has a number of active scopes. I need to produce a report
of
all
IP addresses in use (leased) on our network. I have looked at the netsh
command, dhcpcmd (an oldie from NT 4 resource kit), export from the
management console, etc. Nothing will show a list of all leases for
the
DHCP
server as a whole. Does anyone know of a tool (or a script snippet) that
will list all leases from all scopes on a DHCP server? Thanks
 
G

Guest

Thanks again for your help. I am doing this now - what a pain. Hopefully
I'll find an easier method in the future.

Phillip Windell said:
Ok,...Well, you can also add all the DHCP Servers to the same MMC, so at
least they are all in one place,...if that helps a little more.

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com



kt2000 said:
Thank you for the suggestion. This is an option. However each Dhcp server
has about 25 active scopes. I was looking for a solution that would not
involve having to expand each scope on each of the 11 Dhcp servers -
something that I could run periodically whenever a report was needed.

Phillip Windell said:
NetSH???

Why not just go to the DHCP MMC and select the Address Leases Object on the
left window so that the leases show in the right window. Right-click on the
Address Leases object and choose "Export List..."?

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com



I have a number of Windows 2000 DHCP servers located throughout my
network.
Each server has a number of active scopes. I need to produce a report of
all
IP addresses in use (leased) on our network. I have looked at the netsh
command, dhcpcmd (an oldie from NT 4 resource kit), export from the
management console, etc. Nothing will show a list of all leases for the
DHCP
server as a whole. Does anyone know of a tool (or a script snippet) that
will list all leases from all scopes on a DHCP server? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Migrate DHCP leases only 2
unknown RAS leases in DHCP server 5
DHCP - IP running out 5
DHCP & AD Integration 1
DHCP transfer 1
Manage DHCP 1
Terminating DHCP Lease from Server 1
unknown RAS dhcp leases 2

Top