Hi Shamun,
Thanks for posting. I have posted two options on how to export / import the
DHCP scope details. Hope it will help to resolve your issue.
Option-1
=========
To export the contents of a DHCP database to a delineated text file, use
Dhcpcmd.exe.
Logon to the DHCP server with Administrative priviledges and type the
following at a CMD prompt:
dhcpcmd <IPAddress> enumclients <ScopeNetAddress> -<option> >
<Path\outfile.txt>
where:
<IPAddress> is the IP Address of the DHCP server.
<ScopeNetAddress> is the network address of the DHCP scope.
<option> is v for detailed lease information or h for lease / hardware
information.
<Path\outfile.txt> is the output file, which can be imported into Excel,
Access, Word, etc....
Example:
dhcpcmd 192.168.1.10 enumclients 11.101.0.0 -h > dhcpout.txt
Option -2
========
Export the DHCP database from a server that is running Windows NT Server
4.0 or Windows 2000
Stop the DHCP Server service on the server:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, type net stop "microsoft dhcp server", and then
press ENTER. You receive a "The Microsoft DHCP Server service is stopping.
The Microsoft DHCP Server service was stopped successfully" message.
Type exit, and then press ENTER.
Compact the DHCP database by using the JetPack utility:
Click Start, click Run, type cmd in the Open box, and then click OK.
At the command prompt, type cd %systemroot%\system32\dhcp, and then press
ENTER.
Type jetpack dhcp.mdb temp.mdb, and then press ENTER.
After the database is compacted successfully, type exit, and then press
ENTER.
Export the DHCP database by using the DHCP Export Import utility
(Dhcpexim.exe). You can obtain this utility from the Windows 2000 Resource
Kit Supplement 1. You can also visit the following Microsoft Web site to
obtain Dhcpexim.exe:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/dhcpexim-o.as
p
To export the database:
Install the Dhcpexim.exe utility, and then start the Dhcpexim.exe utility.
At the Welcome to DHCP Export Import tool screen, click Export
configuration of the local service to a file, and then click Ok.
In the File name box, type the file name for the exported file, and then
click Save. For example, type dhcpdatabase.txt.
Click the scope or scopes that you want to export, click to select the
Disable the selected scopes on local machine before export check box, and
then click Export.
Click OK.
Disable the DHCP Server service on the server:
Click Start, point to Settings, click Control Panel, and then double-click
Services.
In the Service list, click Microsoft DHCP Server, click Startup, click
Disabled, and then click OK.
If the service is started, click Stop, and then click Yes to confirm the
stopping of the service.
Click Close to close the Services dialog box.
Important Dhcpexim.exe is required to move the database successfully from a
server that is running Windows 2000 to a server that is running Windows
Server 2003. If only the configuration (not the database) is required, use
the following command on the Windows 2000-based server that you want to
export from
netsh dhcp server export C:\dhcp.txt all
where C:\dhcp.txt is the name and path of the export file that you want to
use.
Thanks,
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and confers no rights.