accessing the DHCP Server Management API

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • GHUM

    #1

    accessing the DHCP Server Management API

    Hello,

    I need to get a list of active leases on a windows dhcp server.

    Experts from Microsoft statet:

    """"
    A: Go to the Address leases of each scope in the DHCP snap-in and dump
    the leases to a text file from the DHCP server snap-in. The text file
    gives you all the information for every active lease. You might also
    want to query the DHCP server management API:
    http://msdn.microsoft.com/library/de...netclients.asp.

    """"
    (http://www.microsoft.com/technet/com...t_05_0303.mspx)

    Option A is not really an option for programmatic access :)

    So my question: Has anyone accessed the DHCP Server Management API from
    Python before? I googled my browser smoking with hopes that that API
    might be accessible via WMI, but to no avail for me.

    Any recommendation how to access this information via Python? pyDHCPSMA
    anyone?

    Harald

Working...