Getting Data In

Remote login with CLI: Is there a way to insert the login command in a shell script file?

loyslegrand
Path Finder

Hi

Is there a way to insert the login command in a shell script file ?
I have tried splunk login -username xxxx -password yyyyy, but each time it prompts the username on the console and the remaining lines of the script are not considered.

BRgds

Loys

0 Karma
1 Solution

loyslegrand
Path Finder

Hi
Now with the Entreprise Licence , it works fine.
Thanks

Loys

View solution in original post

0 Karma

loyslegrand
Path Finder

Hi
Now with the Entreprise Licence , it works fine.
Thanks

Loys

0 Karma

masonmorales
Influencer

splunk list user -auth admin:changeme

0 Karma

loyslegrand
Path Finder

As I have already changed the password, I wrote :
splunk list user -auth admin:newpwd
and I got the error message

Loys

0 Karma

somesoni2
SplunkTrust
SplunkTrust

You an run following command into your script, which will not do anything but will create a session and it will not prompt for username/password.

splunk list user -auth username:password
0 Karma

loyslegrand
Path Finder

Thanks for the answer but it looks that this command is not working with the free licence
In handler 'users': Requires license feature='Auth'
BRgds
Loys

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...