Getting Data In

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

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

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

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

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