473,408 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Query the DHCP server via .NET - how?

Hi

Anyone know a way I can (via .NET) query my dhcp server and enumerate
all the scopes defined within?

Been looking to no avail - it would appear a couple of guys asked this
very question fairly recently and received no response. I hope this
doesn't mean it's impossible !

I have the DHCP mmc snap-in - been through the .net framework
documentation looking for some way to leverage that to no avail.

TIA

AW :)
Nov 20 '05 #1
1 2428
It would have to expose some sort of API or interface for you to hook into.
Have you checked the RFC for DHCP to see if there are calls or commands that
can be sent directly to the server? I know that I have never had a need for
this and as a result, I haven't looked into it.

Here is a link to the RFC.

http://www.ietf.org/rfc/rfc2131.txt

--
Gerry O'Brien
Visual Developer .NET MVP
Visual Basic
"andrew_webby at hotmail" <an**********@hotmail.com> wrote in message
news:f4*************************@posting.google.co m...
Hi

Anyone know a way I can (via .NET) query my dhcp server and enumerate
all the scopes defined within?

Been looking to no avail - it would appear a couple of guys asked this
very question fairly recently and received no response. I hope this
doesn't mean it's impossible !

I have the DHCP mmc snap-in - been through the .net framework
documentation looking for some way to leverage that to no avail.

TIA

AW :)

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Richard D. Ford | last post by:
Does anyone know if VB has an exposed API that can be used to query DHCP for current address leases? I have seen threads that discuss DHCPObj.dll and have successfully used it. However, this only...
5
by: Steve | last post by:
Hi Folks, I'm trying to create a c# class to manage a DHCP subnet using the win api (dhcpsapi.dll). Currently I can't even instanciate my class, instead I receive the error:...
2
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a...
5
by: Richard | last post by:
Hello, I'm working on an application to allow our network team to use a small application to make DHCP reservations on our Microsoft DHCP Server. The problem is you have to use P/Invoke to do...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
0
cyberking
by: cyberking | last post by:
Hi all, Firstly, I am very little knowledgible when it comes to Windows OS (Client OS or Server OS). But offlate my urge to get myself in terms with it increased and soon I was meddling with the...
0
by: gaurav92K | last post by:
sir, in my office there are 10 pc. and office requirment is dhcp server. so on one system dhcp server will we configured and other 9 system are access internet bia this dhcp server where internet is...
0
by: =?Utf-8?B?Z29tZXpqdQ==?= | last post by:
Hi, I had to rename a DHCP server running Windows 2003 in an Active Directory environment. I also change the IP of the server. Now when I open the DHCP console and I want to add that dhcp...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.