How do I extract a Managed Entity's attribute and use it in a command argument? Raymond Angelo Gonzales October 24, 2017 09:41 Updated Follow Use the following XPath: ancestor::managedEntity/attributes/attribute[@name="<attribute name>"]/@value e.g. ancestor::managedEntity/attributes/attribute[@name="OS"]/@value Attached is the sample command, NP Get ME Attribute.xml NP Get ME Attribute.xml 1 KB Download Related articles How do I get rowname into a command? How do I snooze a Managed Entity remotely or outside the Active Console? How do I create a rule that uses a relative path in the condition block? How to snooze/unsnooze a managed entity via rules condition. How do I fix "WARNING Absolute/Relative secondary variables should not contains wildcards - only the first data-item returned will be used..." when saving Gateway configuration Comments 0 comments Please sign in to leave a comment.