Dim oAPI, eventMsg
Dim strPathName, objParameters, MyFile, fso, fileName, strArg
Dim objShell, objEnv, path
Set fso = CreateObject("Scripting.FileSystemObject")
Set oAPI = CreateObject("MOM.ScriptAPI")
set objShell = CreateObject("WScript.Shell")
set objEnv = objShell.Environment("System")
path = objEnv("PowerPath_MOM_Path")
If Not fso.FolderExists(path & "\Temp") Then
fso.CreateFolder(path & "\Temp")
End If
Set objParameters = WScript.Arguments
For Each strArg in objParameters
If strArg <> chr(13) Then
eventMsg = eventMsg & " " & strArg
End If
Next
' Get bus,target and lun numbers in format cXtYdZ, use this as file prefix
strPathName = objParameters(1)
fileName = path & "\Temp\" & strPathName & "_dead"
Set MyFile = fso.CreateTextFile(fileName, True)
MyFile.Close
Call oAPI.LogScriptEvent("-", 2333, 2, eventMsg)
Set strArg = Nothing
Set eventMsg = Nothing
Set strPathName = Nothing
Set objParameters = Nothing
Set MyFile = Nothing
Set fso = Nothing
Set oAPI = Nothing
Set fileName = Nothing
Set objShell = Nothing
Set objEnv = Nothing
Set path = Nothing</Script></ScriptBody>
<TimeoutSeconds>1800</TimeoutSeconds>
</WriteAction>
</WriteActions>
</Rule>