跳转到主内容

如何启用 ONTAP 防病毒连接器日志记录

Views:
83
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
NAS
Last Updated:

Color_Def.png

仅在指定的内容块内添加文本。单击此处 查看有关创建解决循环内容的更多信息。

适用于

  • ONTAP 9
  • Vscan
  • ONTAP 防病毒连接器(AV 连接器)

说明

如何启用 ONTAP 防病毒连接器(AV 连接器)日志记录 

操作步骤

AV 连接器版本 1.0.7.0:

  • 从 AV Connector 版本 1.0.7.0 开始,可以通过 GUI 配置调试日志记录。
  1. 向下滚动应用程序以显示"跟踪配置"部分。

clipboard_e336ef44c5856b7a175464dc87c6db0af.png

  1. 配置 Trace levelTrace PathLog Rotation sizeLog Rotation Limit 然后 clink Save

注意:

  • The trace level 的概念与 AV Connector 1.0.6 相同
  • Log Rotation size 单位为 MB。

AV 连接器版本 1.0.6.x 及早期版本:

  • 默认情况下,"ONTAP AV Connector"服务未启用日志记录。若要启用日志记录,请将以下两个值添加到'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP Antivirus Connector\v1.0' 注册表项:
    • 添加 TracePath 字符串值 - 区分大小写!
      • 本地路径,例如,C:\netappdata\avconnector.log
      • 注意:路径中的文件夹必须存在*
    • 添加 TraceLevel DWORD 值 - 区分大小写!
      • 控制日志记录级别-通常设置的级别DEEP
      • 默认情况下,跟踪级别为0,QUIET
        • TraceLevel ONTAP AV 连接器(从版本 1.0.6 起):
          • 0-日志级别:[QUIET]
          • 1-日志级别:[CRIT]
          • 2-日志级别:[INFO]
          • 3-日志级别:[VERBOSE]
          • 4-日志级别:[DEEP]
        • TraceLevel ONTAP AV 连接器 1.0.6 之前的版本:
          • 0 (QUIET) - 默认
          • 1 (INFO)
          • 2 (VERBOSE)
          • 3 (DEEP) - 常用于调试。

警告

日志文件不会滚动并将继续增长,建议将 TraceLevel 的值设置为 0,以便不记录任何内容 

  • (AV Connector 版本 1.0.3 和更早的行为):每当服务启动时,日志文件都会被截断,因此,如果要在重新启动或服务重新启动时保留跟踪文件,则必须保留日志文件。
  • 这些值可以随时使用 'regedit' 工具添加/更改,更新将立即生效。

avshim.png

  • v1.0 注册表项将位于以下位置之一:
    • 64位操作系统:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP Antivirus Connector\v1.0
    • 32位操作系统: HKEY_LOCAL_MACHINE\SOFTWARE\Data ONTAP\Clustered Data ONTAP Antivirus Connector\v1.0     - 不太常见。    
  • 要禁用防病毒连接器日志,请删除注册表项 TracePath TraceLevel

使用 Windows CLI 进行配置:

  • 启用日志记录:
    1. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP Antivirus Connector\v1.0" /v TracePath /t REG_SZ /d "C:\<log path>" /f
    2. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP Antivirus Connector\v1.0" /v TraceLevel /t REG_DWORD /d <log level> /f
  • 禁用日志记录
    1. reg edit "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP Antivirus Connector\v1.0" /v TraceLevel /t REG_DWORD /d 0 /f

 

内部参考

内部参考_text

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.