How to Use the -p parameter in monitoring.sh to Retrieve Specific Properties

Overview

When running monitoring.sh, you can use the -p parameter to filter and display specific properties from the collector output (for example, cluster-info). However, the syntax requires a specific format.
This article explains the correct usage and provides examples.


Correct Syntax

To request a specific property, use:

-p propertyId:<propertyName>

For example, to retrieve the cluster name:

monitoring.sh -d cluster-info -p propertyId:name

Another example:

\vds\bin>monitoring.sh -d cluster-info -p propertyId:vdsLeaderHostName


Retrieving Multiple Properties

When retrieving multiple property values, you must repeat the -p flag for each property.
Comma-separated values will not work.

Example — to retrieve name, upTime, and vdsLeaderHostName:

\vds\bin>monitoring.bat -d cluster-info -p propertyId:name -p propertyId:upTime -p propertyId:vdsLeaderHostName

Sample Output


Key Notes

  • Always prefix values with propertyId:.

  • Use multiple -p flags if you need multiple properties.

  • This syntax applies generally across collectors supported by monitoring.sh.


 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section

See more