display hwtacacs
Syntax
display hwtacacs [ hwtacacs-scheme-name [ statistics ] ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
2: System level
Parameters
hwtacacs-scheme-name: HWTACACS scheme name.
statistics: Displays the statistics for the HWTACACS servers specified in the HWTACACS scheme. Without this keyword, the command displays the configuration of the HWTACACS scheme.
slot slot-number: Displays the configuration or statistics for the switch by its device ID. The slot-number argument represents the device ID, which must be 1.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display hwtacacs to display the configuration of HWTACACS schemes or the statistics for the HWTACACS servers specified in HWTACACS schemes.
If no HWTACACS scheme is specified, the command displays the configuration of all HWTACACS schemes.
Related commands: hwtacacs scheme.
Examples
# Display the configuration of HWTACACS scheme gy.
<Sysname> display hwtacacs gy -------------------------------------------------------------------- HWTACACS-server template name : gy Primary-authentication-server : 172.31.1.11:49 Primary-authorization-server : 172.31.1.11:49 Primary-accounting-server : 172.31.1.11:49 Secondary-authentication-server : 0.0.0.0:0 Secondary-authorization-server : 0.0.0.0:0 Secondary-accounting-server : 0.0.0.0:0 Current-authentication-server : 172.31.1.11:49 Current-authorization-server : 172.31.1.11:49 Current-accounting-server : 172.31.1.11:49 NAS-IP-address : 0.0.0.0 key authentication : ****** key authorization : ****** key accounting : ****** Quiet-interval(min) : 5 Realtime-accounting-interval(min) : 12 Response-timeout-interval(sec) : 5 Acct-stop-PKT retransmit times : 100 Username format : with-domain Data traffic-unit : B Packet traffic-unit : one-packet --------------------------------------------------------------------
Table 8: Command output
Field | Description |
---|---|
HWTACACS-server template name | Name of the HWTACACS scheme. |
Primary-authentication-server | IP address and port number of the primary authentication server. If no primary authentication server is specified, this field displays 0.0.0.0:0. This rule also applies to the following eight fields. |
Primary-authorization-server | IP address and port number of the primary authorization server. |
Primary-accounting-server | IP address and port number of the primary accounting server. |
Secondary-authentication-server | IP address and port number of the secondary authentication server. |
Secondary-authorization-server | IP address and port number of the secondary authorization server. |
Secondary-accounting-server | IP address and port number of the secondary accounting server. |
Current-authentication-server | IP address and port number of the currently used authentication server. |
Current-authorization-server | IP address and port number of the currently used authorization server. |
Current-accounting-server | IP address and port number of the currently used accounting server. |
NAS-IP-address | IP address of the NAS. If no NAS is specified, this field displays 0.0.0.0. |
key authentication | Key for authentication, displayed as a series of asterisks (******). If no shared key is configured, field displays a hyphen (-). |
key authorization | Key for authorization, displayed as a series of asterisks (******). If no shared key is configured, field displays a hyphen (-). |
key accounting | Key for accounting, displayed as a series of asterisks (******). If no shared key is configured, field displays a hyphen (-). |
Acct-stop-PKT retransmit times | Number of stop-accounting packet transmission attempts. |
Data traffic-unit | Unit for data flows. |
Packet traffic-unit | Unit for data packets. |
# Display the statistics for the servers specified in HWTACACS scheme gy.
<Sysname> display hwtacacs gy statistics Slot: 1 ---[HWTACACS template gy primary authentication]--- HWTACACS server open number: 10 HWTACACS server close number: 10 HWTACACS authen client access request packet number: 10 HWTACACS authen client access response packet number: 6 HWTACACS authen client unknown type number: 0 HWTACACS authen client timeout number: 4 HWTACACS authen client packet dropped number: 4 HWTACACS authen client access request change password number: 0 HWTACACS authen client access request login number: 5 HWTACACS authen client access request send authentication number: 0 HWTACACS authen client access request send password number: 0 HWTACACS authen client access connect abort number: 0 HWTACACS authen client access connect packet number: 5 HWTACACS authen client access response error number: 0 HWTACACS authen client access response failure number: 0 HWTACACS authen client access response follow number: 0 HWTACACS authen client access response getdata number: 0 HWTACACS authen client access response getpassword number: 5 HWTACACS authen client access response getuser number: 0 HWTACACS authen client access response pass number: 1 HWTACACS authen client access response restart number: 0 HWTACACS authen client malformed access response number: 0 HWTACACS authen client round trip time(s): 5 ---[HWTACACS template gy primary authorization]--- HWTACACS server open number: 1 HWTACACS server close number: 1 HWTACACS author client request packet number: 1 HWTACACS author client response packet number: 1 HWTACACS author client timeout number: 0 HWTACACS author client packet dropped number: 0 HWTACACS author client unknown type number: 0 HWTACACS author client request EXEC number: 1 HWTACACS author client response error number: 0 HWTACACS author client response EXEC number: 1 HWTACACS author client round trip time(s): 3 ---[HWTACACS template gy primary accounting]--- HWTACACS server open number: 0 HWTACACS server close number: 0 HWTACACS account client request packet number: 0 HWTACACS account client response packet number: 0 HWTACACS account client unknown type number: 0 HWTACACS account client timeout number: 0 HWTACACS account client packet dropped number: 0 HWTACACS account client request command level number: 0 HWTACACS account client request connection number: 0 HWTACACS account client request EXEC number: 0 HWTACACS account client request network number: 0 HWTACACS account client request system event number: 0 HWTACACS account client request update number: 0 HWTACACS account client response error number: 0 HWTACACS account client round trip time(s): 0