4-4Command Accounting Configuration ExampleNetwork diagramAs shown in Figure 4-3, configure the commands that the login users execute to be recorded on theHWTACACS server to control and monitor user operations.Figure 4-3 Network diagram for configuring command accountingInternetConsole ConnectionIntranetHost B192.168.1.20/24Host A Host C10.10.10.10/24DeviceHWTACAS server192.168.2.20/24Configuration procedure# Enable the telnet service on Device. system-view[Device] telnet server enable# Enable command accounting for users logging in through the console port.[Device] user-interface aux 0[Device-ui-aux0] command accounting[Device-ui-aux0] quit# Enable command accounting for users logging in through telnet or SSH.[Device] user-interface vty 0 4[Device-ui-vty0-4] command accounting[Device-ui-vty0-4] quit# Create a HWTACACS scheme named tac and configure the IP address and TCP port for the primaryauthorization server for the scheme. Ensure that the port number be consistent with that on theHWTACACS server. Set the shared key for authentication packets to expert for the scheme. SpecifyDevice to remove the domain name in the username sent to the HWTACACS server for the scheme.[Device] hwtacacs scheme tac[Device-hwtacacs-tac] primary accounting 192.168.2.20 49[Device-radius-rad] key accounting expert[Device-radius-rad] user-name-format without-domain