The following example shows a simple input script in both standard and XML formats.

Standard format

XML format

 

 

Action= Configure

<?xml version="1.0"?>

Method= Custom

<Config.document>

 

<Action>Configure</Action>

Controller= Slot 1

<Method>Custom</Method>

Array=A

<Controller ID="Slot 1">

Drive= 1I:4:8, 1I:4:7

<Array ID="A">

 

<Drive>1I:4:8, 1I:4:7</Drive>

LogicalDrive= 1

<LogicalDrive ID="1">

<Raid>0</Raid>

RAID= 0

<Size>100000</Size>

Size= 100000

</LogicalDrive>

 

</Array>

 

</Controller>

 

</Config.document>

XML input file DTD

The following DTD outlines the parameters for an HP SSA scripting XML input file.

<!DOCTYPE Config.document [

<!ELEMENT Config.document ( Action, Method, Controller+ ) > <!ELEMENT Action ( Configure Reconfigure ) >

<!ELEMENT Method ( Auto Custom ) >

<!ELEMENT Controller, Array ) ChassisName? ClearConfigurationWithDataLoss DPOEnable? DriveWriteCache? ElevatorSortEnable? ExpandPriority? IRPEnable? Initiator? LicenseKey? MNPDelay? PreferredPathMode? QueueDepth? ReadCache? RebuildPriority? SurfaceScanDelay? WriteCache? ) >

<!ATTLIST Controller ID PCDATA #REQUIRED >

<!ELEMENT ClearConfigurationWithDataLoss ( YES NO ) NO > <!ELEMENT DPOEnable ( YES NO ) >

<!ELEMENT DriveWriteCache ( ENABLE DISABLE ) > <!ELEMENT ElevatorSortEnable ( YES NO ) > <!ELEMENT ExpandPriority ( HIGH MEDIUM LOW ) > <!ELEMENT IRPEnable ( YES NO ) >

<!ELEMENT LicenseKey ( #PCDATA ) > <!ELEMENT MNPDelay ( #PCDATA ) >

<!ELEMENT PreferredPathMode ( AUTO MANUAL ) >

<!ELEMENT ReadCache ( 0 10 20 30 40 50 60 70 80 90 100 ) >

<!ELEMENT RebuildPriority ( HIGH MEDIUM LOW ) > <!ELEMENT SurfaceScanDelay ( #PCDATA ) > <!ELEMENT QueueDepth ( #PCDATA ) >

<!ELEMENT WriteCache ( 0 10 20 30 40 50 60 70 80 90 100 ) >

<!ELEMENT Array, LogicalDrive+ ( Drive, OnlineSpare ) >

Operations 104