Installation

Scripted install thrown by upgrade prompt

stuartamurray
Path Finder

I am using a powershell script to deploy Splunk to many servers (circa 150).

Works a treat UNTIL I try to do an upgrade to a new version at which point my install command fails.

Splunk is basically detecting the upgrade and prompting me for a y/n. Can I suppress this prompt and force the upgrade through?

The output I get is as follows:

    Splunk has detected an older version of Splunk installed on this machine. 
To finish upgrading to the new version, Splunk's installer will automatically
update and alter your current configuration files. Deprecated configuration
files will be renamed with a .deprecated extension.

You can choose to preview the changes that will be made to your configuration
files before proceeding with the migration and upgrade:

If you want to migrate and upgrade without previewing the changes that will be
made to your existing configuration files, choose 'y'.

If you want to see what changes will be made before you proceed with the
upgrade, choose 'n'. 

Perform migration and upgrade without previewing configuration changes? [y/n] 
Tags (1)
1 Solution

David
Splunk Employee
Splunk Employee

Have you tried using the /quiet flag? http://www.splunk.com/base/Documentation/latest/installation/installonWindowsviathecommandline 

Alternatively, I would try with this. Not sure if it works on Windows like it does on Linux, though:

%SPLUNK_HOME%/bin/splunk start --accept-license --answer-yes

View solution in original post

David
Splunk Employee
Splunk Employee

Have you tried using the /quiet flag? http://www.splunk.com/base/Documentation/latest/installation/installonWindowsviathecommandline 

Alternatively, I would try with this. Not sure if it works on Windows like it does on Linux, though:

%SPLUNK_HOME%/bin/splunk start --accept-license --answer-yes

stuartamurray
Path Finder

Thanks a lot guys. Much appreciated. That will teach me to RTFM 🙂

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

That output comes when you use a CLI start, I believe, so the --accept-license --answer-yes --no-prompt flags will work as they do in the linux version. You may want to look at http://www.splunk.com/wiki/Deploying_Splunk_Light_Forwarders for a (not PowerShell but CMD.exe) script that has suggested commands and methods.

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...