我想使用wsadmin脚本打开审核日志记录。我能够像这样创建审计通知:
AdminTask.createAuditNotification(' [ - notificationName Log_Notification -sendEmail false -emailList -logToSystemOut true]')
但是我无法创建审计通知监视器,因为它需要有notificationRef:
AdminTask.createAuditNotificationMonitor(' [ - monitorName AuditMonitor -notificationRef WSNotification_1428567470299 -enable true]')
如果我想将ref (AdminTask.getAuditNotificationRef())放入变量中,那么它需要首先配置监视器(根据IBM文档)。如果我不首先配置通知监视器,则getAuditNotificationRef将返回null值。但如果我想配置显示器,我需要notificationRef :(。
对我来说有点令人困惑的事情......任何人都可以帮我解决这个问题吗?
感谢
答案 0 :(得分:1)
这显示以下示例:
AdminTask.createAuditNotification(' -notificationName defaultEmailNotification -logToSystemOut true -sendEmail true -emailList administrator@mycompany.com(smtp-server.mycompany.com) -emailFormat HTML')
AdminTask.createAuditNotificationMonitor(' -notificationName defaultEmailNotification -logToSystemOut true -sendEmail true -emailList administrator@mycompany.com(smtp-server.mycompany.com) -emailFormat HTML')
AdminConfig.save()
如您所见,不需要-notificationRef。
此致 加里