Getting Data In

How to install the decompressed .gz file on AIX for a Splunk universal forwarder?

lloydknight
Builder

Well, this is technically a Unix question but still asked it here since it involves with Splunk.

I already installed a forwarder on Linux and didn't have a problem with tar files, but I am having a hard time installing the forwarder for AIX. I don't know how to install the decompressed .gz file to the AIX OS unlike in Linux, you'll just have to type
sudo tar xvzf splunkforwarder.tar -C /opt/

How about in AIX? I tried:
sudo tar xvf -C /opt/ /home/splunkforwarder.gz and it's not working. It's returning an error that directories are not located etc.. I already tried a variety of commands to run it.

Tried gzip -d splunkforwarder.gz and it's just decompressing it. Kindly show me the procedure please. Thank you!

0 Karma
1 Solution

acharlieh
Influencer

Many blogs seem to indicate that lacking the integrated options like tar has on linux, you just need to pipe the output of one command to the other. So (without an AIX system in front of me)... Assuming you downloaded splunkforwarder-6.3.1-f3e41e4b37b2-AIX-powerpc.tgz and it's on your system as /home/splunkforwarder.tgz: First become root with sudo bash or sudo -s or something like that. cd /opt and then

gunzip -c /home/splunkforwarder.tgz | tar xvf -

Alternatively, this one line might work, but you'd have to check me (lacking an AIX system to play with directly 🙂 😞

cd /opt; gunzip -c /home/splunkforwarder.tgz | sudo tar xvf -

View solution in original post

acharlieh
Influencer

Many blogs seem to indicate that lacking the integrated options like tar has on linux, you just need to pipe the output of one command to the other. So (without an AIX system in front of me)... Assuming you downloaded splunkforwarder-6.3.1-f3e41e4b37b2-AIX-powerpc.tgz and it's on your system as /home/splunkforwarder.tgz: First become root with sudo bash or sudo -s or something like that. cd /opt and then

gunzip -c /home/splunkforwarder.tgz | tar xvf -

Alternatively, this one line might work, but you'd have to check me (lacking an AIX system to play with directly 🙂 😞

cd /opt; gunzip -c /home/splunkforwarder.tgz | sudo tar xvf -

lloydknight
Builder

I used gzip -d /home/splunkforwarder.gz then tar xvf splunkforwarder. that's it. I'm having an error when using |. thanks!

0 Karma
Get Updates on the Splunk Community!

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...