<?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 is Server Identified After clone-prep-clear-config Script is Run? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/202694#M7558</link>
    <description>&lt;P&gt;There are several things that happen when you do a clone-prep-clear-config.  But here are the main things concerning the host.&lt;/P&gt;

&lt;P&gt;First, checking out the help section for the command from a command line yields this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk help clone-prep-clear-config

Clear a Splunk instance of instance-unique config parameters, which are normally created on initial startup (first-time run, "ftr").  Intended for use after an instance has been cloned (i.e. all its files simply copied) from another instance.

Syntax:
    clone-prep-clear-config
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are 3 main files that get the hostname and GUID cleared (remember, there is more than just this going on):&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;inputs.conf (the host key in the [default] stanza is cleared)&lt;/LI&gt;
&lt;LI&gt;server.conf (the serverName key in the [general] stanza is cleared)&lt;/LI&gt;
&lt;LI&gt;instance.cfg (the guid key in the [general] stanza is cleared)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In addition to these things, a 0-bytes file named cloneprep is created in the $SPLUNK_HOME directory.&lt;/P&gt;

&lt;P&gt;When the Universal Forwarder starts back up (which will happen after PVS or MCS has assigned the hostname and system GUIDs), all of the information is filled into the 3 files mentioned above and the cloneprep file gets deleted.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2016 19:47:32 GMT</pubDate>
    <dc:creator>jconger</dc:creator>
    <dc:date>2016-09-21T19:47:32Z</dc:date>
    <item>
      <title>How is Server Identified After clone-prep-clear-config Script is Run?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/202693#M7557</link>
      <description>&lt;P&gt;We are using Citrix to deploy multiple servers from a master image. We have followed the directions in the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/Forwarding/Makeadfpartofasystemimage"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/Forwarding/Makeadfpartofasystemimage&lt;/A&gt; doc and it works; however, when we go and look at the cloned images' server.conf file there is no &lt;CODE&gt;[general]&lt;/CODE&gt; stanza. The cloned images' inputs.conf file does not contain an entry for host under the &lt;CODE&gt;[default]&lt;/CODE&gt; stanza.&lt;/P&gt;

&lt;P&gt;I'm glad the &lt;CODE&gt;clone-prep-clear-config&lt;/CODE&gt; script works I just want to know how the UF is reporting the host name if it is not in those .conf files.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Logan&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 07:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/202693#M7557</guid>
      <dc:creator>tred23</dc:creator>
      <dc:date>2016-09-21T07:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How is Server Identified After clone-prep-clear-config Script is Run?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/202694#M7558</link>
      <description>&lt;P&gt;There are several things that happen when you do a clone-prep-clear-config.  But here are the main things concerning the host.&lt;/P&gt;

&lt;P&gt;First, checking out the help section for the command from a command line yields this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk help clone-prep-clear-config

Clear a Splunk instance of instance-unique config parameters, which are normally created on initial startup (first-time run, "ftr").  Intended for use after an instance has been cloned (i.e. all its files simply copied) from another instance.

Syntax:
    clone-prep-clear-config
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are 3 main files that get the hostname and GUID cleared (remember, there is more than just this going on):&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;inputs.conf (the host key in the [default] stanza is cleared)&lt;/LI&gt;
&lt;LI&gt;server.conf (the serverName key in the [general] stanza is cleared)&lt;/LI&gt;
&lt;LI&gt;instance.cfg (the guid key in the [general] stanza is cleared)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In addition to these things, a 0-bytes file named cloneprep is created in the $SPLUNK_HOME directory.&lt;/P&gt;

&lt;P&gt;When the Universal Forwarder starts back up (which will happen after PVS or MCS has assigned the hostname and system GUIDs), all of the information is filled into the 3 files mentioned above and the cloneprep file gets deleted.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 19:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/202694#M7558</guid>
      <dc:creator>jconger</dc:creator>
      <dc:date>2016-09-21T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How is Server Identified After clone-prep-clear-config Script is Run?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/605841#M25862</link>
      <description>&lt;P&gt;Update:&amp;nbsp; What I had responded is actually incorrect, in that it's not a feature change but actually a bug.&amp;nbsp; The bug showed up in 8.1.x and fixed in 8.1.6 and apparently in 9.0.x.&amp;nbsp; But in 8.2.5 and potentially any 8.2.x (have a case currently open as of today 7/18/2022) to make that determination.&amp;nbsp; So my apologies in the haste of that response as what research I had done in docs and what we were seeing it appeared the functionality had changed.&lt;/P&gt;&lt;P&gt;Leaving the below here as to context of my correction.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this behavior changes with 8.2.&amp;nbsp; The host is no longer being stored on ftr, and if you have host coded in your inputs.conf from prior releases. The&amp;nbsp;clone-prep-clear-config command will not clean out that file in the 8.2.x releases, at least not in 8.2.5 that we are on.&amp;nbsp; We just ran up on this issue as we have images that our servers are created from and the steps have been to run the clone-prep-clear-config to reset the inputs.conf host values and the guid.&amp;nbsp; But it no longer clears out the host name from inputs.conf.&amp;nbsp; So we have had to change our steps as we were not having data come into Splunk under the proper host name.&amp;nbsp; So now we remove the inputs.conf as well as run the clone-prep-clear-config to reset our servers.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 11:55:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-is-Server-Identified-After-clone-prep-clear-config-Script-is/m-p/605841#M25862</guid>
      <dc:creator>wfrankl2</dc:creator>
      <dc:date>2022-07-18T11:55:47Z</dc:date>
    </item>
  </channel>
</rss>

