Getting Data In

Python script to upgrade forwarder

VijaySrrie
Builder

Hi,

Please give me the python script to upgrade rpm file of forwarder.

Steps to upgrade

1) Get the rpm file from Splunk site and place it in tmp location

2) Take the backup of apps folder ----- cd /opt/splunkforwarder/etc

3) cp -rf apps /tmp

4) copy the rpm file to opt location
Cp -rf splunk.rpm /opt

5) Stop splunk service
Cd /etc/init.d
./splunk stop

6) upgrade file in cd /opt
rpm -Uvh splunk.rpm

7) start splunk
Cd /etc/init.d
./splunk start

8)Go to cd /opt/splunk/bin
./splunk version
Y
Y

0 Karma

badrinath_itrs
Communicator

There is a sample shell script provided by SPLUNK. You can modify it based on your requirement.

https://docs.splunk.com/Documentation/Forwarder/8.0.1/Forwarder/Installanixuniversalforwarderremotel...

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...