×
Back to Geneos FAQ
Internal documentation only
This page has been marked as draft.
Netprobe - How to add password for netprobe to be able to run a command?
ENCODED_PASSWORD should be declared via Environment variable Copied
| selfAnnounce > | encodedPassword | A password encoded using the Unix crypt command-line utility, which is then requested when you attempt to execute a Netprobe command. When defined, this setting takes precedence over passwords defined through environment variables. For more information, see Types of password offered by the Gateway and how to generate them in Secure Passwords. |
Example Configuration:
gateway -pw <password>
./gateway2.linux_64 -pw itrsgroup
Encrypted password: BhkTqGxFLGMoE
Export the password:
export ENCODED_PASSWORD=BhkTqGxFLGMoE
You can also use the start_netprobe script inside the template netprobe binary and declare the export command inside of it so that you don’t need to declare the export command everytime you start the netprobe process.
Check the Exported Password:
echo $ENCODED_PASSWORD
You can also combine the export command along with running the Self-Announcing netprobe:
ENCODED_PASSWORD=BhkTqGxFLGMoE ./netprobe.linux_64 -setup /home/sandbox/jdavid/netprobe.setup.xml
Once applied try to run a few commands with enabled password similar below: Please note that the run location should be set as netprobe.
Output without the encoded password: Geneos - Netprobe - How to add password for netprobe to be able to run a command? Copied
With ENCODED_PASSWORD Command Copied
The command now will work as long as the encoded password has been exported.
["Geneos"]
["Geneos > Gateway"]
["FAQ"]