<?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: Execute a command through the CLI on a remote system in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491659#M83998</link>
    <description>&lt;P&gt;Create an app with a scripted input containing that command.  Push the app to the desired UFs.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 16:29:45 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-11-20T16:29:45Z</dc:date>
    <item>
      <title>Execute a command through the CLI on a remote system</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491658#M83997</link>
      <description>&lt;P&gt;When I run &lt;CODE&gt;splunk cmd&lt;/CODE&gt;, I can execute any external system command using Splunk's context.&lt;BR /&gt;
I want to combine that with the &lt;CODE&gt;-uri&lt;/CODE&gt; parameter to be able to send remote commands to Universal Forwarders.&lt;/P&gt;

&lt;P&gt;However the &lt;CODE&gt;cmd&lt;/CODE&gt; engine treats &lt;CODE&gt;-uri&lt;/CODE&gt; as a part of the command itself, for example:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk cmd dir -uri &lt;A href="https://uf_hostname:8089" target="test_blank"&gt;https://uf_hostname:8089&lt;/A&gt;&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;dir: cannot access https\://uf_hostname\:8089: No such file or directory&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;How can I send the command to a remote Splunk instance?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491658#M83997</guid>
      <dc:creator>eden881</dc:creator>
      <dc:date>2019-11-20T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a command through the CLI on a remote system</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491659#M83998</link>
      <description>&lt;P&gt;Create an app with a scripted input containing that command.  Push the app to the desired UFs.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 16:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491659#M83998</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-20T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a command through the CLI on a remote system</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491660#M83999</link>
      <description>&lt;P&gt;Thank you for the answer, but this method is extremely inconvenient as it requires a lot of effort and time to issue a single command.&lt;BR /&gt;
I'm looking for a semi-interactive way to make use of my existing Splunk deployment to perform simple management tasks in my environment, without the need to fully connect to the server.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 08:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491660#M83999</guid>
      <dc:creator>eden881</dc:creator>
      <dc:date>2019-11-21T08:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a command through the CLI on a remote system</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491661#M84000</link>
      <description>&lt;P&gt;Hi, you might want to look at clustershell for this functionality. It's a little tricky to configure but runs nicely on all kind of lx clusters &lt;BR /&gt;
see &lt;A href="https://clustershell.readthedocs.io/en/latest/"&gt;https://clustershell.readthedocs.io/en/latest/&lt;/A&gt; for details and sources...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 18:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491661#M84000</guid>
      <dc:creator>anfis</dc:creator>
      <dc:date>2020-04-29T18:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a command through the CLI on a remote system</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491662#M84001</link>
      <description>&lt;P&gt;Thank you for the answer! Unfortunately I was looking for a way to achieve this via Splunk's components only, as those are already deployed on our servers.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 11:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Execute-a-command-through-the-CLI-on-a-remote-system/m-p/491662#M84001</guid>
      <dc:creator>eden881</dc:creator>
      <dc:date>2020-04-30T11:49:38Z</dc:date>
    </item>
  </channel>
</rss>

