accounting

Configure the accounting method for recording information about user activities.

accounting Specification

Type Configuration Resource
Element Name accounting
Element URI /axapi/v3/accounting
Element Attributes accounting_attributes
Schema accounting schema

Operations Allowed:

Operation Method URI Payload

Create Object

POST

/axapi/v3/accounting

accounting Attributes

Get Object

GET

/axapi/v3/accounting

accounting Attributes

Modify Object

POST

/axapi/v3/accounting

accounting Attributes

Replace Object

PUT

/axapi/v3/accounting

accounting Attributes

Delete Object

DELETE

/axapi/v3/accounting

accounting Attributes

accounting Attributes

commands

Description: Specifies which level of commands will be accounted.
  • 15 : Admin commands available to the admin (all commands).
  • 14 : Commands available in config mode (not including the commands of the admin and those under the admin mode).
  • 1 : Commands available in privileged EXEC mode.
  • 0 : Commands available in user EXEC mode. Command levels 2-13 as the same as command level 1.

Type: number

Range: 0-15

Default: 0

debug

Description: Specifies the debug level for accounting, bitwise OR of the following:
  • 1 : Common system events.
  • 2 : Packet fields sent out and received.
  • 4 : Length fields of the TACACS+ packets will also be displayed.
  • 8 : Information about TACACS+ MD5 encryption.

Type: number

Range: 1-15

exec

Description: exec is a JSON Block . Please see below for exec

Type: Object

Reference Object: /axapi/v3/accounting/exec

stop-only

Description: Only sends an Accounting STOP packet when the user logs out or the session times out.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

tacplus

Description: Use TACACS+ servers for accounting. The accounting server also must be configured.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

uuid

Description: uuid of the object

Type: string

exec

Specification
Type object

accounting-exec-method

Description: ‘tacplus’: Use TACACS+ servers for accounting; ‘radius’: Use radius servers for accounting;

Type: string

Supported Values: tacplus, radius

accounting-exec-type

Description: Sends an Accounting START packet to TACACS+ servers when a user establishes a CLI session, and an Accounting STOP packet when the user logs out or the session times out.

Type: string

Supported Values: start-stop, stop-only

uuid

Description: uuid of the object

Type: string