简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
以太网交换机运行状况监控日志收集
贡献者
建议更改
以太网交换机运行状况监控器(CSHM)负责确保集群和存储网络交换机的运行状况、并收集交换机日志以进行调试。此操作步骤将引导您完成设置和开始从交换机收集详细的*Support*日志的过程,并开始每小时收集由AutoSupport收集的*定期*数据。
步骤
-
要设置日志收集、请对每个交换机运行以下命令。系统会提示您输入交换机名称、用户名和密码以收集日志。
s系统交换机以太网日志设置密码
显示示例
cluster1::*> system switch ethernet log setup-password Enter the switch name: <return> The switch name entered is not recognized. Choose from the following list: cs1 cs2 cluster1::*> system switch ethernet log setup-password Enter the switch name: cs1 Would you like to specify a user other than admin for log collection? {y|n}: n Enter the password: <enter switch password> Enter the password again: <enter switch password> cluster1::*> system switch ethernet log setup-password Enter the switch name: cs2 Would you like to specify a user other than admin for log collection? {y|n}: n Enter the password: <enter switch password> Enter the password again: <enter switch password>
-
要开始收集日志、请运行以下命令、将device替换为上一命令中使用的交换机。这将开始两种类型的日志收集:详细的*Support*日志和每小时收集*定期*数据。
system switch ethernet log modify -device <switch-name> -log-request true
显示示例
cluster1::*> system switch ethernet log modify -device cs1 -log-request true Do you want to modify the cluster switch log collection configuration? {y|n}: [n] y Enabling cluster switch log collection. cluster1::*> system switch ethernet log modify -device cs2 -log-request true Do you want to modify the cluster switch log collection configuration? {y|n}: [n] y Enabling cluster switch log collection.
等待10分钟、然后检查日志收集是否完成:
system switch ethernet log show
如果其中任一命令返回错误或日志收集未完成、请联系NetApp支持部门。
故障排除
如果遇到日志收集功能报告的以下任一错误状态(在的输出中可见) system switch ethernet log show
)、请尝试相应的调试步骤:
日志收集错误状态 |
分辨率 |
RSA密钥不存在 |
重新生成ONTAP SSH密钥。请联系NetApp支持部门。 |
交换机密码错误 |
验证凭据、测试SSH连接并重新生成ONTAP SSH密钥。查看交换机文档或联系NetApp支持部门以获取相关说明。 |
对于FIPS,ECDSA密钥不存在 |
如果启用了FIPS模式、则需要在重试之前在交换机上生成ECDSA密钥。 |
已找到已有日志 |
删除交换机上先前的日志收集文件。 |
交换机转储日志错误 |
确保交换机用户具有日志收集权限。请参阅上述前提条件。 |