The binding command binds an instance to a performance statistics collection task.
The undo binding command unbinds an instance from a performance statistics collection task.
By default, no instance is bound to a performance statistics collection task.
binding instance-type instance-type all
binding instance-type instance-type instance instance-name &<1-5>
undo binding instance-type instance-type { all | instance instance-name &<1-5> }
Usage Scenario
The binding command is used to bind an instance to a performance statistics task so that the system can collect the performance statistics about the instance. Multiple instances can be bound to a performance statistics collection task.
Prerequisites
The traffic statistics function has been enabled using the statistics enable command. Otherwise, the binding command cannot take effect.
Precautions
If multiple performance statistics tasks are bound to the same interface to collect interface statistics, the peak values of the tasks are inaccurate.
If instance-type is set to uni-mng-as-port, performance statistics on interfaces of the AS are collected. The interval for collecting traffic statistics on interfaces configured by the set flow-stat interval interval-time command must be shorter than the interval for collecting performance statistics configured by the statistics-cycle cycle command. If the value of interval-time is greater than the value of cycle, performance statistics on interfaces are incorrect. This is because the statistics about the rate and bandwidth usage on interfaces remain the same within the interval specified by interval-time.
# Bind all instances in IP FPM to performance statistics collection task task1.
<HUAWEI> system-view [HUAWEI] nqa ipfpm mcp [HUAWEI-nqa-ipfpm-mcp] instance 1 [HUAWEI-nqa-ipfpm-mcp-instance-1] quit [HUAWEI-nqa-ipfpm-mcp] quit [HUAWEI] pm [HUAWEI-pm] statistics-task task1 [HUAWEI-pm-statistics-task1] binding instance-type ipfpm all