Retrieving statistic keys
A statistic key identifies a vRealize Operations Manager metric. The Get-OMStatKey
cmdlet retrieves vRealize Operations Manager statistic keys. The syntax of the Get-OMStatKey
cmdlet is given here. The first parameter set is the default:
Get-OMStatKey [[-Name] <String[]>] [-ResourceKind
<String[]>] [-AdapterKind <String[]>] [-Server <OMServer[]>]
[<CommonParameters>]
The second parameter set is required to retrieve statistic keys by resource:
Get-OMStatKey [[-Name] <String[]>] -Resource
<OMResource[]> [-Server <OMServer[]>] [<CommonParameters>]
The -Resource
parameter is required.
The Get-OMStatKey
cmdlet without parameters returns all of the statistic keys. There are too many statistic keys to shows in this book. Piping the output of the Get-OMStatKey
cmdlet to the Measure-Object
cmdlet and displaying the Count
property shows us the number of statistic keys, as in the following command:
PowerCLI...