
Command Manual (For Soliton) – AAA
H3C S3100 Series Ethernet Switches
Chapter 1 AAA Configuration Commands
1-72
[Sysname] hwtacacs scheme hwt1
[Sysname-hwtacacs-hwt1] nas-ip 10.1.1.1
1.3.8 primary accounting
Syntax
primary accounting
ip-address
[
port
]
undo primary accounting
View
HWTACACS scheme view
Parameters
ip-address
: IP address of the primary accounting server to be used, a valid unicast
address in dotted decimal notation.
port
: Port number of the primary accounting server, ranging from 1 to 65535.
Description
Use the
primary accounting
command to set the IP address and port number of the
primary HWTACACS accounting server to be used by the current scheme.
Use the
undo primary accounting
command to restore the default IP address and
port number of the primary HWTACACS accounting server, which are 0.0.0.0 and 49
respectively.
Note that:
z
You are not allowed to set the same IP address for both primary and secondary
accounting servers. If you do this, your setting will fail.
z
If you re-execute the command, the new setting will overwrite the old one.
z
You can remove an accounting server setting only when there is no active TCP
connection that is sending accounting messages to the server.
Examples
# Set the IP address and UDP port number of the primary accounting server for
HWTACACS scheme test1 to 10.163.155.12 and 49 respectively.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] hwtacacs scheme test1
[Sysname-hwtacacs-test1] primary accounting 10.163.155.12 49