Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Data Recovery  |  Forums   | Blog | IT Exam Practice | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |                 

 

 

Export the DHCP database in a Windows NT or 2000 server


1. Stop the DHCP Server service on the server by using net stop dhcpserver.

2. Compact the DHCP database by using the JetPack utility.
a. Click Start, click Run, type cmd in the Open box, and then click OK.
b. At the command prompt, type cd %systemroot%\system32\dhcp, and then press ENTER.
c. Type jetpack dhcp.mdb temp.mdb, and then press ENTER.
d. After the database is compacted successfully, type exit, and then press ENTER.


3. Export the DHCP database by using the DHCP Export Import utility (Dhcpexim.exe). You can get this utility from the Windows 2000 Resource Kit Supplement 1 or from this link:
http://support.microsoft.com/kb/927229 (http://support.microsoft.com/kb/927229)
Then follow these steps:
a. Install the Dhcpexim.exe utility, and then start the Dhcpexim.exe utility.
b. At the Welcome to DHCP Export Import tool screen, click Export configuration of the local service to a file, and then click Ok.
c. In the File name box, type the file name for the exported file, and then click Save. For example, type dhcpdatabase.txt.
d. 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.
e. Click OK.

 

Note 1: If you don't setup DHCP redundancy, you should disable the source DHCP Server service on the server.

Note 2: If only the configuration (not the whole database) is required, use the following command (instead of Dhcpexim.exe) on the Windows 2000-based server that you want to export from.
netsh dhcp dump >C:\dhcp.txt


Note 3: The export/import option (which comes with Windows 2003 server) does not exist in the netsh command on Windows 2000 Server. The netsh dhcp server dump and netsh dhcp server import commands are not compatible. If you try to import the data that is created by netsh dhcp server dump > C:\dhcp.txt by using netsh DHCP server import > C:\dhcp.txt, you receive the following error message on the Windows Server 2003 computer:
The request is not supported.
However, you can migrate the exported configuration file to the new Windows Server 2003 server by using the following command:
netsh exec c:\dhcp.txt
Also Dhcpexim.exe is not supported in Windows Server 2003. If a database is exported on a Windows 2000 computer by using Dhcpexim.exe, and you try to import the data to Windows Server 2003, Dhcpexim.exe quits, and you receive the following error message:
An error occurred. An attempt was made to load a program with a incorrect format.
If this behavior occurs, export data from Windows 2000 by using dhcpexim and then import the data on the Windows Server 2003 environment by using netsh DHCP server import dhcp.txt.

 

Post your questions, comments, feedbacks and suggestions

Contact a consultant

Related Topics


 

 


 

 

Hit Counter   This web is provided "AS IS" with no warranties.
Copyright © 2002-2018 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.