<?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 Scripted install - changing management port from command line. in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36528#M576</link>
    <description>&lt;P&gt;I am in the process of creating some install scripts to install Splunk through our configuration management tool.  Everything is working, except for this.&lt;/P&gt;

&lt;P&gt;On certain systems, we use port 8089 for another application.  I can detect that we're using it - but on Linux systems, there doesn't seem to be a way to tell Splunk to start the first time using a different management port other than 8089.&lt;/P&gt;

&lt;P&gt;The Windows .msi has this feature, allowing you to set SPLUNKD_PORT during the install - is there anything available for the *nix versions that will allow the splunkd port to be set &lt;EM&gt;before&lt;/EM&gt; the start?&lt;/P&gt;

&lt;P&gt;The --answer-yes option also doesn't seem to do anything.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@falcon1h.web.prod:~]# /opt/splunk/bin/splunk start --answer-yes

Splunk&amp;gt; CSI: Logfiles.

Checking prerequisites...
    Checking http port [8000]: open
    Checking mgmt port [8089]: already bound
ERROR: The mgmt port [8089] is already bound.  Splunk needs to use this port.
Would you like to change ports? [y/n]: 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to be able to automate it without being asked for input, but splunk doesn't seem to have a way to do this.  Am I missing something?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2011 10:59:40 GMT</pubDate>
    <dc:creator>hajducko</dc:creator>
    <dc:date>2011-02-01T10:59:40Z</dc:date>
    <item>
      <title>Scripted install - changing management port from command line.</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36528#M576</link>
      <description>&lt;P&gt;I am in the process of creating some install scripts to install Splunk through our configuration management tool.  Everything is working, except for this.&lt;/P&gt;

&lt;P&gt;On certain systems, we use port 8089 for another application.  I can detect that we're using it - but on Linux systems, there doesn't seem to be a way to tell Splunk to start the first time using a different management port other than 8089.&lt;/P&gt;

&lt;P&gt;The Windows .msi has this feature, allowing you to set SPLUNKD_PORT during the install - is there anything available for the *nix versions that will allow the splunkd port to be set &lt;EM&gt;before&lt;/EM&gt; the start?&lt;/P&gt;

&lt;P&gt;The --answer-yes option also doesn't seem to do anything.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@falcon1h.web.prod:~]# /opt/splunk/bin/splunk start --answer-yes

Splunk&amp;gt; CSI: Logfiles.

Checking prerequisites...
    Checking http port [8000]: open
    Checking mgmt port [8089]: already bound
ERROR: The mgmt port [8089] is already bound.  Splunk needs to use this port.
Would you like to change ports? [y/n]: 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to be able to automate it without being asked for input, but splunk doesn't seem to have a way to do this.  Am I missing something?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 10:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36528#M576</guid>
      <dc:creator>hajducko</dc:creator>
      <dc:date>2011-02-01T10:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted install - changing management port from command line.</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36529#M577</link>
      <description>&lt;P&gt;I recommend you look here: &lt;A href="http://www.splunk.com/wiki/Deploying_Splunk_Light_Forwarders" rel="nofollow"&gt;http://www.splunk.com/wiki/Deploying_Splunk_Light_Forwarders&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note that this allows completely unattended install, and specifically addresses the problem of setting a non-default port using a configuration file. In general, for automated installs, it is much preferable to use static configuration files over commands. Almost any Splunk configuration can be set using a static configuration file.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 11:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36529#M577</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-01T11:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted install - changing management port from command line.</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36530#M578</link>
      <description>&lt;P&gt;Also, please file an enhancement request for a setting/config to allow forwarders to dynamically/automatically select a new listen port for Splunkd if the configured one is occupied. You can file an ER by opening a support case with priority 4 here: &lt;A href="https://www.splunk.com/page/submit_issue"&gt;https://www.splunk.com/page/submit_issue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 11:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/36530#M578</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-01T11:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted install - changing management port from command line.</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/512939#M6547</link>
      <description>&lt;P&gt;Hi, I am having similar issue. Do we have an option in the latest version?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 07:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-install-changing-management-port-from-command-line/m-p/512939#M6547</guid>
      <dc:creator>josephro</dc:creator>
      <dc:date>2020-08-07T07:56:02Z</dc:date>
    </item>
  </channel>
</rss>

