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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...