Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Export DHCP reservations to a file every 4 hours

HTVi
TV Discussion Newsgroups

Export DHCP reservations to a file every 4 hours
rushtosri <sridhar.anantharaju[ at ]gmail.com> 10/9/2008 6:24:29 PM
Folks,

I'm new to scripting. I'm trying to write a script that can export
dhcp IP reservations from multiple scopes to a text file every 4
hours. I would appreciate if someone can help me with the logic or the
script (if you have it already).

Thanks in advance.

Cheers!!
Sridhar.
RE: Export DHCP reservations to a file every 4 hours
Masterplan 10/10/2008 6:52:11 AM
Hi,

You can run a batch script with this command:
netsh dhcp server DHCP_SERVER_IP scope SCOPE_IP dump > c:\test.txt
For additional information about netsh, see here:
http://technet.microsoft.com/en-us/library/cc778925.aspx

--
Have a nice day!

http://winmasterplan.blogspot.com


"rushtosri" wrote:

[Quoted Text]
> Folks,
>
> I'm new to scripting. I'm trying to write a script that can export
> dhcp IP reservations from multiple scopes to a text file every 4
> hours. I would appreciate if someone can help me with the logic or the
> script (if you have it already).
>
> Thanks in advance.
>
> Cheers!!
> Sridhar.
>
Re: Export DHCP reservations to a file every 4 hours
rushtosri <sridhar.anantharaju[ at ]gmail.com> 10/11/2008 7:18:16 PM
Thanks for your reply. This command will not provide me complete
address lease details. I want to export the 'Address Leases' branch
under the 'Scope'. The data under 'Address Leases' needs to be
exported to a text file every 4 hours. Please advice.

Thanks

On Oct 10, 11:52 am, Masterplan <winmasterp...[ at ]gmail.com.> wrote:
[Quoted Text]
> Hi,
>
> You can run a batch script with this command:
> netsh dhcp server DHCP_SERVER_IP scope SCOPE_IP dump > c:\test.txt
> For additional information about netsh, see here:http://technet.microsoft..com/en-us/library/cc778925.aspx
>
> --
> Have a nice day!
>
> http://winmasterplan.blogspot.com
>
> "rushtosri" wrote:
> > Folks,
>
> > I'm new to scripting. I'm trying to write a script that can export
> > dhcp IP reservations from multiple scopes to a text file every 4
> > hours. I would appreciate if someone can help me with the logic or the
> > script (if you have it already).
>
> > Thanks in advance.
>
> > Cheers!!
> > Sridhar.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen