78
primary accounting (HWTACACS scheme view)
Syntax
primary accounting ip-address [ port-number | key [ cipher | simple ] key ] *
undo primary accounting
View
HWTACACS scheme view
Default level
2: System level
Parameters
ip-address: IP address of the primary HWTACACS accounting server, a valid unicast address in dotted
decimal notation. The default is 0.0.0.0.
port-number: Port number of the primary HWTACACS accounting server. It ranges from 1 to 65535 and
defaults to 49.
key [ cipher | simple ] key: Sets the shared key for secure communication with the primary HWTACACS
accounting server. Make sure the shared key configured on the device is the same as the one configured
on the server.
• cipher key: Sets a ciphertext shared key. The key argument is case sensitive. If you specify neither this keyword
nor the simple keyword, the shared key is set in plain text.
{ In non-FIPS mode, the key is a string of 1 to 373 characters.
{ In FIPS mode, the key is a string of 8 to 373 characters.
• simple key: Sets a plaintext shared key. The key argument is case sensitive. If you specify neither this
keyword nor the cipher keyword, the shared key is set in plain text.
{ In non-FIPS mode, the key is a string of 1 to 255 characters.
{ In FIPS mode, the key is a string of 8 to 255 characters and must contain digits, uppercase
letters, lowercase letters, and special characters.
Description
Use the primary accounting command to specify the primary HWTACACS accounting server.
Use the undo primary accounting command to remove the configuration.
By default, no primary HWTACACS accounting server is specified.
The IP addresses of the primary and secondary accounting servers cannot be the same. Otherwise, the
configuration fails.
The shared key configured by using the primary accounting command takes precedence over the one
configured by using the key accounting [ cipher | simple ] key command.
The HWTACACS service port configured on the device and that of the HWTACACS server must be
consistent.
If you configure the command repeatedly, only the last configuration takes effect.
You can remove an accounting server only when it is not used by any active TCP connection to send
accounting packets.
Related commands: key, display hwtacacs, and hwtacacs scheme.