none
monitoring free ip addressess in DHCP 2012R2 scope RRS feed

  • Question

  • hey folks,

    I am using DHCP server 2012 R2 in both hotstandby and load balance failover relationships.

    I am currently setting up monitoring for scope utilization.

    It appears that the relevant data can be pulled using powershell command get-dhcpserverv4scopestatistics. 

    However for some reason don't see "AddressesFreeonThisServer" property being populated when i am retrieving scope statistics via powershell. 

    The GUI shows this statistics ok:

    How can i get this property being populated in powershell?

    Monday, February 29, 2016 2:26 PM

Answers

  • Hi mishaelpl,

    “Get-DhcpServerv4ScopeStatistics [[-ScopeId] <IPAddress[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-Failover] [-ThrottleLimit <Int32> ] [ <CommonParameters>]”

    For scopes that are part of a failover relationship; there is ‘-failover’ tag in this cmdlet which can be used for getting failover related statistics.

    Read this blog for more information: http://i1.blogs.technet.com/b/teamdhcp/archive/2012/12/19/dhcp-failover-using-powershell.aspx

     

     

      Best Regards,

    Cartman


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Marked as answer by mishaelpl Tuesday, March 1, 2016 11:37 AM
    Tuesday, March 1, 2016 5:42 AM

All replies

  • Hi mishaelpl,

    “Get-DhcpServerv4ScopeStatistics [[-ScopeId] <IPAddress[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-Failover] [-ThrottleLimit <Int32> ] [ <CommonParameters>]”

    For scopes that are part of a failover relationship; there is ‘-failover’ tag in this cmdlet which can be used for getting failover related statistics.

    Read this blog for more information: http://i1.blogs.technet.com/b/teamdhcp/archive/2012/12/19/dhcp-failover-using-powershell.aspx

     

     

      Best Regards,

    Cartman


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Marked as answer by mishaelpl Tuesday, March 1, 2016 11:37 AM
    Tuesday, March 1, 2016 5:42 AM
  • Thank you all for the valuable feedback!

    Appending -failover parameter did the trick and all statistics are showing fine now!

    Tuesday, March 1, 2016 11:38 AM