---
title: Tacacs
slug: enterprise-v6p1/tacacs
createdAt: 2025-12-18T08:15:21.311Z
---

# <font color="#1d50a2">AsterNOS-Tacacs</font>

:::hint{type="warning"}
**NOTE:**
TACACS+ should be used together with AAA configuration. Please refer to **AsterNOS-AAA** for AAA configuration examples.
:::

This chapter provides examples of how to configure and manage TACACS+ on AsterNOS devices using NETCONF.

## <font color="#1d50a2">Configure TACACS+ Configuration</font>

```xml
<config><top>
  <tacacs>
    <servers>
      <server>
        <ip>192.168.0.78</ip>
        <auth-type>chap</auth-type>
        <timeout>10</timeout>
        <shared-secret>asteros</shared-secret>
        <priority>8</priority>
        <port>49</port>
        <vrf>mgmt</vrf>
      </server>
    <server>
      <ip>192.168.15.155</ip>
      <auth-type>login</auth-type>
      <shared-secret>asteross</shared-secret>
      <priority>64</priority>
    </server>
  </servers>
  <global>
    <timeout>10</timeout>
    <shared-secret>asteros</shared-secret>
    <auth-type>pap</auth-type>
  </global>
  </tacacs>
</top></config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:61d9c29d-5fad-4c31-afe2-581b1e578e42">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Delete TACACS+ Server</font>

Request example to delete all TACACS+ servers via **edit-config**

```xml
<config><top>
  <tacacs>
    <servers operation="delete"/>
  </tacacs>
</top></config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:f1d40e93-d9df-40ca-a6bb-1738940e0659">
  <ok/>
</rpc-reply>
```

Request example to delete a specific TACACS+ server via **edit-config**

```xml
<config><top>
  <tacacs>
    <servers>
      <server operation="delete">
        <ip>192.168.15.155</ip>
      </server>
    </servers>
  </tacacs>
</top></config>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:008c5cab-b16c-456a-8e5c-199f41490df4">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Show TACACS+</font>

This RPC retrieves the current TACACS+ configuration in CLI format.

Request example to show TACACS+ configuration via **show-tacacs**

```xml
<show-tacacs/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:9698dffa-7934-4599-a557-ec42f4413857">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-tacacs">
    <global-result>
      TACPLUS global auth_type pap
      TACPLUS global timeout 10
      TACPLUS global passkey asteros
    </global-result>
    <server-result>
      TACPLUS_SERVER address 192.168.0.78
                    ip 192.168.0.78
                    auth-type chap
                    shared-secret asteros
                    priority 8
                    port 49
                    timeout 10
                    vrf mgmt
    </server-result>
  </data>
</rpc-reply>
```

## <font color="#1d50a2">Show TACACS+ Server Status</font>

This RPC retrieves the current TACACS+ server status.

Request example to show TACACS+ server status via **show-tacacs-server-status**

```xml
<show-tacacs-server-status/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d7f5e055-3e5b-46f9-ba9e-10aa2d0b6c62">
  <data>
    <server-result>
    SERVER IP     STATUS
    ------------  --------
    192.168.0.78  online
    </server-result>
  </data>
</rpc-reply>
```

