<?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: Can I issue a &amp;quot;_bump&amp;quot; from the command line? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82386#M17058</link>
    <description>&lt;P&gt;For anyone following along at home.  Here's a shell script I wrote to do increment the version number from the command line.&lt;/P&gt;

&lt;P&gt;Here's the contents of &lt;CODE&gt;do_bump.sh&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
# Default splunk home if not already set
SPLUNK_HOME=${SPLUNK_HOME-/opt/splunk}

bump=`cat $SPLUNK_HOME/var/run/splunk/push-version.txt`
echo "Current version: $bump"
let bump++
echo -n $bump &amp;gt; $SPLUNK_HOME/var/run/splunk/push-version.txt
echo "New version:  $bump    (Restart splunkweb?)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Sep 2011 13:44:46 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2011-09-28T13:44:46Z</dc:date>
    <item>
      <title>Can I issue a "_bump" from the command line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82384#M17056</link>
      <description>&lt;P&gt;I'd like to script a &lt;CODE&gt;_bump&lt;/CODE&gt; call after replacing the &lt;CODE&gt;favicon.ico&lt;/CODE&gt;.  (This is something I do after each splunk install or upgrade.)  Is there an quick way to do this?&lt;/P&gt;

&lt;P&gt;Preferably, is there are way to do this &lt;EM&gt;without&lt;/EM&gt; requiring &lt;CODE&gt;splunkweb&lt;/CODE&gt; to be running?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 17:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82384#M17056</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-09-27T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I issue a "_bump" from the command line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82385#M17057</link>
      <description>&lt;P&gt;This value is read directly from a text file.  If you read the file, increment the value, write it back, then start/restart splunkweb you will get the desired effect.&lt;/P&gt;

&lt;P&gt;You may not need to do this as the install/upgrade should already be breaking the users cache as each version is included in the cache breaking mechanism.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 21:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82385#M17057</guid>
      <dc:creator>melting</dc:creator>
      <dc:date>2011-09-27T21:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I issue a "_bump" from the command line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82386#M17058</link>
      <description>&lt;P&gt;For anyone following along at home.  Here's a shell script I wrote to do increment the version number from the command line.&lt;/P&gt;

&lt;P&gt;Here's the contents of &lt;CODE&gt;do_bump.sh&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
# Default splunk home if not already set
SPLUNK_HOME=${SPLUNK_HOME-/opt/splunk}

bump=`cat $SPLUNK_HOME/var/run/splunk/push-version.txt`
echo "Current version: $bump"
let bump++
echo -n $bump &amp;gt; $SPLUNK_HOME/var/run/splunk/push-version.txt
echo "New version:  $bump    (Restart splunkweb?)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Sep 2011 13:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82386#M17058</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-09-28T13:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I issue a "_bump" from the command line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82387#M17059</link>
      <description>&lt;P&gt;It looks like &lt;CODE&gt;push-version.txt&lt;/CODE&gt; is the file you are talking about.  I've added an answer with a simple script to do increment this value.  Thanks for leading me in the right direction.  (BTW, I think I often forget to replace the "favicon.ico" until after I've started splunk after an upgrade, so I'll add this logic to my "post-install" script and that should make sure the right icon gets seen by the users.)&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 13:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82387#M17059</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-09-28T13:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I issue a "_bump" from the command line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82388#M17060</link>
      <description>&lt;P&gt;Since I ended up here, x-posting -- if anyone wants to do this with Javascript, it's far easier and doesn't require a splunkweb restart: &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/390115/how-do-you-programmatically-bump-a-search-head.html#answer-738784"&gt;https://answers.splunk.com/answers/390115/how-do-you-programmatically-bump-a-search-head.html#answer-738784&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 14:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-issue-a-quot-bump-quot-from-the-command-line/m-p/82388#M17060</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2019-04-05T14:13:25Z</dc:date>
    </item>
  </channel>
</rss>

