Displaying DHCP server activity using Netsh

by Mitch Tulloch [Published on 19 Aug. 2009 / Last Updated on 16 March 2009]

You can use the Netsh command to display statistics for a DHCP server.

You can use the Netsh command to display statistics for a DHCP server. These statistics are obtained using SNMP and display counts of the number of DHCP discover packets received, DHCP offer packets sent, and other packet stats. The stats also show the uptime of your DHCP server, the number of scopes on the server, the number of leased addresses, the number of available addresses, and so on.

Here's the command and some sample output:

    C:\>netsh dhcp server show mibinfo    
            Discovers = 0.    
            Offers = 0.    
            Requests = 0.    
            Acks = 1.    
            Naks = 0.    
            Declines = 0.    
            Releases = 0.    
            ServerStartTime = Sunday, May 25, 2008 12:38:06 PM    
            Scopes = 1.    
            Subnet =    
                    No. of Addresses in use = 1.    
                    No. of free Addresses = 23.    
                    No. of pending offers = 0.    

This sample command output can also be found in my book Windows Server 2008 Server Core Administrators Pocket Consultant from Microsoft Press.

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links