Related to:
Pass values from cell to be available. Pass parameters, xpaths, get rowname into a command.
Problem
- I want to use a value in a cell to make available to a command.
Possible Solutions
Solution Root Cause 1 - Create a command and add the appropriate x-paths
Example
I have the following dataview and I want to pass the value of a cell into a command - as highlighted in the below screenshot
The Below command will achieve this
<command name="Gateway Echo Test Xpath Table Cell">
<targets>
<target>/geneos/gateway/directory/probe/managedEntity/sampler/dataview/rows/row/cell</target>
</targets>
<userCommand>
<type>script</type>
<runLocation>gateway</runLocation>
<args>
<arg>
<static>/bin/echo</static>
</arg>
<arg>
<xpath>ancestor::gateway/directory/@name</xpath>
</arg>
<arg>
<xpath>ancestor::probe/parameters/@HostName</xpath>
</arg>
<arg>
<xpath>ancestor::managedEntity/@name</xpath>
</arg>
<arg>
<xpath>ancestor::sampler/@name</xpath>
</arg>
<arg>
<xpath>ancestor::dataview/@name</xpath>
</arg>
<arg>
<xpath>@rowname</xpath>
</arg>
<arg>
<xpath>@column</xpath>
</arg>
<arg>
<xpath>@value</xpath>
</arg>
<arg>
<xpath>state/@severity</xpath>
</arg>
<arg>
<xpath>@managedEntity</xpath>
</arg>
</args>
</userCommand>
</command>Right click the desired cell and choose the command to run
Result
Related Articles
If Issue Persists
- Please contact with our Client Services team via the chat service box available in any of our websites or via email to support@itrsgroup.com
Make sure you provide to us:
-Gateway Diagnostics File or relevant xml snippets of the command definition
- Name of the command you trying to configure
- Description of the expected result
-Screenshots of current output of your command.
-Any troubleshooting step already verified from the ones described in this article.
Comments
0 comments
Please sign in to leave a comment.