Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring TACACS+ System Accounting (SRC CLI)

    You can use TACACS+ sysetm accounting to track and log software logins, configuration changes, and interactive commands. To audit these events, include the following statements at the [edit] hierarchy level:

    system accounting events [events....] {
    }
    system accounting destination tacplus server server-address{
    secret secret;
    source-address source-address;
    timeout timeout;
    port port-number;
    }
    1. Specifying TACACS+ Auditing and Accounting Events (SRC CLI)

    2. Configuring TACACS+ Server Accounting (SRC CLI)

    Specifying TACACS+ Auditing and Accounting Events (SRC CLI)

    You can specify the types of events you want to audit when using a TACACS+ accounting server.

    To configure the types of events you want to audit:

    1. From configuration mode, access the configuration statement used to specify TACACS+ events.

      [edit]
      user@host# edit system accounting events events

      events is one or more of the following:

      • login—Audit logins.

      • change-log—Audit configuration changes (copy, delete, edit, exit, help, history, insert, load, quit, rename, rollback, run, save, set, show, top, up).

      • interactive-commands—Audit interactive commands (any command-line input).

    Events are published to the accounting server with the information described in Table 1.

    Table 1: Information Published for Events

    Start EventStop EventUpdate Event

    username (for instance: root)

    username (for instance: root)

    username (for instance: root)

    task_id: pid (for instance: 22956)

    task_id: pid (for instance: 22956)

    task_id: pid (for instance: 22956)

    startTime in seconds. The time the CLI session was created, measured in seconds, between the time it was created and midnight, January 1, 1970 UTC.

    startTime in seconds. The time the CLI session was created, measured in seconds, between the time it was created and midnight, January 1, 1970 UTC.

    executedTime in seconds. The time the CLI command was executed, measured in seconds, between the time it was executed and midnight, January 1, 1970 UTC.

    stopTime in seconds. The time the CLI session was destroyed, measured in seconds, between the time it was destroyed and midnight, January 1, 1970 UTC.

    cmd (for instance: “show”)

    cmd_arg (for instance: “sae subscribers brief”)

    Configuring TACACS+ Server Accounting (SRC CLI)

    To configure TACACS+ server accounting:

    1. From configuration mode, access the configuration statement used to specify the TACACS+ server address.

      [edit]
      user@host# edit system accounting destination tacplus server server-address.

      In the server-address, specify the address or hostname of the TACACS+ server. To configure multiple TACACS+ servers, include multiple server statements.

      Note: If no TACACS+ servers are configured at the [edit system accounting destination tacplus] statement hierarchy level, the SRC software uses the TACACS+ servers configured at the [edit system tacplus-server] hierarchy level.

    2. Specify the source address used when communicating with the TACACS+ server.

      [edit system accounting destination tacplus server server-address]
      user@host# set source-address source-address
    3. Specify the secret (password) the TACACS+ client uses to connect to the TACACS+ server. This password must match the password used by the server.

      [edit system accounting destination tacplus server server-address]
      user@host# set secret secret
    4. (Optional) Specify the length of time (in seconds) that the SRC software waits to receive a response from the TACACS+ server.

      [edit system accounting destination tacplus server server-address]
      user@host# set timeout timeout

      By default, the SRC software waits 3 seconds. You can configure this to be a value in the range 1 through 90 seconds.

    5. Specify the TACACS+ server port number.

      [edit system accounting destination tacplus server server-address]
      user@host# set port port-number

    Modified: 2018-09-20