Networking Forums

Networking Forums > Computer Networking > Windows Networking > DHCP Automation

Reply
Thread Tools Display Modes

DHCP Automation

 
 
Trumpeteer
Guest
Posts: n/a

 
      10-23-2006, 02:22 PM
I want to add a DHCP User Class by commandline and ASCII identifier.
This is a server-wide value. When I look at DHCPcmd.exe or NetSH.exe
there are no options for doing this.

Anyone ideas?

Greetz Trumpeteer

 
Reply With Quote
 
 
 
 
Trumpeteer
Guest
Posts: n/a

 
      10-25-2006, 06:26 PM
Just found out, Netsh.exe did the job!
Look here for all netsh commands:
http://www.microsoft.com/resources/d...etsh_dhcp.mspx

Piece from the action:

Netsh DHCP server
The following commands are available at the dhcp server> prompt, which
is rooted within the netsh environment.

To view the command syntax, click a command:

add class

Adds a class to the specified DHCP server.

Syntax
add class ClassName [ClassComment] [Data] [[IsVendor=]{0 | 1}]
[[IsBinary=]{B | b}]

Parameters
ClassName : Required. Specifies the name of the class to create.

ClassComment : Specifies the comment to associate with the class.

Data : Specifies class data in ASCII or binary format depending on the
IsBinary parameter. If unspecified, it is assumed that the format of
the data is ASCII.

[IsVendor=]{0 | 1} : Indicates whether the class to add is a user class
or a vendor class: 0-User class (default), 1-Vendor class.

[IsBinary=]{B | b} : Indicates if the class data is in binary format.
If unspecified, it is assumed that the format of the data is ASCII.

Examples
In the first example, this command creates a vendor class named
MyClass, with the comment TestClass, and the class data
TestDataForMyClass in ASCII format.

In the second example, this command creates a user class named
MyUserClass with binary data of 4345335532 (ASCII-CE3U2).

The third example is an alternate command syntax for the second
example.

add class MyClass TestClass TestDataForMyClass 1

add class MyUserClass TestClass1 4345335532 B

add class MyUserClass TestClass1 4345335532 0 b

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Automation - High-Style - Seamless Integration Dezignaré Home Networking 7 02-09-2008 08:06 PM
dhcp global predefined option deletion (dhcp standard options) Fernando Windows Networking 0 09-03-2007 10:58 PM
Active Directory and Exchange acct. creation Automation Clayton Sutton Windows Networking 1 02-04-2005 07:11 PM
Load Ballacing broke DHCP - The DHCP service is not servicing any clients because....... Creative Twitch Windows Networking 3 10-28-2004 01:25 PM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 05:27 PM



1 2 3 4 5 6 7 8 9 10 11