This section provides a sample of configuring alarm thresholds for the Portal authentication user count percentage using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac-portal:portal-access/user-alarm |
Item |
Data |
Description |
---|---|---|
percent-lower |
32 |
Set the lower alarm threshold to 32. |
percent-upper |
82 |
Set the upper alarm threshold to 82. |
<?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> <hw-nac-portal:portal-access xmlns:hw-nac-portal="urn:huawei:params:xml:ns:yang:huawei-nac-portal"> <hw-nac-portal:user-alarm xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge"> <hw-nac-portal:percent-lower>32</hw-nac-portal:percent-lower> <hw-nac-portal:percent-upper>82</hw-nac-portal:percent-upper> </hw-nac-portal:user-alarm> </hw-nac-portal:portal-access> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="14"> <rpc-error> <error-app-tag>255</error-app-tag> <error-message>Error: The upper value is smaller than the lower value.</error-message> <error-info>Error on node /huawei-nac-portal/portal-access/user-alarm</error-info> </rpc-error> </rpc-reply>