| There are several ways to extract information from a XPATH for the use in a command, these are some examples to use in the command.
 
 
 <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>
 </args>
 </userCommand>
 </command>
 
 
 
 
 <command name="Gateway Echo Test Xpath Headline Cell"><targets>
 <target>/geneos/gateway/directory/probe/managedEntity/sampler/dataview/headlines/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::managedEntity/@name</xpath>
 </arg>
 <arg>
 <xpath>ancestor::dataview/@name</xpath>
 </arg>
 <arg>
 <xpath>@name</xpath>
 </arg>
 <arg>
 <xpath>@value</xpath>
 </arg>
 <arg>
 <xpath>state/@severity</xpath>
 </arg>
 </args>
 </userCommand>
 </command>
 | 
Comments
0 comments
Please sign in to leave a comment.