{"id":873,"date":"2009-11-11T10:47:33","date_gmt":"2009-11-11T09:47:33","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=873"},"modified":"2009-11-11T11:16:03","modified_gmt":"2009-11-11T10:16:03","slug":"dhcp-database-topics","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=873","title":{"rendered":"DHCP Database Topics"},"content":{"rendered":"<p>Perhaps you have never given the DHCP database a thought.  Well the time may come where you need to backup, reconcile or compact the DHCP database.  At the very least, I expect you will want to check your lease statistics.<br \/>\nTutorial Topics for DHCP Database<\/p>\n<ul>\n<li>DHCP &#8211; Display Statistics<\/li>\n<li>DHCP Database<\/li>\n<li>Backing up the DHCP Database<\/li>\n<li>Reconcile<\/li>\n<li>DHCP Audit Log<\/li>\n<li>Summary &#8211; Challenges<\/li>\n<\/ul>\n<p><strong><br \/>\nDHCP &#8211; Display Statistics<\/strong><\/p>\n<p>Bizarrely, I find &#8216;Display Statistics&#8217; the most difficult tab to find on the DHCP server.  This is because it&#8217;s the first item on the menu, and is often masked by the very highlight that should attract me.  I just hope that you are not afflicted by this blind spot. In any event, Display Statistics is one of the most interesting and rewarding items on the DHCP menu.<\/p>\n<p>Display Statistics is available at both the server and the scope level.  My first thought is, &#8216;How many leases are left?&#8217;  Next, I look to see if there have been any NACKS or lease declines.  See the screen shot to find the Display Statistics&#8230; menu.<\/p>\n<p><!--more--><br \/>\n<strong>DHCP Database DHCP Backup, Restore, Reconcile<\/strong><\/p>\n<p>DHCP has its own database.  Stored in this DHCP.mdb are the addresses, scopes and leases of the clients.  Understanding this database will help you backing up and restore a DHCP server.<\/p>\n<p>Check out this folder:<span style=\"color: #888888;\"> <span style=\"color: #0000ff;\">%systemroot%\\system32\\dhcp\\dhcp.mdb<\/span><\/span><\/p>\n<p>As time goes by the database will grow, and best practice dictates that you should consolidate the database by freeing up space taken up by old leases.<\/p>\n<p>The procedure for compacting the dhcp.mdb database is this.<\/p>\n<ol>\n<li>Stop the DHCP service.  Either right click the DHCP Server icon, select All tasks then Stop.  Alternatively, go to the command line and type: NET Stop DHCPServer.  (For once the command really is DHCPserver, NOT DHCPyourservername.)<\/li>\n<li>At the command line, navigate to: %systemroot%\\system32\\dhcp\\dhcp.mdb.<\/li>\n<li>Jetpack dhcp.mdb temp.mdb. What this does is copies the existing database, compacts it, then copies it back to the original location &#8211; clever.<\/li>\n<li>Remember to restart DHCP.  Either use the GUI, or if you are at the command line, NET Start DHCPServer<\/li>\n<\/ol>\n<p>Warning: Do not &#8216;mess&#8217; with any of the files that you find in the %systemroot%\\system32\\dhcp folder, if you do, then DHCP will stop working and you will either have to restore, or else re-install DHCP.<\/p>\n<p>The first surprise is that this dhcp.mdb database is backed up every hour.<\/p>\n<p>The second surprise is that the old jetpack database engine controls the database.<\/p>\n<p>The third surprise is that you can only automatically backup to a local folder.  Should you need a &#8216;real&#8217; backup, then just backup the files in the %systemroot%\\system32\\dhcp\\Backup\\ directory.<\/p>\n<p>Finally, and unsurprisingly, there is a GUI to backup the DHCP database.<br \/>\n<strong>Reconcile<\/strong><\/p>\n<p>Reconcile is a technical term for making sure that DHCP information is consistent.  What can happen is that when you restore a database, there is a miss-match between lease information in the database and the same information in the DHCP server&#8217;s registry.  Specifically, the registry just stores basic or summary information, the detailed information from a recent restore maybe different, so a &#8216;Reconcile&#8217; will ensure that the database and registry data are consistent once more.<\/p>\n<p>Bear in mind that you can either reconcile individual scopes or choose all scopes.  It all depends on the &#8216;focus&#8217; of what you select.  If you select an individual scope that that is the limit of what you can reconcile, however, when you select the server icon, you can: Reconcile All Scopes &#8211; see diagram above.  (not below)<br \/>\nDHCP Audit Log DHCP Audit, Statistic times<\/p>\n<p>Once you setup DHCP auditing, you get a separate log for each day of the week.  The logs are a wealth of information, not just about the health of the server, but also which machine gets which IP address for how long.<\/p>\n<p>To setup Auditing, right click the DHCP server, then select properties.<\/p>\n<p>Auditing removes the last reason for having static IP addresses, accountability.  Die-hards, Luddites who resist DHCP often justify static IP addresses on the grounds that you can always account for which machine had which IP address on a particular day.  With DHCP Auditing you can achieve the same result and have all the benefits of central administration, instant control over default gateways and a raft of other options.<\/p>\n<p>source link: <a href=\"http:\/\/www.computerperformance.co.uk\/w2k3\/services\/DHCP_Database_Backup.htm\">computerperformance.co.uk<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perhaps you have never given the DHCP database a thought. Well the time may come where you need to backup, reconcile or compact the DHCP database. At the very least, I expect you will want to check your lease statistics. Tutorial Topics for DHCP Database DHCP &#8211; Display Statistics DHCP Database Backing up the DHCP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[106],"class_list":["post-873","post","type-post","status-publish","format-standard","hentry","category-networking","category-uncategorized","tag-dhcp","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=873"}],"version-history":[{"count":3,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/873\/revisions"}],"predecessor-version":[{"id":875,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/873\/revisions\/875"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=873"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}