aaa/accounting

Configures, modifies, or retrieves login or command accounting configuration.

Resource URIs

URI Description
<base_URI>/config/running/aaa/accounting Login or command accounting
<base_URI>/config/running/aaa/accounting/commands Enables or disabled command accounting
<base_URI>/config/running/aaa/accounting/exec Enables or disables login accounting
PUT URIs Payload Description
<base_URI>/config/running/aaa/accounting/exec/default/start-stop/server-type <server-type>{acc_srv_type}</server-type> Enables login accounting.
<base_URI>/config/running/aaa/accounting/commands/default/start-stop/server-type <server-type>{acc_srv_type}</server-type> Enables command accounting.

Parameters

server-type
Specifies server for accounting. Possible values are:
None
Disables login accounting.
tacacs+
Configures to use TACACS+ server.
radius
Configures to use radius server.
exec
Login accounting.
default
Sends the logged information to the default server.
start-stop
Sends a "start" accounting notice at the beginning of a process and a "stop" accounting notice at the end of a process. The "start" accounting record is sent in the background.
server-type
Specifies server for accounting : tacas+ or radius

Usage Guidelines

GET, OPTIONS, and HEAD operations are supported.

Examples

URI

The following example uses the GET option to retrieve the configuration details.

http://host:80/rest/config/running/aaa/accounting

None

<accounting y:self="/rest/config/running/aaa/accounting">
  <exec y:self="/rest/config/running/aaa/accounting/exec">
    <default y:self="/rest/config/running/aaa/accounting/exec/default">
      <start-stop y:self="/rest/config/running/aaa/accounting/exec/default/start-stop">
        <server-type>none</server-type>
      </start-stop>
    </default>
  </exec>
  <commands y:self="/rest/config/running/aaa/accounting/commands">
    <default y:self="/rest/config/running/aaa/accounting/commands/default">
      <start-stop y:self="/rest/config/running/aaa/accounting/commands/default/start-stop">
        <server-type>tacacs+</server-type>
      </start-stop>
    </default>
  </commands>
</accounting>