test aaa authorization command-type
test aaa authorization command-type
To test the TACACS+ command authorization for a username, use the test aaa authorization command-type
command.
test aaa authorization command-type {commands| config-commands} user username command
command-string
Syntax Description
commands
config-commands
user username
command command-string
Command Default
None
Command Modes
Any command mode
Command History
Release
4.2(1)
Usage Guidelines
To use the test aaa authorization command-type command, you must enable the TACACS+ feature using
the feature tacacs+ command.
You must configure a TACACS+ group on the Cisco NX-OS device using the aaa server group command
before you can test the command authorization.
This command does not require a license.
Examples
This example shows how to test the TACACS+ command authorization for a username:
switch# test aaa authorization command-type commands user testuser command "configure terminal"
Cisco Nexus 7000 Series Security Command Reference
960
Tests EXEC commands.
Tests configuration commands.
Specifies the user name for TACACS+ command
authorization testing.
Specifies the command for authorization testing. Put
double quotes around the command-string argument
if the command contains spaces.
Modification
This command was introduced.
T Commands