<?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: Why am I getting Splunk CLI Error &amp;quot;Client is not authenticated&amp;quot; running a Linux bash script on the deployment server to pull deployment clients? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213895#M7987</link>
    <description>&lt;P&gt;Thank-you - but this did not resolve my issue.  It still prompts for the Splunk username when running the splunk command.  I am logged in as the  splunk application service account that owns and is running the splunkd process.&lt;/P&gt;

&lt;P&gt;$ splunk list deploy-clients  -count -1&lt;BR /&gt;
Your session is invalid.  Please login.&lt;BR /&gt;
Splunk username:&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2015 21:50:21 GMT</pubDate>
    <dc:creator>dsbruce</dc:creator>
    <dc:date>2015-09-23T21:50:21Z</dc:date>
    <item>
      <title>Why am I getting Splunk CLI Error "Client is not authenticated" running a Linux bash script on the deployment server to pull deployment clients?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213892#M7984</link>
      <description>&lt;P&gt;I am trying to run a Linux bash script on the deployment server to pull down the deployment clients.&lt;BR /&gt;
I have the splunk command correct, but get an authentication error when this is run under cron or even from the command line.&lt;BR /&gt;
There are multiple postings on this command, but none of them talk about requiring authentication.&lt;/P&gt;

&lt;P&gt;How do we work around the account:password issue?&lt;BR /&gt;
splunk 6.2.2&lt;/P&gt;

&lt;P&gt;command: &lt;CODE&gt;splunk list deploy-clients  -count -1 | grep hostname&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I tried the -auth parameter that is shown on other command options, but this one does not seem to like this option.&lt;/P&gt;

&lt;P&gt;command: &lt;CODE&gt;splunk list deploy-clients  -count -1 -auth admin:changeme&lt;/CODE&gt;&lt;BR /&gt;
results:  An authentication error occurred: Client is not authenticated&lt;/P&gt;

&lt;P&gt;Any guidance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 22:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213892#M7984</guid>
      <dc:creator>dsbruce</dc:creator>
      <dc:date>2015-09-03T22:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting Splunk CLI Error "Client is not authenticated" running a Linux bash script on the deployment server to pull deployment clients?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213893#M7985</link>
      <description>&lt;P&gt;Are you being prompted to log in after trying to run the command?&lt;BR /&gt;
I just had this same issue in the admin training course but I am not sure if the same fix would work here.  But if you want to try it. &lt;BR /&gt;
 1. stop splunk on the deployment server&lt;BR /&gt;
 2. backup passwd file in etc to passwd.save&lt;BR /&gt;
 3. start splunk&lt;BR /&gt;
 4. cd to etc check that a new passwd file has been created (this has reset the admin password back to changeme)&lt;BR /&gt;
 5. stop splunk again&lt;BR /&gt;
 6. vi passwd.save copy everything but the admin line (top line in my instance)&lt;BR /&gt;
 7. vi passwd paste the data underneath the top line.&lt;BR /&gt;
 8.  start splunk.&lt;/P&gt;

&lt;P&gt;NOTE: DO NOT DELETE THE PASSWD.SAVE FILE UNLESS THIS CORRECTS THE ISSUE AND ALL USERS ARE ABLE TO LOG IN WITH NO ISSUES.&lt;/P&gt;

&lt;P&gt;I had to change my admin password in the Splunk web ui after this.&lt;/P&gt;

&lt;P&gt;if this does not work remove the newly created passwd file and change the passwd.save back to just passwd and system will be back to normal.&lt;/P&gt;

&lt;P&gt;Good Luck I hope this helps.  Like I said I had this in my admin training course so I don't know if this will apply to you.  &lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2015 19:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213893#M7985</guid>
      <dc:creator>Sarmbrister</dc:creator>
      <dc:date>2015-09-20T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting Splunk CLI Error "Client is not authenticated" running a Linux bash script on the deployment server to pull deployment clients?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213894#M7986</link>
      <description>&lt;P&gt;You will want to login first. You might be able to do it all in one command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk login -auth admin:changeme &amp;amp;&amp;amp; splunk list deploy-clients  -count -1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should store the authorization and then use it for the list command.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2015 23:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213894#M7986</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-09-20T23:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting Splunk CLI Error "Client is not authenticated" running a Linux bash script on the deployment server to pull deployment clients?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213895#M7987</link>
      <description>&lt;P&gt;Thank-you - but this did not resolve my issue.  It still prompts for the Splunk username when running the splunk command.  I am logged in as the  splunk application service account that owns and is running the splunkd process.&lt;/P&gt;

&lt;P&gt;$ splunk list deploy-clients  -count -1&lt;BR /&gt;
Your session is invalid.  Please login.&lt;BR /&gt;
Splunk username:&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 21:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213895#M7987</guid>
      <dc:creator>dsbruce</dc:creator>
      <dc:date>2015-09-23T21:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting Splunk CLI Error "Client is not authenticated" running a Linux bash script on the deployment server to pull deployment clients?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213896#M7988</link>
      <description>&lt;P&gt;From a functional standpoint, this does work.&lt;BR /&gt;
But we are trying to run this from crontab and putting the admin password in the clear in a script is now allowed.&lt;/P&gt;

&lt;P&gt;So I am still looking for a method for the application owner account to run this command without being prompted to login so we can "automate" this for the reports.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 21:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-getting-Splunk-CLI-Error-quot-Client-is-not/m-p/213896#M7988</guid>
      <dc:creator>dsbruce</dc:creator>
      <dc:date>2015-09-23T21:52:25Z</dc:date>
    </item>
  </channel>
</rss>

