<?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 In deploymentclient.conf, how can we use a variable to mention the hostname of the machine for the clientname entry? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217149#M42725</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;In our environment, we are planning to push a splunkforwarder to a Windows server. Part of that, we are copying deploymentclient.conf file to each and every machine. &lt;/P&gt;

&lt;P&gt;My requirement is, &lt;/P&gt;

&lt;P&gt;In deploymentclient.conf, there is a entry for clientname=&amp;lt;hostname&amp;gt;.&lt;/P&gt;

&lt;P&gt;How can we use a variable to mention the hostname of the machine for clientname entry. &lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2015 10:58:43 GMT</pubDate>
    <dc:creator>raju4244</dc:creator>
    <dc:date>2015-09-09T10:58:43Z</dc:date>
    <item>
      <title>In deploymentclient.conf, how can we use a variable to mention the hostname of the machine for the clientname entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217149#M42725</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;In our environment, we are planning to push a splunkforwarder to a Windows server. Part of that, we are copying deploymentclient.conf file to each and every machine. &lt;/P&gt;

&lt;P&gt;My requirement is, &lt;/P&gt;

&lt;P&gt;In deploymentclient.conf, there is a entry for clientname=&amp;lt;hostname&amp;gt;.&lt;/P&gt;

&lt;P&gt;How can we use a variable to mention the hostname of the machine for clientname entry. &lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 10:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217149#M42725</guid>
      <dc:creator>raju4244</dc:creator>
      <dc:date>2015-09-09T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: In deploymentclient.conf, how can we use a variable to mention the hostname of the machine for the clientname entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217150#M42726</link>
      <description>&lt;P&gt;When you install splunk it will automagically grab the hostname of the host you are installing splunk on. We use a silent install script that simply installs the splunk forwarder and points the host to the deployment server. The script looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;msiexec.exe /i splunkforwarder-6.2.4-271043-x64-release.msi DEPLOYMENT_SERVER="hostname:8089" AGREETOLICENSE=Yes /quiet
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again it will automatically use the hostname that was assigned to the machine.&lt;BR /&gt;
Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 11:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217150#M42726</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2015-09-09T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: In deploymentclient.conf, how can we use a variable to mention the hostname of the machine for the clientname entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217151#M42727</link>
      <description>&lt;P&gt;clientname = $HOSTAME under the deployment-client stanza is all you need to do. &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Create an APP called something like mydeploymentclient. &lt;/LI&gt;
&lt;LI&gt;Create a local directory folder under the mydeploymentclient APP folder&lt;/LI&gt;
&lt;LI&gt;In local directory folder copy or create deploymentclient.conf into it.&lt;/LI&gt;
&lt;LI&gt;Edit deploymentclient.conf to insert this stanza.
[deployment-client]
 clientname = $HOSTNAME&lt;/LI&gt;
&lt;LI&gt; Add APP directory folder to deployment-apps of your deployment server&lt;/LI&gt;
&lt;LI&gt;Use forwarder management UI and add APP to your server class&lt;/LI&gt;
&lt;LI&gt;Run command 'Reload deploy-server' afterwards and your changes will take place. &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;afret2007&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 17:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/In-deploymentclient-conf-how-can-we-use-a-variable-to-mention/m-p/217151#M42727</guid>
      <dc:creator>afret2007</dc:creator>
      <dc:date>2016-01-11T17:14:28Z</dc:date>
    </item>
  </channel>
</rss>

