Installation

Check Splunk Version in Shell Script before upgrading.

Smokex365
Engager

I've been working on a set of shell scripts to help automate upgrading splunk. So far I've pretty much gotten working as far as downloading the installer (.deb in this case) and running through the upgrade. What I'd like to do now is make it check the installed version against the downloaded version and either update it if the downloaded version is newer or abort if the installed version is newer.

Also, if anyone has found a way to get a clean url, ie. http:///latest/release, instead of the mess you get now.

Tags (3)
0 Karma

dwaddle
SplunkTrust
SplunkTrust

Given you're working with .deb, what stops you from putting up a local apt repository and hosting Splunk from there? Then when you put a new version of Splunk there a simple apt-get update will get the newest version if and only if it is necessary...

0 Karma

Smokex365
Engager

One reason is that I'm attempting to make the script usable by anyone so it's not just personal use. Another is that setting up a repository seems like a lot of work, especially if I went with multiple servers.

If I could get this solution working it would be as easy as downloading the main script, running it (which it retrieves the latest upgrade script already) and waiting for it to finish.

0 Karma

kristian_kolb
Ultra Champion

Check in $SPLUNK_HOME/etc/splunk.version?

/K

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...