dscontrol metric
You can configure system metrics with the dscontrol metric command.
Syntax
>>-dscontrol--metric--+-add--cluster1--+--cluster2--+--c3...cN--@--metric1--+--metric2--+--metricN---------------+->< +-remove--cluster1--+--cluster2--+--c3...cN--@--metric1--+--metric2--+--metricN------------+ +-proportions--cluster1--+--cluster2--+--c3...cN--@--proportion1--+--proportion2--+--propN-+ '-status--cluster1--+--cluster2--+--c3...cN--@--metric1--+--metric2--+--metricN------------'
Parameters
- add
- Add the specified metric.
- cluster
The address to which clients connect. The address can be either the host name of the machine, or the IP address notation format. Additional clusters are separated by a plus sign (+).
- metric
The system metric name. This must be the name of an executable or script file in the metric server’s script directory.
- cluster
- remove
- Remove the specified metric.
- proportions
- Set the proportions for all the metrics associated with this object.
- status
- Display the current values of this metric.
Samples
- To add a system metric:
dscontrol metric add site1@metric1
- To set proportions for a sitename with two system metrics:
dscontrol metric proportions site1 0 100
- To display the current status of values associated with the specified
metric:
dscontrol metric status site1@metric1