以太网交换机健康监控日志收集
以太网交换机健康监视器 (CSHM) 负责确保集群和存储网络交换机的运行健康,并收集交换机日志以进行调试。此程序指导您完成从交换机设置和开始收集详细*支持*日志的过程,并开始每小时收集由AutoSupport收集的*定期*数据。
-
要启用日志收集功能,您必须运行ONTAP版本 9.10.1P15、9.11.1P12 或 9.12.1 或更高版本以及 EFOS 3.8.0.2 或更高版本。
-
必须为交换机启用交换机健康监控功能。通过确保以下方式验证这一点: `Is Monitored:`输出中该字段设置为*true* `system switch ethernet show`命令。
-
要设置日志收集,请对每个交换机运行以下命令。系统会提示您输入用于日志收集的交换机名称、用户名和密码。
system switch ethernet log setup-password显示示例
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 替换为上一个命令中使用的开关。这将启动两种类型的日志收集:详细的*支持*日志和每小时收集的*定期*数据。
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 密钥,然后再重试。 |
发现已存在的日志 |
删除交换机上之前的日志收集文件。 |
交换机转储日志错误 |
请确保切换用户拥有日志收集权限。请参考以上先决条件。 |