I have a very large network say Class A. I have Linux DHCP and Microsoft DHCP servers deployed. I am successful in querying Microsoft DHCP server but Is there any way to Query LINUX DHCP server to get a list of all leased IP/Hostnames using C#?

link|improve this question
what 'flavor' of Linux/DHCP Server? Can you access the machine, possibly to write as script, grep a log etc? – lexu Oct 20 '10 at 6:24
possible duplicate serverfault.com/questions/190461/querying-a-dhcp-server-in-c – Prix Oct 20 '10 at 6:34
I want a generic code that works on any Linux DHCP server. I can not do anything on LINUX DHCP server. All I need to do is just by sitting on client side. – Algo Oct 20 '10 at 7:31
feedback

2 Answers

Should be possible using the same win32 api, but maybe it's more protected, do you have some king of authentication on linux DHCP?

Maybe it just reject the client query

link|improve this answer
Yes I have some authentication and I don't have SSH access over DHCP. In other words it is very secure. – Algo Oct 21 '10 at 4:47
feedback

there is an API for the dhcpd called omapi. Here there is info about how to do stuff in C: http://www.linuxmanpages.com/man3/omapi.3.php . I have absolutely no idea if you can query it in c#.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.