CLI Guide

Table Of Contents
Security Commands 1060
Default Configuration
No TACACS+ host is specified.
Command Mode
Global Configuration mode
User Guidelines
To specify multiple hosts, multiple tacacs-server host commands can be used.
TACACS servers are keyed by the host name, therefore it is advisable to use
unique host names.
Example
The following example specifies a TACACS+ host.
console(config)#tacacs-server host 172.16.1.1
console(config-tacacs)#
tacacs-server key
Use the tacacs-server key command in Global Configuration mode to set the
authentication and encryption key for all TACACS+ communications
between the switch and the TACACS+ daemon. To disable the key, use the
no form of this command.
Syntax
tacacs-server key [ 0 | 7 ][key-string]
no tacacs-server key
0—The key string that follows is the unencrypted shared secret. The
length is 1–128 characters.
7—The key string that follows is the encrypted shared secret. The length is
fixed at 256 characters.
key-string — Specifies the key string in encrypted or unencrypted form. It
may be up to 128 characters in length in unencrypted format and is exactly
256 characters in length in encrypted format.