There is a special client-side xpath in a command that gives the user name.
- Create a xpath argument to the command like this:
/geneos/client/runtimeParameters/@Username - Use parameters inside your command script, such as "$1", to capture the parameter in your code
This only works when the command is executed interactively in a Geneos user interface component such as the Active Console. When a command is run as part of a background action then no Username is defined and this situation should be tested for in your external script(s).
Comments
0 comments
Please sign in to leave a comment.