The system view is displayed.
The eMDI function is enabled and the eMDI view is displayed.
To implement the eMDI function, you must configure an eMDI instance and configure the monitored target flow, monitoring interval, lifetime, and alarm threshold for the eMDI instance.
Run emdi instance instance-id
An eMDI instance is created and the eMDI instance view is displayed.
By default, no eMDI instance is created.
Configure a target flow to be monitored by the eMDI instance.
A target flow is the object monitored by an eMDI instance, and can be defined by any combinations of multiple attributes such as protocol type, source IP address, destination IP address, VLAN ID, source port number, destination port number, payload type, and clock rate. When multiple target flows need to be monitored simultaneously, the source and destination IP addresses and the source and destination port numbers must be specified to define the target flows. Specifying more attributes makes the target flow more accurate. Therefore, it is recommended that you specify more attributes to improve precision of monitoring results. An eMDI instance can monitor only one target flow.
When the protocol of the target flow is TCP, run the following command:
flow ipv4 tcp source source-ip-address destination destination-ip-address { [ vlan vlan-id | source-port source-port-number | destination-port destination-port-number ]* }
When the protocol of the target flow is UDP, run the following command:
flow ipv4 udp source source-ip-address destination destination-ip-address { [ vlan vlan-id | source-port source-port-number | destination-port destination-port-number | pt pt-value | clock-rate clock-rate-value ]* }
(Optional) Run monitor-period period-value
A monitoring interval is configured for the eMDI instance.
By default, the monitoring interval of an eMDI instance is 60 seconds.
(Optional) Run end lifetime { seconds seconds | minutes minutes | hours hours | days days }
The lifetime of the eMDI instance is configured.
By default, the lifetime of an eMDI instance is 1 hour.
(Optional) Run alarm { rtp-lr | rtp-ser | dplr | uplr } threshold threshold-value
An alarm threshold is configured for the eMDI instance.
By default, the alarm threshold for an eMDI instance is 10.
When an indicator such as the out-of-order packet rate or packet loss rate monitored by an eMDI instance reaches the threshold for three consecutive times, an alarm is reported to the NMS. If the indicator no longer reaches the threshold within the following 60 consecutive monitoring intervals, the alarm is automatically cleared.
The eMDI instance is started.
After an eMDI instance is started, all parameters in the eMDI instance cannot be modified. To modify the parameters, run the stop command to stop the eMDI instance first.
To stop the eMDI instance before its lifetime expires, run the stop command.