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 ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.