<?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: CLI command completion broken in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/574530#M25029</link>
    <description>&lt;P&gt;Got response from splunk, problem is known and will be fixed. meanwhile, entering anything for the empty name value is a workaround.&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;ivo&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 08:15:07 GMT</pubDate>
    <dc:creator>ivohechmann</dc:creator>
    <dc:date>2021-11-11T08:15:07Z</dc:date>
    <item>
      <title>CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573191#M24976</link>
      <description>&lt;P&gt;Since I realized it existed, I've setup my environment to source the $SPLUNK_HOME/share/splunk/cli-command-completion.sh script to allow tab completion of Splunk commands.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Recently, we upgraded to 8.2.2 after previously being on 8.0.3. After the upgrade, the sourcing of the file no longer works, giving the following 2 stderr messages:&lt;BR /&gt;cli-command-completion.sh: line 83: verb_to_objects: bad array subscript&lt;BR /&gt;cli-command-completion.sh: line 85: verb_to_objects[$verb]: bad array subscript&lt;BR /&gt;&lt;BR /&gt;It looks like the script was originally a Splunk Answers post by a Splunk Dev that was later included in the Splunk distribution, and has not changed since then:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-Yes-and-here-s-how-For-bash-4-0-and/m-p/82552" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-Yes-and-here-s-how-For-bash-4-0-and/m-p/82552&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However it looks like&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33"&gt;@V_at_Splunk&lt;/a&gt;&amp;nbsp;is no longer active on the community and likely no longer at Splunk, their last post being in 2014.&lt;BR /&gt;&lt;BR /&gt;Is anyone still using this script? Has anyone run into these issues and determined their cause? I suspect something the script references changed, but I'm unsure what was changed.&lt;BR /&gt;&lt;BR /&gt;This was such a nice QoL thing to have it'd be a shame if I had to let it die.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 16:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573191#M24976</guid>
      <dc:creator>Sivrat</dc:creator>
      <dc:date>2021-11-01T16:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573196#M24979</link>
      <description>&lt;P&gt;IMO, if it's part of the distribution then it should be supported by Splunk.&amp;nbsp; Consider contacting Splunk Support for help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 16:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573196#M24979</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-01T16:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573214#M24988</link>
      <description>&lt;P&gt;We'll try to do that, once we figure out who in the company has access to the entitlements.&lt;BR /&gt;&lt;BR /&gt;Hopefully it's supported or is getting similar functionality built into the binary, cause being able to tab complete or double tab to get list of subcommands is really nice.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm honestly surprised how little mention I've seen of it, given how handy it is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 18:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573214#M24988</guid>
      <dc:creator>Sivrat</dc:creator>
      <dc:date>2021-11-01T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573240#M24990</link>
      <description>&lt;P&gt;Figured out where things are breaking through some lab testing.&lt;BR /&gt;&lt;BR /&gt;The "merge-buckets" command was added in 8.2.0. In the section of the&amp;nbsp;splunkrc_cmds.xml for it (lines 6215-6259 as of v8.2.2.1), it has an empty name for a cmd tag in line&amp;nbsp;6232, just has '&amp;lt;cmd name=""&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This causes&amp;nbsp;&lt;SPAN&gt;cli-command-completion.sh to fail when it tries to pass it as a command verb array. I added a test to skip null verbs as a workaround to the script, but will open a case to report this as a bug when I can.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 20:07:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/573240#M24990</guid>
      <dc:creator>Sivrat</dc:creator>
      <dc:date>2021-11-01T20:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/574004#M25015</link>
      <description>&lt;P&gt;Hi Sivrat, same here after upgrade, do you have any feedback from splunk? Otherwise I'll open a case (too)...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ivo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/574004#M25015</guid>
      <dc:creator>ivohechmann</dc:creator>
      <dc:date>2021-11-08T12:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/574530#M25029</link>
      <description>&lt;P&gt;Got response from splunk, problem is known and will be fixed. meanwhile, entering anything for the empty name value is a workaround.&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;ivo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 08:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/574530#M25029</guid>
      <dc:creator>ivohechmann</dc:creator>
      <dc:date>2021-11-11T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: CLI command completion broken</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/576903#M25078</link>
      <description>&lt;P&gt;Been working with Support and this is what has worked.&lt;/P&gt;&lt;P&gt;Verify correct permissions:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;chmod 444 $Splunk_home/share/splunk/cli-command-completion.sh&lt;BR /&gt;$Splunk_home/bin/setSplunkEnv&lt;BR /&gt;$Splunk_home/etc/system/static/splunkrc_cmds.xml&lt;/P&gt;&lt;P&gt;Then open&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;"$SPLUNK_HOME/etc/system/static/splunkrc_cmds.xml",&lt;BR /&gt;Then go to the line 6232 and add merge-buckets for "cmd name"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;6232 &amp;lt;cmd name="merge-buckets"&amp;gt;&lt;/P&gt;&lt;P&gt;Save the change&lt;BR /&gt;$SPLUNK_HOME/bin source ./setSplunkEnv and verify it works.&lt;/P&gt;&lt;P&gt;This got tab completion working again. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 13:57:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/CLI-command-completion-broken/m-p/576903#M25078</guid>
      <dc:creator>janderson42</dc:creator>
      <dc:date>2021-12-01T13:57:12Z</dc:date>
    </item>
  </channel>
</rss>

