Ativar ou desativar a auditoria em SVMs ONTAP
Você pode ativar ou desativar a auditoria em máquinas virtuais de armazenamento (SVMs). Talvez você queira interromper temporariamente a auditoria de arquivos e diretórios desativando a auditoria. Você pode ativar a auditoria a qualquer momento (se houver uma configuração de auditoria).
Antes de habilitar a auditoria na SVM, a configuração de auditoria da SVM já deve existir.
A desativação da auditoria não exclui a configuração de auditoria.
-
Execute o comando apropriado:
Se você quer que a auditoria seja…
Digite o comando…
Ativado
vserver audit enable -vserver vserver_nameDesativado
vserver audit disable -vserver vserver_name -
Verifique se a auditoria está no estado desejado:
vserver audit show -vserver vserver_name
O exemplo a seguir permite a auditoria do 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
O exemplo a seguir desativa a auditoria para 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