<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get DHCP scope information in DHCP logs into Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246897#M47635</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I had the same question and ended up creating and using a custom TA for our Windows 2008 R2 based DHCP servers.&lt;/P&gt;

&lt;P&gt;It's rather simple.  It's a scripted input which runs on those DHCP host via their universal forwarder and performs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;netsh dhcp server show mibinfo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This shows all scopes, number of addresses in use/free and pending offers for the DHCP server which I then index in Splunk.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2016 00:50:55 GMT</pubDate>
    <dc:creator>christian_clout</dc:creator>
    <dc:date>2016-08-26T00:50:55Z</dc:date>
    <item>
      <title>How to get DHCP scope information in DHCP logs into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246896#M47634</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;How can I get the DHCP scope information in DHCP logs, or is there way to get that information into Splunk and correlate?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246896#M47634</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-08-25T19:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DHCP scope information in DHCP logs into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246897#M47635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I had the same question and ended up creating and using a custom TA for our Windows 2008 R2 based DHCP servers.&lt;/P&gt;

&lt;P&gt;It's rather simple.  It's a scripted input which runs on those DHCP host via their universal forwarder and performs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;netsh dhcp server show mibinfo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This shows all scopes, number of addresses in use/free and pending offers for the DHCP server which I then index in Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 00:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246897#M47635</guid>
      <dc:creator>christian_clout</dc:creator>
      <dc:date>2016-08-26T00:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DHCP scope information in DHCP logs into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246898#M47636</link>
      <description>&lt;P&gt;Thanks for response! I tried this one, It is not showing the Scope names, Do you know how to get the scope names? It showing sub nets and use/free..&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 14:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246898#M47636</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-08-26T14:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get DHCP scope information in DHCP logs into Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246899#M47637</link>
      <description>&lt;P&gt;Hi Kiran331,&lt;/P&gt;

&lt;P&gt;The information is little all over the place, at least in my case.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I get mine from Active Directory and then correlate them together.&lt;/P&gt;

&lt;P&gt;So for example, from the output of &lt;CODE&gt;netsh dhcp server show mibinfo&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Subnet = 10.11.12.0.
        No. of Addresses in use = 0.
        No. of free Addresses = 1.
        No. of pending offers = 0.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the following from my Active Directory entries for subnets (Base DN="CN=Subnets,CN=Sites,CN=Configuration,DC=your,DC=company,DC=com", Filter="(&amp;amp;(objectClass=subnet))"):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;siteObject,name,description
"MY_SITE_CODE","10.11.12.0/24","My Company Site ABC Scope"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: You can use SA-LDAPSearch to query your Active Directory or a custom script (I use perl).&lt;/P&gt;

&lt;P&gt;Then you should be able to get the scope IP range, the site (or whatever) it belongs to and a nice description for it.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-DHCP-scope-information-in-DHCP-logs-into-Splunk/m-p/246899#M47637</guid>
      <dc:creator>christian_clout</dc:creator>
      <dc:date>2016-08-26T15:18:28Z</dc:date>
    </item>
  </channel>
</rss>

