Skip to main content
Cluster and storage switches
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

以太网交换机运行状况监控日志收集

贡献者

您可以使用日志收集功能在ONTAP 中收集与交换机相关的日志文件。

以太网交换机运行状况监控器(CSHM)负责确保集群和存储网络交换机的运行状况、并收集交换机日志以进行调试。此操作步骤将引导您完成设置和开始从交换机收集详细的*Support*日志的过程,并开始每小时收集由AutoSupport收集的*定期*数据。

开始之前
  • 验证是否已使用Cisco 3132Q-V集群交换机*CLI*设置环境。

  • 必须为交换机启用交换机运行状况监控。通过确保进行验证 Is Monitored: 字段在的输出中设置为*TRUE* system switch ethernet show 命令:

步骤
  1. 为以太网交换机运行状况监控器日志收集功能创建密码:

    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>
  2. 要开始收集日志、请运行以下命令、将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密钥。

已找到已有日志

删除交换机上先前的日志收集文件。

交换机转储日志错误

确保交换机用户具有日志收集权限。请参阅上述前提条件。