Accounting Policy#
AAA → APAccounting Policies
An AccountingPolicy selects which ServerGroup resources receive accounting records, and in which order those groups are tried on operating systems that support ordered accounting methods.
Accounting mode#
The required mode field is one of:
StartStopsends a start record when a command begins and a stop record when it finishesStopOnlysends only the stop record after the command finishes
On SR Linux, mode applies to command accounting events. On SR OS, mode sets the TACACS+ accounting record type.
Dependencies#
ServerGroup#
The serverGroups field lists the ServerGroup resources that receive accounting records.
ServerGroup ordering on SR OS
The order in which ServerGroup resources are listed is not supported on SR OS. SR OS follows the authentication order as defined by the AuthenticationPolicy when determining which server to send accounting logs to.
Referenced resources#
The AccountingPolicy does not reference any other EDA resources.
Examples#
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
AccountingPolicy
SPEC
An AccountingPolicy defines accounting parameters for nodes, such as the accounting mode and which nodes to send accounting messages to.
-
Accounting mode to use. Disabled turns off accounting, StartStop sends an accounting record both at the start and at the end of each session, while StopOnly sends only the stop record.
enum: "StartStop", "StopOnly" -
Selects TopoNodes on which to configure the AccountingPolicy.
-
List of TopoNodes on which to configure the AccountingPolicy.
-
List of ServerGroups that will be used for accounting purposes. Order significant only for SR Linux.
STATUS
AccountingPolicyStatus defines the observed state of AccountingPolicy.
-
List of nodes this accounting policy has been applied to.