Fujitsu Storage Systems ETERNUS PRO DiagnosticWriteAction

Fujitsu.Storage.Systems.ETERNUS.PRO.DiagnosticWriteAction (WriteActionModuleType)

Element properties:

TypeWriteActionModuleType
IsolationAny
AccessibilityInternal
RunAsDefault
InputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
DiagnosticPS WriteAction Microsoft.SystemCenter.VirtualMachineManager.PRO.V2.Recovery.RecoveryScriptModule Default

Overrideable Parameters:

IDParameterTypeSelector
EventDescriptionstring$Config/EventDescription$

Source Code:

<WriteActionModuleType ID="Fujitsu.Storage.Systems.ETERNUS.PRO.DiagnosticWriteAction" Accessibility="Internal" Batching="false">
<Configuration>
<xsd:element minOccurs="1" name="EventDescription" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="EventDescription" Selector="$Config/EventDescription$" ParameterType="string"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<WriteAction ID="DiagnosticPS" TypeID="VMMPROV2Library!Microsoft.SystemCenter.VirtualMachineManager.PRO.V2.Recovery.RecoveryScriptModule">
<EventDescription>$Config/EventDescription$</EventDescription>
<ScriptBody><Script>
Param([string]$eventContent)

$EventlogSource = "FujitsuStorageSystemsETERNUSPRO"

# set PROTip status Running
Set-SCPROTip -PROTipId $PROTipID -TipStatus Running

$Script = 'eventcreate /T Information /ID 1 /L APPLICATION /SO $EventlogSource /D "PROTip: $PROTipID is resolved.";
Set-SCPROTip -PROTipId $PROTipID -TipStatus Resolved;'

# set PROTip status Active
Set-SCPROTip -PROTipId $PROTipID -ActionScript $Script -TipStatus Active

</Script></ScriptBody>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="DiagnosticPS"/>
</Composition>
</Composite>
</ModuleImplementation>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>