Getting Data In

Where do I save the script that will install UF on remote servers?

mariaerh
New Member

Creating a script that will install UF on remote server, where on my deployment server should I go to save that script?

Tags (1)
0 Karma

mariaerh
New Member

Hi Kristian

Yes, this is the exact script I'm using, in the line DEPLOY_SERVER="xxx.xxx.xxx.xxx:8089" I have to put the IP of my search head/deployment server machine right?

Once this script is created on the search head/deployment server, where do I have to save it? what directory? (I'm runing Ubuntu).

0 Karma

kristian_kolb
Ultra Champion

No you don't. Or well...

One thing the deployment server cannot do is to install (or upgrade) the forwarders themselves. Not via the deployment server mechanisms, anyway. It allows you to remotely configure already installed forwarders.

You can however, from a host on your network, run a script that can remotely install forwarders. That host CAN be the same host as the deployment server, but these functions have nothing in common.

Please see the following post for an example of such a script;

http://splunk-base.splunk.com/answers/34896/simple-installation-script-for-universal-forwarder

Hope this helps,

Kristian

0 Karma

kristian_kolb
Ultra Champion

Well.. save it your home dir perhaps. chmod it to executable.

Make sure that you have the files/variables needed BY the script, e.g. the list of your (future) deployment_clients/forwarders, the download of the installer, that you have the passwords for the accounts in the hostlist. etc

The script will prompt you to log in to each of the hosts in the list as part of the upload/install process.

The script is pretty self-explanatory. If your scripting skills are not yet up speed for these tasks, perhaps a more manual approach might suit you better.

/K

0 Karma

mariaerh
New Member

Hi Kristian

Yes, this is the exact script I'm using, in the line DEPLOY_SERVER="xxx.xxx.xxx.xxx:8089" I have to put the IP of my search head/deployment server machine right?

Once this script is created on the search head/deployment server, where do I have to save it? what directory? (I'm runing Ubuntu).

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: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...