The sensor-group command associates a sampling sensor group and configures a sampling interval, redundancy suppression, and a heartbeat interval for the sensor group.
The undo sensor-group command cancels the association of a sampling sensor group.
By default, no sampling sensor group is associated.
Parameter | Description | Value |
---|---|---|
sensor-name |
Specifies the name of a sampling sensor group to be associated. |
The value is a string of 1 to 64 characters. The value must be the name of a sampling sensor group created in the telemetry view. |
sample-interval sample-interval |
Specifies a sampling interval. |
The value is an integer ranging from 0 to 1800000, in milliseconds. Currently, only the values 0, 10, 100, 1000, 5000, 10000, 30000, 60000, 180000, 300000, 900000, and 1800000 are supported. The default value is 60000. |
suppress-redundant |
Indicates that redundancy suppression is enabled for sampling. If the data remains unchanged during a heartbeat interval after the data is sent last time, no more data is sent. |
- |
heartbeat-interval heartbeat-interval |
Specifies a heartbeat interval. |
The value is an integer ranging from 1 to 60, in seconds. The value of heartbeat-interval must be an integral multiple of the value of sample-interval in the same dimension. |
Usage Scenario
A sampling sensor group created in the telemetry view must be associated in the subscription view to perform sampling tasks.
A maximum of five sampling sensor groups can be associated for each subscription using this command.
Precautions
<HUAWEI> system-view [~HUAWEI] telemetry [~HUAWEI-telemetry] sensor-group 1 [*HUAWEI-telemetry-sensor-group-1] quit [*HUAWEI-telemetry] subscription test [*HUAWEI-telemetry-subscription-test] sensor-group 1 sample-interval 100 suppress-redundant heartbeat-interval 30