All Apps and Add-ons

Trying to change password on collection node in cent OS

jbleich
Path Finder

I'm trying to setup a collection node for the vmware app and am following the instructions on this page - http://docs.splunk.com/Documentation/VMW/3.1/Install/Getacollectionnode

On Step 20 it asks you to change the password for the splunk admin user on the collection node with this command

./splunk edit user admin -password newpassword -role admin -auth admin:changeme

When i try this i get "-bash: ./splunk: No such file or directory"

Then i tried
sudo ./splunk edit user admin -password newpassword -role admin -auth admin:changeme
Then it asks me for the password for splunkadmin and after i provide it i get "sudo: ./splunk: command not found"

I cant seem to figure out how to change the "admin" user's password on this Cent OS OVA

0 Karma

abhide_splunk
Splunk Employee
Splunk Employee

If you are running the Splunk provided .ova file. Then you can run the splunk command from any directory. However make sure you do not type ./splunk, just splunk. e.g. splunk start NOT ./splunk start. If you want to type ./splunk then you must be in the SPLUNKHOME/bin directory.

Splunk on the .ova can be found under the home directory of the splunkadmin user. So log in as splunkadmin (DO NOT log in as root). Just type the command ls and you will see an opt directory. Splunk is in that directory.

0 Karma

jbleich
Path Finder

Thank you, that did work, but now I'm back to square one on my original problem. On the indexer when trying to add the node within the vmware app, i just get "host could not be reached"

0 Karma

Ayn
Legend

Ummm well in which directory are you standing when you issue that command? "./splunk" will only work if you're in the directory where the splunk binary resides, which would be "/opt/splunkforwarder/bin" on a forwarder. If it's a full-blown Splunk instance, the directory would be "/opt/splunk/bin".

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...