Service metric creation using command line
As discussed in Chapter 4, OEM Grid Control provides command-line tools to create, modify, and remove the targets. The most common command line tool available for target-related configuration is emcli
. The emcli
is shipped as part of the OEM Grid Control installable and is available under the bin
directory of the OMS.
emcli set_metric_promotion verb
The emcli
command-line script provides an easy way to promote metrics of system component targets as well as service tests from various beacons as metrics of the associated service target using the verb set_metric_promotion
.
The syntax for the set_metric_promotion
keyword for promoting a system component-based metric is as follows:
emcli set_metric_promotion -name=<ServiceName> -type=<ServiceType> -category=<PromotedMetricCategory> -basedOn=system -aggFunction=<Function> -promotedMetricKey=<MetricName> -depTargetType=<TargetType> -column=<MetricColumn> -metricName...