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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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