简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
在ONTAP SVM上启用或禁用审核
您可以在 Storage Virtual Machine ( SVM )上启用或禁用审核。您可能希望通过禁用审核来暂时停止文件和目录审核。您可以随时启用审核(如果存在审核配置)。
开始之前
在 SVM 上启用审核之前, SVM 的审核配置必须已存在。
关于此任务
禁用审核不会删除审核配置。
步骤
-
执行相应的命令:
审核条件
输入命令 …
enabled
vserver audit enable -vserver vserver_name已禁用
vserver audit disable -vserver vserver_name -
验证审核是否处于所需状态:
vserver audit show -vserver vserver_name
示例
以下示例将为 SVM vs1 启用审核:
cluster1::> vserver audit enable -vserver vs1
cluster1::> vserver audit show -vserver vs1
Vserver: vs1
Auditing state: true
Log Destination Path: /audit_log
Categories of Events to Audit: file-ops, cifs-logon-logoff
Log Format: evtx
Log File Size Limit: 100MB
Log Rotation Schedule: Month: -
Log Rotation Schedule: Day of Week: -
Log Rotation Schedule: Day: -
Log Rotation Schedule: Hour: -
Log Rotation Schedule: Minute: -
Rotation Schedules: -
Log Files Rotation Limit: 10
以下示例将禁用 SVM vs1 的审核:
cluster1::> vserver audit disable -vserver vs1
Vserver: vs1
Auditing state: false
Log Destination Path: /audit_log
Categories of Events to Audit: file-ops, cifs-logon-logoff
Log Format: evtx
Log File Size Limit: 100MB
Log Rotation Schedule: Month: -
Log Rotation Schedule: Day of Week: -
Log Rotation Schedule: Day: -
Log Rotation Schedule: Hour: -
Log Rotation Schedule: Minute: -
Rotation Schedules: -
Log Files Rotation Limit: 10