[Contents] [Prev] [Next] [Index] [Report an Error]

Accounting

The TACACS+ accounting service enables you to create an audit trail of User Exec sessions and command-line interface (CLI) commands that have been executed within these sessions. For example, you can track user CLI connects and disconnects, when configuration modes have been entered and exited, and which configuration and operational commands have been executed.

You configure TACACS+ accounting in the JUNOSe software by defining accounting method lists and then associating consoles and lines with the method lists. You define an accounting method list with a service type, name, accounting mode, and method:

You can then configure consoles and lines with an accounting method list name for each service type:

The NAS sends TACACS+ accounting packets to the TACACS+ host. The accounting packets contain data in the packet header, packet body, and attribute-value pairs (AVPs). Table 62 provides descriptions of the TACACS+ accounting data.

Table 62: TACACS+ Accounting Information

Field/Attribute

Location

Description

major_version

Packet header

Major TACACS+ version number

minor_version

Packet header

Minor TACACS+ version number

type

Packet header

Type of the AAA service: Accounting

flags

Packet body

Bitmapped flags representing the record type: start accounting record or stop accounting record

priv-level

Packet body

Privilege level of the user executing the Exec session or CLI command: 0 - 15

user

Packet body

Name of user running the Exec session or CLI command

port

Packet body

NAS port used by the Exec session or CLI command

rem-addr

Packet body

User’s remote location; either an IP address or the caller ID

service

AVP

User’s primary service: Shell

cmd

AVP

CLI command that is to be executed: specified for Command-level accounting only

task_id

AVP

Unique sequential identifier used to match start and stop records for a task

elapsed_time

AVP

Elapsed time in seconds for the task execution: specified for Exec-level accounting stop records only

timezone

AVP

Time zone abbreviation used for all timestamps


[Contents] [Prev] [Next] [Index] [Report an Error]