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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...