AWK "nice-path"

You might see something like this in the SSH command of an .ind AWK script:

${nice-path} -n 15 grep "Failed password" /var/log/secure*

"nice-path" is the name of a variable (aka "tag") set in parsers/src/crossvendor/unix/uname.ind. For a given linux (or linux-like) environment, this variable defines the path to the "nice" executable (https://en.wikipedia.org/wiki/Nice_(Unix)); i.e.. the path to "nice" can be different based on the flavor of *nix running on a given device, so we hard-code the correct path during interrogation, and then read the value when a relevant .ind script executes. At this point, we use nice-path mostly with Checkpoint devices.

As to why we use nice at all, and why a certain priority, here's a quote from Shouky Dan on Crowd: "We have always run under "nice -n 15" in order to give the native tasks (running with "nice 0") priority for scheduling, resource usage, etc. This means that the commands run by indeni should have as little effect on the device behavior as possible." (https://community.indeni.com/discussions/topics/54412?page=0)