< Home

Configuring Automatic RADIUS Server Detection

This section describes how to configure automatic RADIUS server detection using the merge method.

Table 1 Configuring automatic RADIUS server detection

Operation

XPATH

edit-config:merge

/huawei-aaa-radius:radius/radius-server/server-detect-function

/huawei-aaa-radius:radius/global/options/dead-detect-condition

Data Requirement

Table 2 Configuring automatic RADIUS server detection

Item

Data

Description

User name used for automatic detection testusername Set the user name used for automatic detection to testusername.
User password for automatic detection huawei@123 Set the user password for automatic detection to huawei@123.
Automatic detection interval 100 Set the automatic detection interval to 100s.
RADIUS server detection mode by-server-ip Detect the RADIUS server based on the IP address of the RADIUS server.

Request Example

<rpc message-id="123" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <hw-aaa-radius:radius xmlns:hw-aaa-radius="urn:huawei:params:xml:ns:yang:huawei-aaa-radius">
        <hw-aaa-radius:radius-server>
          <hw-aaa-radius:name>t1</hw-aaa-radius:name>
          <hw-aaa-radius:vsys>public</hw-aaa-radius:vsys>
          <hw-aaa-radius:server-detect-function>
            <hw-aaa-radius:server-detect-enable>true</hw-aaa-radius:server-detect-enable>
            <hw-aaa-radius:test-user-name>testusername</hw-aaa-radius:test-user-name>
            <hw-aaa-radius:test-user-password>huawei@123</hw-aaa-radius:test-user-password>
            <hw-aaa-radius:interval>100</hw-aaa-radius:interval>
          </hw-aaa-radius:server-detect-function>
        </hw-aaa-radius:radius-server>
        <hw-aaa-radius:global>
          <hw-aaa-radius:options>
            <hw-aaa-radius:dead-detect-condition>by-server-ip</hw-aaa-radius:dead-detect-condition>
          </hw-aaa-radius:options>
        </hw-aaa-radius:global>
      </hw-aaa-radius:radius>
    </config>
  </edit-config>
</rpc>

Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
  <ok/>
</rpc-reply>

Sample of failed response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123">
 <rpc-error>
  <error-app-tag>-1</error-app-tag>
  <error-message> Invalid character in the template shared-key.</error-message>
  <error-info>Error on node /huawei-aaa-radius:radius/radius-server[name="rds",vsys="public"]/server-detect-function/server-detect-enable</error-info>
 </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >