PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > Export DHCP reservations to a file every 4 hours
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Export DHCP reservations to a file every 4 hours

Réponse
 
LinkBack Outils de la discussion
Vieux 09/10/2008, 20h24   #1
rushtosri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Export DHCP reservations to a file every 4 hours

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.
  Réponse avec citation
Vieux 10/10/2008, 08h52   #2
Masterplan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Export DHCP reservations to a file every 4 hours

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.
>

  Réponse avec citation
Vieux 11/10/2008, 21h18   #3
rushtosri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Export DHCP reservations to a file every 4 hours

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.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h41.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13796 seconds with 11 queries