本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
啟用或停用 ONTAP SVM 上的稽核
您可以在儲存虛擬機器(SVM)上啟用或停用稽核。您可能想要停用稽核功能、暫時停止檔案和目錄稽核。您可以隨時啟用稽核(如果存在稽核組態)。
開始之前
在SVM上啟用稽核之前、SVM的稽核組態必須已經存在。
關於這項工作
停用稽核不會刪除稽核組態。
步驟
-
執行適當的命令:
如果您想要稽核…
輸入命令…
已啟用
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