Bulk import of DHCP resevations

M

Mark

Hi,

Does anyone know if Windows 2003 has a command line tool to bulk import DHCP
reservations similar to the dhcpcmd resource kit tool for NT4?

Thanks

Mark
 
D

Dean Wells [MVP]

Mark said:
Hi,

Does anyone know if Windows 2003 has a command line tool to bulk
import DHCP reservations similar to the dhcpcmd resource kit tool for
NT4?

Thanks

Mark

From memory alone so please test thoroughly;

To export the ENTIRE dhcp config, use -
netsh dhcp server dump >\MyDHCPconfig.dat

To import the ENTIRE dhcp server's configuration from a previous dump -
netsh exec \MyDHCPconfig.dat
 
M

Mark

Thanks Dean,

I have used the netsh method of backup and restore before, but it wont help
me in this case.

I need to add a large number of reservations (more than 500) that do not
exist in the current dhcp server and I dont want to do them by hand. I
already have all the details in a csv file and was hoping to convert this to
a batch file.

Thanks

Mark


Dean Wells said:
Mark said:
Hi,

Does anyone know if Windows 2003 has a command line tool to bulk
import DHCP reservations similar to the dhcpcmd resource kit tool for
NT4?

Thanks

Mark

From memory alone so please test thoroughly;

To export the ENTIRE dhcp config, use -
netsh dhcp server dump >\MyDHCPconfig.dat

To import the ENTIRE dhcp server's configuration from a previous dump -
netsh exec \MyDHCPconfig.dat

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l
 
D

Dean Wells [MVP]

Mark said:
Thanks Dean,

I have used the netsh method of backup and restore before, but it
wont help me in this case.

I need to add a large number of reservations (more than 500) that do
not exist in the current dhcp server and I dont want to do them by
hand. I already have all the details in a csv file and was hoping to
convert this to a batch file.

Thanks

Mark

That sounds do-able to me. If you post a sample of the CSV content, I'm
sure either myself or someone else here can construct netsh's DUMP
syntax from it.
 

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


Top