Previous Topic: Collection Engine CommandsNext Topic: dpmce ceconfig -configuremetricfilter Command--Configure Metric Filter


dpmce ceconfig -configuremetric Command--Configure Metric

The dpmce ceconfig -configuremetric command lets you add, change, and delete metrics on a host.

This command has the following format:

dpmce ceconfig -configuremetric [-sc sc_url] -host_name hostname -operation add|delete -sourceType 3 -metricname metricname -metric_type metrictype -metric_subtype metricsubtype -metric_instance metricinstance [-metric_method exact|complement] [-metric_datatype metricdatatype] [-lower_threshold lowerthreshold] [-upper_threshold upperthreshold] [-metric_enabled metricenabled] [metric_update yes|no][-ws_user username -ws_password password][-locale iso629value]
-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-host_name hostname

Defines the name of the host computer.

-operation add|delete

Adds or deletes an alias (-setalias) or metric (-configuremetric).

-sourceType

Defines the source for collecting metrics. Valid entries: 1 = System Metrics (Performance Lite metrics), 3 = collection from SNMP interface.

-metricname metricname

Defines a name for the metric.

-metric_type metrictype

The MIB name followed by the symbolic name of the metric.

-metric_subtype MIBOID

Defines the MIB Object Identifier (OID) that uniquely identifies managed objects.

-metric_instance metricinstance

The column number for collecting data.

-metric_method exact|complement|exact_delta|exact_complement

Defines the methods for calculation and collection. Valid entries:

complement_delta = uses the difference between consecutive values in a complementary way. Example: CPU Total Idle.

-metric_datatype metricdatatype

Defines the data type for the metric. Valid entries: integer, floating-point, or double.

-lower_threshold lowerthreshold

Defines the lower overall usage threshold for the Data Center. The lower threshold must always be less than the upper threshold.

Limits: 0-100%

-upper_threshold upperthreshold

Defines the upper overall usage threshold for the Data Center. The upper threshold must always be greater than the lower threshold.

Limits: 1-100%

-metric_enabled yes|no

Defines if the metric is enabled for collection. Valid entries: yes or no.

-metric_update yes|no

Defines whether the metric is updated in the database. Valid entries: yes or no.

-ws_user username -ws_password password

(Optional) Specifies the credentials to use for the web service security check. If you do not include credentials, you are prompted to enter them. Avoid the prompt for credentials by setting up your own session using caaipsecurity.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Configure Metric for Data Collection

This example adds metric configuration data for the host.

dpmce ceconfig -configuremetric -host_name SOL1054 -operation add -sourceType 3 -metricname SysEDGE.loadAverage15Min -metric_type SysEDGE.loadAverage15Min -metric_subtype 1.3.6.1.4.1.546.1.1.7.8.28.0 -metric_method exact -metric_update yes -ws_user admin -ws_password admin