|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 me with the logic or the script (if you have it already). Thanks in advance. Cheers!! Sridhar. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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/l.../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 me with the logic or the > script (if you have it already). > > Thanks in advance. > > Cheers!! > Sridhar. > |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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:52am, Masterplan <winmasterp...@gmail.com.> wrote: > 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/.../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 me with the logic or the > > script (if you have it already). > > > Thanks in advance. > > > Cheers!! > > Sridhar. |
|
![]() |
| Outils de la discussion | |
|
|