Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
2-242
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
set accounting exec
set accounting exec
To enable accounting of normal login sessions on the switch, use the set accounting exec command.
set accounting exec enable {start-stop | stop-only} {tacacs+ | radius}
set accounting exec disable
Syntax Description
Defaults The default is accounting is disabled.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines You must configure the RADIUS or TACACS+ servers and shared secret keys before you enable
accounting.
Examples This example shows how to enable accounting of normal login sessions, generating records at start and
stop using a RADIUS server:
Console> (enable) set accounting exec enable start-stop radius
Accounting set to enable for exec events in start-stop mode.
Console> (enable)
This example shows how to enable accounting of normal login sessions, generating records at stop using
a TACACS+ server:
Console> (enable) set accounting exec enable stop-only tacacs+
Accounting set to enable for exec events in stop-only mode.
Console> (enable)
enable Enables the specified accounting method for normal login sessions.
start-stop Specifies the accounting method applies at the start and stop of the normal login
sessions.
stop-only Specifies the accounting method applies at the end of the normal login sessions.
tacacs+ Specifies TACACS+ accounting for normal login sessions.
radius Specifies RADIUS accounting for normal login sessions.
disable Disables accounting for normal login sessions.