Before configuring this function, use the huawei-system-performance.yang file or run the server ip-address ip-address [ port port-number ] command in the SMI view to configure the switch to interconnect with CampusInsight.
Operation |
XPATH |
---|---|
edit-config:config |
/huawei-sea:sea/sea-enable /huawei-sea:sea/monitor-type-video /huawei-sea:sea/monitor-period |
Item |
Data |
Description |
---|---|---|
Whether to enable the SEA function |
true |
Enable the SEA function and display the SEA view. |
Type of media streams to be monitored |
true |
Set the type of media streams to be monitored to video. |
Monitoring period of media streams |
second-60s |
Set the monitoring period of media streams to 60 seconds. |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <sea:sea xmlns:sea="urn:huawei:yang:huawei-sea"> <sea:enabled>true</sea:enabled> <sea:monitor-type-video>true</sea:monitor-type-video> <sea:monitor-period>second-60s</sea:monitor-period> </sea:sea> </config> </edit-config> </rpc>
Response Example
# Sample of successful response.
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <ok/> </rpc-reply>
# Sample of failed response.
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/</error-path> <error-message>parse rpc config error.(Unknown element "interfaces".).</error-message> </rpc-error> </rpc-reply>
Item |
Data |
Description |
---|---|---|
Whether to enable the SEA function |
true |
Delete the SEA configuration. |
Type of media streams to be monitored |
true |
Delete the configured type of media streams (video) to be monitored. |
Monitoring period of media streams |
second-60s |
Delete the configured monitoring period (60s) of media streams. |
Deletion Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="3" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <sea:sea xmlns:sea="urn:huawei:yang:huawei-sea" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="delete"> <sea:enabled>true</sea:enabled> <sea:monitor-type-video>true</sea:monitor-type-video> <sea:monitor-period>second-60s</sea:monitor-period> </sea:sea> </config> </edit-config> </rpc>
Response Example
# Sample of successful response.
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <ok/> </rpc-reply>
# Sample of failed response.
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-path>/</error-path> <error-message>parse rpc config error.(Unknown element "interfaces".).</error-message> </rpc-error> </rpc-reply>