HP StorageWorks P9000 Replication Manager Software 7.1 Configuration Guide (TB584-96022, May 2011)

Sample VBScript file
NOTE:
CHR(34) indicates a double quotation mark ("). When Application
Agent-installation-folder does not contain any spaces, you do not need to specify CHR(34).
The following is the specification when there are no spaces:
"C:\drm\bin\drmjobsch.exe" & " -recover -hostname virtual-server-name"
For details on the specification method, consult your VBScript documentation.
'Script-Level Global Variables
Resource.LogInformation("Script-wide code begins execution")
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Function Online( )
Online = 0
Resource.LogInformation "Entering Online"
Set oExec = WshShell.Exec (CHR(34) & "C:\Program Files\CVXPAE
\drm\bin\drmjobsch.exe" & CHR(34) & " -recover -hostname virtual-server-name")
Do While oExec.Status = 0
Set oWait = WshShell.Exec("timeout /t 1")
Loop
Resource.LogInformation "Exiting Online"
End Function
Function Offline( )
Offline = 0
End Function
Function LooksAlive( )
LooksAlive = 0
End Function
Function IsAlive( )
IsAlive = 0
End Function
Function Open( )
Open = 0
End Function
Function Close( )
Close = 0
End Function
Function Terminate( )
Terminate = 0
End Function
Application Agent and Replication Manager log output
The number of Application Agent instances in your storage configuration must be considered when
configuring the amount of log output, as described in About Replication Manager log
output on page 76.
If the number of target Application Agent instances exceeds 30, you need to tune the file capacity
and number of files as follows:
Trace log size = current file capacity + 2.6 * number-of-Application-Agent instances
Database log size = current file capacity + 0.5 * number-of-Application-Agent instances
Configuration Guide 65