All Apps and Add-ons

Splunk Add-on for Unix and Linux: bandwidth.sh script issue

subaldhawan
New Member

As per solution provided on answers forum against the Question: Issues with Splunk_TA_nix and AIX, we changed the bandwidth.sh script to separate the two commands.

netstat -i -Z; sleep 1;
CMD='netstat -in'

But seems like Splunk user does not have the root privilege to execute netstat -i -Z command. Is there any other way on AIX server to execute this command with Splunk user (using another command or giving sudo permissions or adding splunk user to some AIX group), apart from re-installing the Splunk forwarder as root user?

0 Karma

micahkemp
Champion

You could use sudo and configure sudoers to allow the splunk user to run only the exact command (please use the full path) that the script needs to execute, then call sudo netstat -in in your script.

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 ...