<?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: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77493#M1238</link>
    <description>&lt;P&gt;here's my new-splunk.sh...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh

# Support goofy Splunk homes... 
APPS=`echo $SPLUNK_HOME | awk 'BEGIN { FS="/"} {printf "/"; for(i=2;i&amp;lt;=NF-1;i++) printf $i "/"; printf "\n"}'`

#Download directory
. set_demo_home.sh
DOWNLOADS="$DEMO_SCRIPT_HOME/Downloads/"
LICENSE=`ls $DOWNLOADS*.license | sort -n | tail -n 1`

# get the latest version
if [ -e "/tmp/latestsplunkserver" ]
    then SPLUNK=`cat /tmp/latestsplunkserver`
fi

if [ ! -e $DOWNLOADS$SPLUNK ]
    then echo "Can't find Splunk at $DOWNLOADS$SPLUNK!"
    exit 1
fi

# Do the extraction
tar xzf $DOWNLOADS$SPLUNK -C $APPS

# if SPLUNK is not supposed to live in a folder called "splunk" we'll need to
# deal with that.
SPLUNK_FOLDER=`echo $SPLUNK_HOME | awk 'BEGIN { FS="/"} {print $NF}'`
if [ ! $SPLUNK_FOLDER = "splunk" ]
    then mv $APPS/splunk $SPLUNK_HOME
fi

DIR="$SPLUNK_HOME/etc"

# Need to uncomment and change SPLUNK_HOME from /opt/splunk to /Applications/splunk
sed 's/# SPLUNK_HOME/SPLUNK_HOME/g' &amp;lt; $DIR/splunk-launch.conf.default &amp;gt; $DIR/splunk-launch.conf
sed 's/opt/Applications/g' &amp;lt; $DIR/splunk-launch.conf.default &amp;gt; $DIR/splunk-launch.conf

# let's change a few default settings
fix-splunk-defaults.sh

# don't need deployment apps or Getting Started
rm -rf $DIR/deployment-apps
rm -rf $DIR/apps/gettingstarted
rm -rf $DIR/apps/sample_app

BIN="$SPLUNK_HOME/bin/splunk"

# handle licensing
$BIN start --accept-license
$BIN login -auth admin:changeme 
$BIN add licenses $LICENSE

echo "Splunk is refreshed now (NOTE: it still needs a restart)."
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Jan 2013 20:42:10 GMT</pubDate>
    <dc:creator>jcoates_splunk</dc:creator>
    <dc:date>2013-01-03T20:42:10Z</dc:date>
    <item>
      <title>Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77492#M1237</link>
      <description>&lt;P&gt;Our company has an Enterprise License for Splunk.  We have scripted the install for upgrade and for fresh implementations of Splunk 5.  However, the acceptance of the End User License agreement is causing our scripts to fail.  &lt;/P&gt;

&lt;P&gt;In versions prior to Splunk 5 we used the following commands from a shell script:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/bin/&lt;STRONG&gt;splunk start&lt;/STRONG&gt; --&lt;STRONG&gt;accept-license&lt;/STRONG&gt; --&lt;STRONG&gt;answer-yes&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Now it fails to accept the license during script run time.&lt;/P&gt;

&lt;P&gt;Is there an updated command set to continue past the license acceptance?&lt;BR /&gt;
Or..&lt;BR /&gt;
Does anyone know of a scripted method to work around this problem?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2013 20:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77492#M1237</guid>
      <dc:creator>dbrown_sfdc</dc:creator>
      <dc:date>2013-01-03T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77493#M1238</link>
      <description>&lt;P&gt;here's my new-splunk.sh...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/sh

# Support goofy Splunk homes... 
APPS=`echo $SPLUNK_HOME | awk 'BEGIN { FS="/"} {printf "/"; for(i=2;i&amp;lt;=NF-1;i++) printf $i "/"; printf "\n"}'`

#Download directory
. set_demo_home.sh
DOWNLOADS="$DEMO_SCRIPT_HOME/Downloads/"
LICENSE=`ls $DOWNLOADS*.license | sort -n | tail -n 1`

# get the latest version
if [ -e "/tmp/latestsplunkserver" ]
    then SPLUNK=`cat /tmp/latestsplunkserver`
fi

if [ ! -e $DOWNLOADS$SPLUNK ]
    then echo "Can't find Splunk at $DOWNLOADS$SPLUNK!"
    exit 1
fi

# Do the extraction
tar xzf $DOWNLOADS$SPLUNK -C $APPS

# if SPLUNK is not supposed to live in a folder called "splunk" we'll need to
# deal with that.
SPLUNK_FOLDER=`echo $SPLUNK_HOME | awk 'BEGIN { FS="/"} {print $NF}'`
if [ ! $SPLUNK_FOLDER = "splunk" ]
    then mv $APPS/splunk $SPLUNK_HOME
fi

DIR="$SPLUNK_HOME/etc"

# Need to uncomment and change SPLUNK_HOME from /opt/splunk to /Applications/splunk
sed 's/# SPLUNK_HOME/SPLUNK_HOME/g' &amp;lt; $DIR/splunk-launch.conf.default &amp;gt; $DIR/splunk-launch.conf
sed 's/opt/Applications/g' &amp;lt; $DIR/splunk-launch.conf.default &amp;gt; $DIR/splunk-launch.conf

# let's change a few default settings
fix-splunk-defaults.sh

# don't need deployment apps or Getting Started
rm -rf $DIR/deployment-apps
rm -rf $DIR/apps/gettingstarted
rm -rf $DIR/apps/sample_app

BIN="$SPLUNK_HOME/bin/splunk"

# handle licensing
$BIN start --accept-license
$BIN login -auth admin:changeme 
$BIN add licenses $LICENSE

echo "Splunk is refreshed now (NOTE: it still needs a restart)."
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2013 20:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77493#M1238</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2013-01-03T20:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77494#M1239</link>
      <description>&lt;P&gt;This is what I use for my scripted installs.&lt;/P&gt;

&lt;P&gt;/sbin/service splunk start --answer-yes --no-prompt --accept-license&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 00:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77494#M1239</guid>
      <dc:creator>tbarnard</dc:creator>
      <dc:date>2013-01-04T00:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77495#M1240</link>
      <description>&lt;P&gt;Does this work in version 5?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77495#M1240</guid>
      <dc:creator>dbrown_sfdc</dc:creator>
      <dc:date>2013-01-07T20:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77496#M1241</link>
      <description>&lt;P&gt;This seemed to work.  Does it work for version 5 in your environment?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77496#M1241</guid>
      <dc:creator>dbrown_sfdc</dc:creator>
      <dc:date>2013-01-07T20:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77497#M1242</link>
      <description>&lt;P&gt;yes, I'm using it in automated builds for some demo and test environments.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 21:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77497#M1242</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2013-01-07T21:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Install fails for Splunk 5 due to End User License Agreement acceptance</title>
      <link>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77498#M1243</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
In versions prior to Splunk 5 I used the following commands from a shell script:&lt;BR /&gt;
$SPLUNK_HOME/bin/splunk start --accept-license --answer-yes --auto-ports --no-prompt&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:14:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Scripted-Install-fails-for-Splunk-5-due-to-End-User-License/m-p/77498#M1243</guid>
      <dc:creator>jay007ant</dc:creator>
      <dc:date>2013-02-01T18:14:05Z</dc:date>
    </item>
  </channel>
</rss>

