Jump to content

coooly

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

About coooly

Profile Information

  • OS
    Windows 7 x86

coooly's Achievements

0

Reputation

  1. Here's my AutoIT Script to dtrace Symantec Enteprise Vault when it's doing some archiving tasks. (Of course you can modify what you want to monitor) Done because i didn't want to wake at 4am to do this myself WinActivate is used to be sure that autoit send the keys in the right place. (Note that the windows name is dtrace's path) ; Open dtrace and run specifics commands to monitor enterprise vaultservices Run("C:\PROGRA~1\ENTERP~1\DTrace.exe") ; Wait for the dtrace become active WinWaitActive("C:\PROGRA~1\ENTERP~1\DTrace.exe") Sleep(3000) ;Focus to dtrace windows WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") ;List recordable events Send("view") Sleep(3000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") Sleep(3000) ;Record event 84 - StorageDelete WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("set 84 v") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") Sleep(5000) ;Record event 85 - StorageFileWatch WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("set 85 v") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") Sleep(5000) ;Record event 86 - StorageManagement WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("set 86 v") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") Sleep(5000) ;Record log to a specific directory with a current date WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("log C:\Scripts\dtrace\tracelog-"& @Year & "-" & @MON & "-" & @MDAY & "-" & @HOUR & "-" & @MIN & "-" & @SEC & ".log") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") ;Record for an hour Sleep(3600000) ;Stop logging WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("log") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") Sleep(5000) ;Confirmation to stop logging WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("yes") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") Sleep(5000) ;Quit dtrace WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("exit") Sleep(5000) WinActivate("C:\PROGRA~1\ENTERP~1\DTrace.exe") Send("{enter}") ; Finished!
×
×
  • Create New...