Tools
C# DHCP Server Management API
The CENTREL Solutions C# DHCP management API is a wrapper for the read-only native DHCP-M management API. It gives you read‑only access to view DHCP information on a local or remote server from .NET C# code.
The software includes a construct application to demonstrate the functionality of the tools.
The following DHCP information can be viewed using our API:
- IPv4 and IPv6 Server information
- Reservations
- Leases (currently IPv4 only)
- Scope Ranges
- Exclusions
- Server defaults
- Server options
- Vendor and class definitions
Using the API
To use the API, add a reference to the CENTREL.XIA.Network.Management.DHCP.dll file and use the code below to connect to a DHCP server by name:
using
CENTREL.XIA.Network.Management.DHCP;
try
{
DHCPServerManagement
DHCP = new
DHCPServerManagement
(
"DEMO-DHCP-01"
);
String
AuditLogDirectory = DHCP.ServerConfiguration.AuditLogDirectory;
}
catch
(
DHCPManagementException
ex) { HandleError(ex); }
C# DHCP API code reference
Information and Updates
For more information or to request a trial please email requests@centrel-solutions.com
Interested?
View the documentation to find out more or buy now from our secure 2Checkout online store.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Back to all tools