在Arista交换机上配置Syslog服务
- 登录到Arista交换机。
- 进入config模式。
- 如下所示配置交换机以将日志发送到Eventlog Analyzer服务器
- Arista# config terminal
- Arista(config)# logging host < Eventlog_Server_Ip > < port_number > protocol [tcp/udp]
- Arista(config)# logging trap information
- Arista(config)# copy running-config startup-config
配置命令执行的日志的步骤:
- Arista (config)# aaa accounting commands all console start-stop logging
- Arista (config)# aaa accounting commands all default start-stop logging
- Arista (config)# aaa accounting exec console start-stop logging
- Arista (config)# aaa accounting exec default start-stop logging
- Arista (config)# copy running-config startup-config
配置登录日志的步骤:
- Arista (config)# aaa authentication policy on-success log
- Arista (config)# aaa authentication policy on-failure log
- Arista (config)# copy running-config startup-config
|