<typeAlias>元素

本文详细介绍了SQLMap配置文件中预定义的别名及其使用方法,旨在简化类名引用,提高代码可读性和效率。

<typeAlias>元素让您为一个通常较长的、全限定类名指定一个较短的别名。

在SQL Map配置文件预定义了几个别名。它们是:



 

&lt;lib> &lt;name>createVolumeDP&lt;/name> &lt;code>runlib:checkdplicense| runlib:makecachewarnings| clearversion:PagePool| domethodsstop:91| jumpif:$v.canbecompressed:!=:true:SKIP2| goto:sizeopt| stop| label:SKIP2| goto:size| stop| &lt;/code> &lt;/lib>这是一个xml我想找到&lt;xml> &lt;title>Create Volume&lt;/title> &lt;helpcontextid>CreateVolume&lt;/helpcontextid> &lt;width>800&lt;/width> &lt;height>630&lt;/height> &lt;windowtype>single&lt;/windowtype> &lt;icon>12&lt;/icon> &lt;firstcard>&lt;/firstcard> &lt;createobject>volume&lt;/createobject> &lt;createdefaultname>yes&lt;/createdefaultname> &lt;finishnowcaption>Create Now&lt;/finishnowcaption> &lt;requireconfigstore>true&lt;/requireconfigstore> &lt;vars> &lt;var> &lt;name>basename&lt;/name> &lt;type>String&lt;/type> &lt;/var> &lt;var> &lt;name>skipdisks&lt;/name> &lt;type>String&lt;/type> &lt;/var> &lt;var> &lt;name>fromcmm&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>fromload&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>sourcesecure&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>runmap&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>runnewmap&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>linkerran&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>mapran&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>diskgroupid&lt;/name> &lt;type>int&lt;/type> &lt;/var> &lt;var> &lt;name>pagepoolindex&lt;/name> &lt;type>int&lt;/type> &lt;/var> &lt;var> &lt;name>importTemplate&lt;/name> &lt;type>object&lt;/type> &lt;/var> &lt;var> &lt;name>CopyReplaySchedules&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>convertToBlocks&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>volumetoduplicate&lt;/name> &lt;type>object&lt;/type> &lt;/var> &lt;var> &lt;name>columnList&lt;/name> &lt;type>string&lt;/type> &lt;value>DiskFolderName:COLUMN_HEAD_DISK_FOLDER:180|redundancy:COLUMN_HEAD_REDUNDANCY:180|DataPageSizeDisplay:COLUMN_HEAD_DATAPAGE_SIZE:180|status:COLUMN_HEAD_STATUS:100&lt;/value> &lt;/var> &lt;var> &lt;name>lastcard&lt;/name> &lt;type>String&lt;/type> &lt;/var> &lt;var> &lt;name>pageclassmode&lt;/name> &lt;value>0&lt;/value> &lt;/var> &lt;var> &lt;name>sizewarning&lt;/name> &lt;type>string&lt;/type> &lt;/var> &lt;var> &lt;name>sizewarning2&lt;/name> &lt;type>string&lt;/type> &lt;/var> &lt;var> &lt;name>SystemReadCacheWarning&lt;/name> &lt;type>string&lt;/type> &lt;/var> &lt;var> &lt;name>SystemWriteCacheWarning&lt;/name> &lt;type>string&lt;/type> &lt;/var> &lt;var> &lt;name>tier1writable&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>tier2writable&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>tier3writable&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>tier1replay&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>tier2replay&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>tier3replay&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>selectedtemplate&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>selectedTemplateName&lt;/name> &lt;type>string2&lt;/type> &lt;value>&lt;None>&lt;/value> &lt;/var> &lt;var> &lt;name>NONE&lt;/name> &lt;type>string2&lt;/type> &lt;value>&lt;None>&lt;/value> &lt;/var> &lt;var> &lt;name>dpColumns&lt;/name> &lt;type>string&lt;/type> &lt;value>blank::25:false:false:0:::Cost|raidlevellabel:COLUMN_HEAD_RAID_LEVEL:90|DiskSpeedZone:COLUMN_HEAD_DISK_TRACKS_USED:100|selectedwritable:COLUMN_HEAD_WRITABLE_DATA:90:false:false:11:true:false|selectedhistorical:COLUMN_HEAD_REPLAY_DATA:80:false:false:11:true:false|&lt;/value> &lt;/var> &lt;var> &lt;name>userProfilesFound&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>ReplayTemplateVector&lt;/name> &lt;type>vector&lt;/type> &lt;/var> &lt;var> &lt;name>SelectedTemplatesVector&lt;/name> &lt;type>vector&lt;/type> &lt;/var> &lt;var> &lt;name>selectedReplayProfilesStr&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>comma&lt;/name> &lt;type>string&lt;/type> &lt;value>, &lt;/value> &lt;/var> &lt;var> &lt;name>labelValue1&lt;/name> &lt;type>string&lt;/type> &lt;value>Storage Profile:&lt;/value> &lt;/var> &lt;var> &lt;name>labelValue2&lt;/name> &lt;type>string&lt;/type> &lt;value>RAID Types:&lt;/value> &lt;/var> &lt;var> &lt;name>labelValue3&lt;/name> &lt;type>string&lt;/type> &lt;value>Storage Tier:&lt;/value> &lt;/var> &lt;var> &lt;name>storageLabel1&lt;/name> &lt;type>string&lt;/type> &lt;value>Storage Profile:&lt;/value> &lt;/var> &lt;var> &lt;name>storageLabel2&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>storageValue1&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>storageValue2&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>storageTierText&lt;/name> &lt;type>string&lt;/type> &lt;value>Select the RAID and Storage Tier settings for this volume:&lt;/value> &lt;/var> &lt;var> &lt;name>textValue1&lt;/name> &lt;type>string&lt;/type> &lt;value>Select the RAID and Storage Tier settings for this volume:&lt;/value> &lt;/var> &lt;var> &lt;name>textValue2&lt;/name> &lt;type>string&lt;/type> &lt;value>Select the Storage Tier setting for this volume:&lt;/value> &lt;/var> &lt;var> &lt;name>defaultServer&lt;/name> &lt;type>object&lt;/type> &lt;/var> &lt;var> &lt;name>colon&lt;/name> &lt;type>string&lt;/type> &lt;value>:&lt;/value> &lt;/var> &lt;var> &lt;name>dataoptimization&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>canbecompressed&lt;/name> &lt;type>boolean&lt;/type> &lt;value>false&lt;/value> &lt;/var> &lt;var> &lt;name>compressionLabelString&lt;/name> &lt;type>string&lt;/type> &lt;value>Compression Enabled:&lt;/value> &lt;/var> &lt;var> &lt;name>compressionLabel&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;var> &lt;name>compressionValue&lt;/name> &lt;type>string&lt;/type> &lt;value>&lt;/value> &lt;/var> &lt;/vars> &lt;cards> &lt;card> &lt;id>diskfolder&lt;/id> &lt;region>diskfolder&lt;/region> &lt;regionstart>diskfolder&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/Disks.htm&lt;/url> &lt;tab>2&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>setattr:$v.lastcard:diskfolder&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>runlib:selectdisk&lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>redundancy&lt;/id> &lt;region>redundancy&lt;/region> &lt;regionstart>redundancy&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/Redundancy.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>setattr:$v.lastcard:redundancy&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Non-Redundant&lt;/defaultlabel> &lt;labelkey>0498&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>setattr:$v.diskFailureProtection:0| setattr:$v.dfPagepoolVector:nonredundantPagepools| setattr:$p.primetype:non-redundant| setattr:$p.diskFailureProtection:0| setattr:$v.storageTierText:$v.textValue2| runlib:checkNonRedundant| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;menuitem> &lt;defaultlabel>Redundant&lt;/defaultlabel> &lt;labelkey>0499&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>setattr:$v.diskFailureProtection:1| setattr:$v.dfPagepoolVector:redundantPagepools| setattr:$p.primetype:redundant| setattr:$p.diskFailureProtection:1| setattr:$v.storageTierText:$v.textValue1| runlib:checkRedundant| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>selectpagepool&lt;/id> &lt;region>selectpagepool&lt;/region> &lt;regionstart>selectpagepool&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/SelectPagepool.htm&lt;/url> &lt;contextid>1&lt;/contextid> &lt;code>setattr:$v.lastcard:selectpagepool&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>runlib:selectPagepool|&lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>bpwait&lt;/id> &lt;region>bpwait&lt;/region> &lt;regionstart>bpwait&lt;/regionstart> &lt;url>wiz/eng/html/questions/bpwait2.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;donecode>stopif:$w.doneEventSuccess:=:false| runbackground:postsave| &lt;/donecode> &lt;/card> &lt;card> &lt;id>pagepooldown&lt;/id> &lt;region>pagepooldown&lt;/region> &lt;regionstart>pagepooldown&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/PagepoolDown.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Close&lt;/defaultlabel> &lt;labelkey>0112&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>return&lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;menuitem> &lt;defaultlabel>Retry&lt;/defaultlabel> &lt;labelkey>3021&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>goto:diskfolder&lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>pagepooldown2&lt;/id> &lt;region>pagepooldown2&lt;/region> &lt;regionstart>pagepooldown2&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/PagepoolDown.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;hideback>true&lt;/hideback> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Close&lt;/defaultlabel> &lt;labelkey>0112&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>return&lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>size&lt;/id> &lt;region>size&lt;/region> &lt;regionstart>size&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/DynamicSize.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>domethodsstop:85| jumpif:$u.DPPrompt:!=:true:CHECKCACHE| stop| label:CHECKCACHE| jumpif:$u.cacheprompt:!=:true:SKIP| stop| label:SKIP| goto:sizenoadvance| stop| &lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Advanced&lt;/defaultlabel> &lt;labelkey>3020&lt;/labelkey> &lt;defaulttooltip>Change advanced settings for this Volume&lt;/defaulttooltip> &lt;tooltipkey>3263&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>domethodsstop:13| refresh| jumpif:$m.expandsize:igt:$w.MaxVolBlockCount:TOOBIG| jumpif:$m.expandsize:ilt:$m.DataPageSize:TOOSMALL| goto:dp| stop| label:TOOBIG| getmsg:3269:$v.emsg:$w.MaxVolSizeStr| msgbox:$v.emsg:$w.title:E| stop| label:TOOSMALL| getmsg:3268:$v.sizeMsg:$m.minsize| msgbox:$v.sizeMsg:$w.title:W| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>domethodsstop:13| refresh| jumpif:$m.expandsize:igt:$w.MaxVolBlockCount:TOOBIG| jumpif:$m.expandsize:ilt:$m.DataPageSize:TOOSMALL| runlib:checkprogression| goto:replay| stop| label:TOOBIG| concat:The maximum size of a Volume is~:$w.MaxVolSizeStr:$v.emsg| concat:$v.emsg:.:$v.emsg| msgbox:$v.emsg:$w.title:E| stop| label:TOOSMALL| getmsg:3268:$v.sizeMsg:$m.minsize| msgbox:$v.sizeMsg:$w.title:W| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>sizeopt&lt;/id> &lt;region>size&lt;/region> &lt;regionstart>size&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/DynamicSizeOpt.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>domethodsstop:85| jumpif:$u.DPPrompt:!=:true:CHECKCACHE| stop| label:CHECKCACHE| jumpif:$u.cacheprompt:!=:true:SKIP| stop| label:SKIP| goto:sizenoadvanceopt| stop| &lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Advanced&lt;/defaultlabel> &lt;labelkey>3020&lt;/labelkey> &lt;defaulttooltip>Change advanced settings for this Volume&lt;/defaulttooltip> &lt;tooltipkey>3263&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>domethodsstop:13| refresh| jumpif:$m.expandsize:igt:$w.MaxVolBlockCount:TOOBIG| jumpif:$m.expandsize:ilt:$m.DataPageSize:TOOSMALL| goto:dp| stop| label:TOOBIG| getmsg:3269:$v.emsg:$w.MaxVolSizeStr| msgbox:$v.emsg:$w.title:E| stop| label:TOOSMALL| getmsg:3268:$v.sizeMsg:$m.minsize| msgbox:$v.sizeMsg:$w.title:W| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>domethodsstop:13| refresh| jumpif:$m.expandsize:igt:$w.MaxVolBlockCount:TOOBIG| jumpif:$m.expandsize:ilt:$m.DataPageSize:TOOSMALL| runlib:checkprogression| goto:replay| stop| label:TOOBIG| concat:The maximum size of a Volume is~:$w.MaxVolSizeStr:$v.emsg| concat:$v.emsg:.:$v.emsg| msgbox:$v.emsg:$w.title:E| stop| label:TOOSMALL| getmsg:3268:$v.sizeMsg:$m.minsize| msgbox:$v.sizeMsg:$w.title:W| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>sizenoadvance&lt;/id> &lt;region>size&lt;/region> &lt;regionstart>size&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/DynamicSize.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand> copy:$m:$q| domethodsstop:13| refresh| jumpnull:$i:OKCOPY| jumpif:$i.type:!=:wizvar:OKCOPY| jumpif:$i.CopyVolume:=:false:OKCOPY| jumpif:$m.expandsize:igt=:$q.expandsize:OKCOPY| msgbox:The destination volume cannot be smaller than the source volume.:$w.title:E| stop| label:OKCOPY| jumpif:$m.expandsize:igt:$w.MaxVolBlockCount:TOOBIG| jumpif:$m.expandsize:ilt:$m.DataPageSize:TOOSMALL| runlib:checkprogression| goto:replay| stop| label:TOOBIG| concat:The maximum size of a Volume is~:$w.MaxVolSizeStr:$v.emsg| concat:$v.emsg:.:$v.emsg| msgbox:$v.emsg:$w.title:E| stop| label:TOOSMALL| getmsg:3268:$v.sizeMsg:$m.minsize| msgbox:$v.sizeMsg:$w.title:W| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>sizenoadvanceopt&lt;/id> &lt;region>size&lt;/region> &lt;regionstart>size&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/DynamicSizeOpt.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand> copy:$m:$q| domethodsstop:13| refresh| jumpnull:$i:OKCOPY| jumpif:$i.type:!=:wizvar:OKCOPY| jumpif:$i.CopyVolume:=:false:OKCOPY| jumpif:$m.expandsize:igt=:$q.expandsize:OKCOPY| msgbox:The destination volume cannot be smaller than the source volume.:$w.title:E| stop| label:OKCOPY| jumpif:$m.expandsize:igt:$w.MaxVolBlockCount:TOOBIG| jumpif:$m.expandsize:ilt:$m.DataPageSize:TOOSMALL| runlib:checkprogression| goto:replay| stop| label:TOOBIG| concat:The maximum size of a Volume is~:$w.MaxVolSizeStr:$v.emsg| concat:$v.emsg:.:$v.emsg| msgbox:$v.emsg:$w.title:E| stop| label:TOOSMALL| getmsg:3268:$v.sizeMsg:$m.minsize| msgbox:$v.sizeMsg:$w.title:W| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>dp&lt;/id> &lt;region>dp&lt;/region> &lt;regionstart>dp&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/DataProgression.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>stopif:$u.DPPrompt:=:true| goto:advancedoptions| stop| &lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>runlib:checkprogression| goto:advancedoptions| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>advancedoptions&lt;/id> &lt;region>advancedoptions&lt;/region> &lt;regionstart>advancedoptions&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/AdvancedOptions.htm&lt;/url> &lt;tab>2&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>jumpif:$v.SystemReadCacheWarning:!=::TWO| jumpif:$v.SystemWriteCacheWarning:!=::TWO| stopif:$u.cacheprompt:=:true| goto:replay| stop| label:TWO| goto:advancedoptions2| &lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>setattrint:$m.RCacheRAStatus:$m.RCacheStatus| goto:replay| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>advancedoptions2&lt;/id> &lt;region>advancedoptions2&lt;/region> &lt;regionstart>advancedoptions2&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/AdvancedOptions2.htm&lt;/url> &lt;tab>2&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>stopif:$u.cacheprompt:=:true| goto:replay &lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>setattrint:$m.RCacheRAStatus:$m.RCacheStatus| goto:replay &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>replay&lt;/id> &lt;region>replay&lt;/region> &lt;regionstart>replay&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/TemplateSelection.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>jumpnull:$l:LICENSED| jumpif:$l.Enabled^13:=:1:LICENSED| goto:save| stop| label:LICENSED| jumpif:$u.ReplayOption:i=:1:CONTINUE| jumpif:$u.ReplayOption:i=:0:SAVE| jumpif:$u.ReplayOption:i=:2:SAVE| jump:CONTINUE| label:SAVE| goto:save| stop| label:CONTINUE| &lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>goto:save| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>save&lt;/id> &lt;region>save&lt;/region> &lt;regionstart>save&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/Save.htm&lt;/url> &lt;adminurl>wiz/eng/html/questions/CreateVolume/SaveAdmin.htm&lt;/adminurl> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Continue&lt;/defaultlabel> &lt;labelkey>3001&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>jumpif:$w.userprivlevel:i=:5:ADMIN| jumpif:$m.parentobjectid:i!=:0:NOTROOT| getmsg:3397:$v.PrivWarning| msgbox:$v.PrivWarning:$w.title:W| stop| label:NOTROOT| label:ADMIN| setattr:$v.sizewarning:| setattr:$v.sizewarning2:| jumpif:$m.expandsize:ilt:4294967297:NONE| setattr:$v.sizewarning:Warning - Some operating systems do not support volumes greater than 2 TB.| setattr:$v.sizewarning2:Please verify that the server operating system supports volumes of this size.| label:NONE| jumpif:$v.skipfinish:=:true:SKIPFINISH| domethodsstop:$u:5| runlib:fixstoragelabels| runlib:fixcompressionlabels| goto:finish| stop| label:SKIPFINISH| return:$m:CREATE| stop| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;card> &lt;id>finish&lt;/id> &lt;region>finish&lt;/region> &lt;regionstart>finish&lt;/regionstart> &lt;url>wiz/eng/html/questions/CreateVolume/FinishDP.htm&lt;/url> &lt;tab>1&lt;/tab> &lt;contextid>1&lt;/contextid> &lt;code>&lt;/code> &lt;buttons> &lt;menuitem> &lt;defaultlabel>Create Now&lt;/defaultlabel> &lt;labelkey>3002&lt;/labelkey> &lt;defaulttooltip>&lt;/defaulttooltip> &lt;tooltipkey>-1&lt;/tooltipkey> &lt;imagekey>0112&lt;/imagekey> &lt;actioncommand>runlib:afterCreateVolumeDP| &lt;/actioncommand> &lt;itemstate>ENABLED&lt;/itemstate> &lt;sticky>0&lt;/sticky> &lt;stickystate>0&lt;/stickystate> &lt;priv>3&lt;/priv> &lt;/menuitem> &lt;/buttons> &lt;/card> &lt;/cards> &lt;instructions> &lt;lib> &lt;name>start&lt;/name> &lt;event>start&lt;/event> &lt;code>setsize:800:630| runlib:setprimingdefaults| setattr:$v.diskgroupid:$u.diskgroupid| runlib:checktitle| jumpnull:$i:CONTINUE| jumpif:$i.type:!=:wizvar:CONTINUE| setobject:$i.sourcevolumeobject:$o| jumpnull:$o:CONTINUE| getstop:$o| setattr:$v.skiplinker:YES| setattr:$v.ExactDuplicate:$i.ExactDuplicate| setattr:$v.CopyVolume:$i.CopyVolume| setattr:$v.CopyReplaySchedules:$i.CopyReplaySchedules| setattr:$v.fromcmm:true| jumpif:$o.isSecure:=:false:NOSED| setattr:$v.sourcesecure:true| label:NOSED| setattr:$v.diskgroupid:$o.diskgroupid| runlib:checkduplicate| jumpif:$i.ExactDuplicate:=:true:EXACT| setattr:$m.name:$i.duplicatesname| jump:FINISH| label:EXACT| setattr:$m.name:$i.duplicatesname| setattr:$m.notes:$i.notes| setattr:$m.parentobjectid:$i.duplicatefolder| jumpif:$v.CopyReplaySchedules:!=:true:NOREPLAY| domethodsstop:$o:45| setattrobject:$v.importTemplate:$o.snapshotprofile| label:NOREPLAY| runlib:save| end| label:CONTINUE| jumpif:$v.InitialBlockCount:=::CONTINUE2| jumpif:$v.InitialBlockCount:=:0:CONTINUE2| // must be from Load/Restore VolumeFromExternalDevice| setattr:$v.fromload:true| setattr:$v.newname:$v.InitialDiskName| trim:$v.newname:64| jumpif:$v.newname:=::EMPTYNAME| setattr:$m.name:$v.newname| label:EMPTYNAME| setattr:$m.expandsize:$v.InitialBlockCount| setattr:$v.convertToBlocks:true| domethodsstop:$m:14| jumpif:$m.name:!=::FINISH| label:CONTINUE2| jumpif:$v.newname:=::EMPTYNAME2| setattr:$m.name:$v.newname| jump:FINISH| label:EMPTYNAME2| setattr:$v.basename:$u.VolumeBaseName| domethodsstop:15|//generate name| label:FINISH| getstop:$s| getstop:$u| setattr:$v.diskgroupid:$u.diskgroupid| runlib:fillreplayvectors| runlib:checkInput| runlib:setparent| runlib:setfirstcard| end| &lt;/code> &lt;/lib> &lt;lib> &lt;name>fillreplayvectors&lt;/name> &lt;code>retrievetable:PITCRuleGroup:$g| vectorset:$g:$v.ReplayTemplateVector| jumpif:$v.fromcmm:=:true:SKIP| jumpif:$v.fromload:=:true:SKIP| jumpif:$u.ReplayOption:i=:0:SKIP| domethodsstop:$u:3| label:SKIP| &lt;/code> &lt;/lib> &lt;lib> &lt;name>setprimingdefaults&lt;/name> &lt;code>setattr:$v.diskFailureProtection:1| setattr:$v.dfPagepoolVector:redundantPagepools| setattr:$p.primetype:redundant| setattr:$p.diskFailureProtection:1| &lt;/code> &lt;/lib> &lt;lib> &lt;name>setfirstcard&lt;/name> &lt;code>jumpif:$v.skipdisks:=:YES:SKIPDF| jumpif:$u.diskgroupidprompt:=:true:DF| label:SKIPDF| jumpif:$u.redundantonly:=:false:REDUNDANCY| jump:RUNWIZARD| label:DF| setattr:$w.firstcard:diskfolder| stop| label:REDUNDANCY| setattr:$w.firstcard:redundancy| stop| label:RUNWIZARD| setattr:$w.firstcard:diskfolder| setattr:$v.diskFailureProtection:1| setattr:$v.dfPagepoolVector:redundantPagepools| setattr:$p.primetype:redundant| setattr:$p.diskFailureProtection:1| runlib:checkRedundant| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>gotodiskfolder&lt;/name> &lt;code>jumpif:$v.skipdisks:=:YES:SKIP| jumpif:$u.diskgroupidprompt:=:false:SKIP| goto:diskfolder| stop| label:SKIP| runlib:gotoredundancy| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>gotoredundancy&lt;/name> &lt;code>jumpif:$u.redundantonly:=:true:SKIP| goto:redundancy| stop| label:SKIP| setattr:$v.diskFailureProtection:1| setattr:$p.diskFailureProtection:1| runlib:checkRedundant| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checktitle&lt;/name> &lt;code>setattr:$w.replacetitle:Create Volume| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkInput&lt;/name> &lt;code>jumpnull:$i:INULL| jumpif:$i.type:=:diskfolder:DF| jumpif:$i.type:=:server:SERVER| label:INULL| jumpif:$u.AutoMap:=:true:MAP| jump:CONTINUE| label:SERVER| setattr:$v.runmap:true| setattr:$v.serverid:$i.objectid| jumpif:$u.AutoMap:=:true:MAP| jump:CONTINUE| label:DF| setattr:$v.diskgroupid:$i.objectid| setattr:$v.skipdisks:YES| jumpif:$u.AutoMap:=:true:MAP| jump:DONE| label:MAP| jumpif:$s.NewMappingEnabled:=:true:NEWMAP| jumpif:$u.DefaultServer:i=:0:CONTINUE| setattr:$v.runmap:true| setattr:$v.serverid:$u.DefaultServer| jumpif:$v.skipdisks:=:YES:DONE| jump:CONTINUE| label:NEWMAP| jumpif:$u.DefaultServer:=::CONTINUE| jumpif:$u.DefaultServer:=:0:CONTINUE| retrieveobject:$v.defaultServer:MappingServer:objectid:$u.DefaultServer| jumpnull:$v.defaultServer:CONTINUE| setattr:$v.runnewmap:true| jumpif:$v.skipdisks:=:YES:DONE| jump:CONTINUE| label:CONTINUE| domethodsstop:33| jump:DONE| label:DONE| &lt;/code> &lt;/lib> &lt;lib> &lt;name>setparent&lt;/name> &lt;code>jumpnull:$i:X| jumpif:$i.type:!=:volumefolder:X| setattr:$m.parentobjectid:$i.objectid| stop| label:X| jumpif:$v.parentfolder:=::NOPARAM| jumpif:$v.parentfolder:i=:0:NOPARAM| setattr:$m.parentobjectid:$v.parentfolder| stop| label:NOPARAM| stopif:$w.userprivlevel:i=:5| findchild:0:volumesnode:$i| stopnull:$i| vectorgetchildren:$i:$g| loop:$g| jumpif:$g.type:!=:volumefolder:NEXT| setattr:$m.parentobjectid:$g.objectid| stop| label:NEXT| endloop:$g| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkduplicate&lt;/name> &lt;code>setattrobject:$v.volumetoduplicate:$o| domethodsstop:$m:6| &lt;/code> &lt;/lib> &lt;lib> &lt;name>selectdisk&lt;/name> &lt;code>jumpif:$v.diskgroupid:=:0:MSG1| jumpif:$v.diskgroupid:=:1:MSG2| jumpif:$v.diskgroupid:=:69696969:MSG2| domethodserrorjump:$m:63:ERROR| jump:CONTINUE| label:ERROR| print:Error occurred resetting volume defaults when changing disk folder.| label:CONTINUE| runlib:gotoredundancy| end| label:MSG1| msgbox:You must select a Disk Folder for the volume.:$w.title:E| stop| label:MSG2| msgbox:You must select a folder other than "Unassigned" or "External Devices".:$w.title:E| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>selectPagepool&lt;/name> &lt;code>setobjectnull:$y| loop:$h| jumpif:$h.selected:=:false:NEXT| setobject:$h:$y| jump:OUT| label:NEXT| endloop:$h| label:OUT| jumpnull:$y:NOSELECTION| jumpif:$y.status:i!=:1:DOWN| jumpif:$y.xstatus:i!=:1:DOWN| runlib:checkPagepool| stop| label:DOWN| msgbox:Unable to use the selected storage type for volume creation because it is currently down.:$w.title:W| stop| label:NOSELECTION| msgbox:You must select a storage type for this volume.:$w.title:W| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkRedundant&lt;/name> &lt;code>runlib:getDiskFolder| jumpnull:$z:DFERROR| vectorget:$z.redundantPagepools:$h| runlib:checkPagepools| stop| label:DFERROR| msgbox:Error retrieving disk folder information.:$w.title:E| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkNonRedundant&lt;/name> &lt;code>runlib:getDiskFolder| jumpnull:$z:DFERROR| vectorget:$z.nonredundantPagepools:$h| runlib:checkPagepools| stop| label:DFERROR| msgbox:Error retrieving disk folder information.:$w.title:E| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkDualRedundant&lt;/name> &lt;code>runlib:getDiskFolder| jumpnull:$z:DFERROR| vectorget:$z.dualRedundantPagepools:$h| runlib:checkPagepools| stop| label:DFERROR| msgbox:Error retrieving disk folder information.:$w.title:E| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>getDiskFolder&lt;/name> &lt;code>newobject:diskfolder:$z| getstop:$z:$v.diskgroupid| jumpif:$v.sourcesecure:=:false:NOSED| jumpif:$z.DARP:i=:4:NOSED| msgbox:WARNING! Destination folder is not Secure Data protected. :$w.title:W| label:NOSED| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkPagepools&lt;/name> &lt;code>jumpif:$h.count:=:0:ZERO| jumpif:$h.count:=:1:ONE| jumpif:$u.DisallowDataPageSizeChange:=:true:FIND2MB| loop:$h| jumpif:$h.DataPageSize:i=:4096:SELECT| setattr:$h.selected:false| jump:NEXT| label:SELECT| setattr:$h.selected:true| label:NEXT| endloop:$h| goto:selectpagepool| stop| label:FIND2MB| loop:$h| jumpif:$h.DataPageSize:i=:4096:FOUND| endloop:$h| goto:selectpagepool| stop| label:FOUND| setobject:$h:$y| runlib:checkPagepool| stop| label:ZERO| runlib:primeDiskFolder| stop| label:ONE| setobject:$h:$y| runlib:checkPagepool| &lt;/code> &lt;/lib> &lt;lib> &lt;name>primeDiskFolder&lt;/name> &lt;code>jumpif:$w.userprivlevel:i!=:5:NOPRIV| setattr:$p.isPrimed:false| runwiz:PrimeStorage:$z| jumpif:$p.isPrimed:=:true:FOUND| setattr:$v.runningDP:false| runlib:cancelprime| end| label:FOUND| jumpif:$v.diskFailureProtection:i=:0:NONREDUNDANT| jumpif:$v.diskFailureProtection:i=:2:DUALREDUNDANT| runlib:checkRedundant| stop| label:NONREDUNDANT| runlib:checkNonRedundant| stop| label:DUALREDUNDANT| runlib:checkDualRedundant| stop| label:NOPRIV| getmsg:3267:$v.noprivmsg:$m.name| msgbox:$v.noprivmsg:$w.title:W| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkPagepool&lt;/name> &lt;code>geterrorjump:$y:ERROR| jumpif:$y.status:i!=:1:DOWN| jumpif:$y.xstatus:i!=:1:DOWN| setattr:$m.PagePoolIndex:$y.objectid| domethodserrorjump:$m:66:DEFAULTSERROR| jump:CONTINUE| label:DEFAULTSERROR| print:Error occurred resetting volume defaults when changing disk folder or storage type.| label:CONTINUE| runlib:createVolume| stop| label:DOWN| setattr:$v.runningDP:false| goto:pagepooldown| stop| label:ERROR| msgbox:Unable to retrieve storage type information. Storage type may no longer be available.:$w.title:E| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>createVolume&lt;/name> &lt;code>setattr:$p.diskFailureProtection:$v.diskFailureProtection| runlib:createVolumeDP| &lt;/code> &lt;/lib> &lt;lib> &lt;name>afterCreateVolumeDP&lt;/name> &lt;code>setattrobject:$v.importTemplate:$m.snapshotprofile| runlib:checkPagepool2| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkPagepool2&lt;/name> &lt;code>geterrorjump:$y:ERROR| jumpif:$y.status:i!=:1:DOWN| jumpif:$y.xstatus:i!=:1:DOWN| setattr:$v.runningDP:false| runlib:save| stop| label:DOWN| setattr:$v.runningDP:false| goto:pagepooldown2| stop| label:ERROR| msgbox:Unable to retrieve storage type information. Storage type may no longer be available.:$w.title:E| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>cancelprime&lt;/name> &lt;code>jumpif:$u.diskgroupidprompt:=:true:CHECKSKIPDISKS| jump:CHECKREDUNDANCY| label:CHECKSKIPDISKS| jumpif:$v.skipdisks:!=:YES:GOTODF| jump:CHECKREDUNDANCY| label:CHECKREDUNDANCY| jumpif:$u.redundantonly:=:false:GOTODF| return| label:GOTODF| goto:diskfolder| &lt;/code> &lt;/lib> &lt;lib> &lt;name>fixstoragelabels&lt;/name> &lt;code>setattr:$v.pageclassmode:0| jumpif:$u.DPPrompt:=:false:NODP| runlib:fixdplabels| stop| label:NODP| setattr:$v.storageLabel1:| setattr:$v.storageValue1:| setattr:$v.storageLabel2:| setattr:$v.storageValue2:| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>fixnodplabels&lt;/name> &lt;code>setattr:$v.storageLabel1:$v.labelValue3| setattr:$v.storageValue1:$m.StorageTierDisplay| jumpif:$m.DiskFailureProtection:i=:1:REDUNDANT| setattr:$v.storageLabel2:| setattr:$v.storageValue2:| stop| label:REDUNDANT| setattr:$v.storageLabel2:$v.labelValue2| setattr:$v.storageValue2:$m.RaidTypesDisplay| &lt;/code> &lt;/lib> &lt;lib> &lt;name>fixdplabels&lt;/name> &lt;code>setattr:$v.storageLabel1:$v.labelValue1| setattr:$v.storageValue1:$m.DPTemplateName| setattr:$v.storageLabel2:| setattr:$v.storageValue2:| &lt;/code> &lt;/lib> &lt;lib> &lt;name>fixcompressionlabels&lt;/name> &lt;code>jumpif:$m.CompressionSupported:=:true:COMPRESSIONSUPPORTED| setattr:$v.compressionLabel:| setattr:$v.compressionValue:| stop| label:COMPRESSIONSUPPORTED| setattr:$v.compressionLabel:$v.compressionLabelString| jumpif:$v.dataoptimization:=:true:COMPRESSION| setattr:$v.compressionValue:No| stop| label:COMPRESSION| setattr:$v.compressionValue:Yes| &lt;/code> &lt;/lib> &lt;lib> &lt;name>save&lt;/name> &lt;code>domethodsstop:71| //CMD_DISABLE_SSD_WRITE_CACHE| domethodsstop:84| cmdlistnew| cmdlistaddset:$m| cmdlistadddomethods:$m:69| setattr:$w.intervalsToWait:6000| concat:Create Volume~:$m.name:$v.processname| cmdlistrun:$v.processname| concat:Creating Volume ":$m.name:$w.asyncwaitmsg| concat:$w.asyncwaitmsg:".:$w.asyncwaitmsg| goto:bpwait| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>postsave&lt;/name> &lt;text>Refreshing Volume Information&lt;/text> &lt;backcode>cmdlistretrieveobject:$m:volume| clearversion:History| clearversion:PITCVolumeRuleGroup| jumpnull:$m:SKIP| domethodsstop:$m:52| label:SKIP| refreshlist:com.compellent.scheduleviewer.MultiScheduleViewer| refreshnode:storagenode| &lt;/backcode> &lt;code>jumpnull:$m:FOCUSI| jumpif:$m.objectid:i!=:0:CONTINUE| //msgbox:Could not find the created Volume.^^Click Refresh to confirm volume creation^has complete successfully.:$w.title:E| jump:FOCUSI| end| label:CONTINUE| jumpif:$v.dataoptimization:=:false:CONTINUE2| cmdlistnew| cmdlistadddomethods:$m:86| cmdlistrun| label:CONTINUE2| setlastref:$m| focusexplorer:$m| jumpif:$v.fromcmm:=:true:DUPLICATE| jumpif:$v.runnewmap:=:true:NEWMAP| jumpif:$v.runmap:=:true:MAP| jumpif:$v.skiplinker:=:YES:FROMLINKER| concat:Volume~:$m.name:$v.linkmsg| concat:$v.linkmsg:~has been created.:$v.linkmsg| jumpif:$v.fromlinker:=:YES:FROMLINKER| setattr:$p.DisplayMsg:$v.linkmsg| stopif:$v.linkerran:=:true| setattr:$v.linkerran:true| runwiz:Linker:$m:$o| return:$o| label:FROMLINKER| return:$m:$v.linkmsg| label:DUPLICATE| return:$m| label:MAP| newobject:wizvar:$p| setattr:$p.serverid:$v.serverid| stopif:$v.mapran:=:true| setattr:$v.mapran:true| runwiz:Map:$m| return| label:NEWMAP| newobject:wizvar:$p| setattrobject:$p.MapServer:$v.defaultServer| setattr:$p.SkipMapFinish:true| stopif:$v.mapran:=:true| setattr:$v.mapran:true| runwiz:CreateMapProfile:$m| return| stop| label:FOCUSI| jumpnull:$i:NULL| focusexplorer:$i| label:NULL| return| &lt;/code> &lt;/lib> &lt;lib> &lt;name>createVolumeDP&lt;/name> &lt;code>runlib:checkdplicense| runlib:makecachewarnings| clearversion:PagePool| domethodsstop:91| jumpif:$v.canbecompressed:!=:true:SKIP2| goto:sizeopt| stop| label:SKIP2| goto:size| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkdplicense&lt;/name> &lt;code>setattr:$v.pageclassmode:0| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>checkprogression&lt;/name> &lt;code>domethodsstop:24| jumpif:$m.WritableClassMask:=:0x0:NEEDWRIT| jumpif:$m.HistoricalClassMask:=:0x0:NEEDHIST| stop| label:NEEDWRIT| msgbox:You must select at least one class of storage for writable data.:$w.title:E| end| label:NEEDHIST| msgbox:You must select at least one class of storage for replay data.:$w.title:E| end| &lt;/code> &lt;/lib> &lt;lib> &lt;name>makecachewarnings&lt;/name> &lt;code>setattr:$v.SystemReadCacheWarning:| setattr:$v.SystemWriteCacheWarning:| getattrobject:$s.cache:$o| stopnull:$o| jumpif:$o.RCacheEnable:i=:2:RNOTENABLED| jumpif:$o.RCacheStatus:i=:2:RDOWN| jump:WRITE| label:RNOTENABLED| setattr:$v.SystemReadCacheWarning:WARNING - System read cache is not enabled.| jump:WRITE| label:RDOWN| setattr:$v.SystemReadCacheWarning:WARNING - System read cache is down.| label:WRITE| jumpif:$o.WCacheEnable:i=:2:WNOTENABLED| jumpif:$o.WCacheStatus:i=:2:WDOWN| stop| label:WNOTENABLED| setattr:$v.SystemWriteCacheWarning:WARNING - System write cache is not enabled.| stop| label:WDOWN| setattr:$v.SystemWriteCacheWarning:WARNING - System write cache is down.| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>makevolumefolder&lt;/name> &lt;code>newobject:wizvar:$p| setattr:$p.skipintro:YES| runwiz:CreateVolumeFolder::$o| stopnull:$o| stopif:$o.type:!=:volumefolder| refreshdata| setattr:$m.parentobjectid:$o.objectid| redraw| &lt;/code> &lt;/lib> &lt;lib> &lt;name>selectallcache&lt;/name> &lt;code>setattr:$m.RCacheRAStatus:1| setattr:$m.RCacheStatus:1| setattr:$m.cachestatus:1| refresh| &lt;/code> &lt;/lib> &lt;lib> &lt;name>unselectallcache&lt;/name> &lt;code>setattr:$m.RCacheRAStatus:2| setattr:$m.RCacheWStatus:2| setattr:$m.RCacheStatus:2| setattr:$m.cachestatus:2| refresh| &lt;/code> &lt;/lib> &lt;lib> &lt;name>changesystemcache&lt;/name> &lt;code>runwiz:ConfigureSystemCache| runlib:makecachewarnings| goto:advancedoptions| stop| &lt;/code> &lt;/lib> &lt;lib> &lt;name>makereplaytemplate&lt;/name> &lt;code>runwiz:CreateReplayTemplate::$z| clearversion:PITCRule| clearversion:PITCRuleGroup| retrievetable:PITCRuleGroup:$g| vectorset:$g:$v.ReplayTemplateVector| gnew| gadd:$z| vectorset:$g:$v.SelectedTemplatesVector| clearcache| redraw| &lt;/code> &lt;/lib> &lt;/instructions> &lt;/xml>在这里面的方法
07-09
#!/bin/bash for xmlfile in *.xml; do base="${xmlfile%.*}" outfile="${base}.rc" id=1 > "$outfile" # 清空输出文件 # 处理 &lt;setIntlkAlarm> 内容 awk -v id=1 ' BEGIN { FS="&lt;setIntlkAlarm[^>]*>|&lt;/setIntlkAlarm>"; OFS="" } /&lt;setIntlkAlarm/ { for (i = 2; i &lt; NF; i += 2) { split($i, arr, ",") str1 = gensub(/^ +| +$/, "", "g", arr[1]) str2 = gensub(/^ +| +$/, "", "g", arr[2]) str3 = gensub(/^ +| +$/, "", "g", arr[3]) printf("KEY:%s\n", str1) printf("MSG:%s\n", str3) printf("DES:%s\n", str3) printf("LEVEL:%s\n", str2) printf("ID:%d\n", id) printf("\n") id++ } } ' "$xmlfile" >> "$outfile" echo "生成: $outfile" done &lt;VInterlocks> &lt;!--efem_rorze_3lp_beg--> &lt;!-- &lt;IceTimeout class="STDTMVInterlock" type="instance" alias=""> &lt;setTrigger type="method">(/IO/SysExports/CallbackErrDisp != NoError)&lt;/setTrigger> &lt;setIntlkAlarm type="method">Alarm,FATAL,GUI and MEC communication time out occurs.&lt;/setIntlkAlarm> &lt;acceptUnknown type="method">TriggerUnknown,FATAL,Interlock trigger state is unknown.&lt;/acceptUnknown> &lt;addIntDescriptorActionNoAlarm type="method">/IO/Platform/TowerLight/Red,ON&lt;/addIntDescriptorActionNoAlarm> &lt;addIntDescriptorActionNoAlarm type="method">/IO/Platform/TowerLight/Buzzer,ON&lt;/addIntDescriptorActionNoAlarm> &lt;/IceTimeout> --> &lt;EFEMDoor class="STDTMVInterlock" type="instance"> &lt;setTrigger type="method">(/IO/Platform/EFEM/DoorOpenDI == Open)&lt;/setTrigger> &lt;setIntlkAlarm type="method">Alarm,NOTICE,EFEM Door is not closed.&lt;/setIntlkAlarm> &SimulatedFlag_Ch1; &lt;acceptUnknown type="method">TriggerUnknown,FATAL,Interlock trigger state is unknown. (Hardware IO may be unavailable)&lt;/acceptUnknown> &lt;/EFEMDoor> &lt;PressureStatus type="data" dataType="I" accessMode="RW" alias="/IO/FFUExports/PressureStatus"> &lt;Bd>&lt;/Bd> &lt;Ch>&lt;/Ch> &lt;Min>0&lt;/Min> &lt;Max>1&lt;/Max> &lt;DescriptorList>Abnormal:0,Normal:1&lt;/DescriptorList> &lt;/PressureStatus> &lt;FFUPressureNormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/PressureAI >= /SETUP/Control/EFEM/FFUPressure)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/PressureStatus,Normal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFUPressureNormal> &lt;FFUPressureAbnormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/PressureAI &lt; /SETUP/Control/EFEM/FFUPressure)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/PressureStatus,Abnormal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFUPressureAbnormal> &lt;FFUPressureAlarm type="instance" class="STDTMVInterlock" alias=""> &lt;setDurationTrigger type="method">(/Control/ATR/VInterlocks/PressureStatus == Abnormal),10000&lt;/setDurationTrigger> &lt;setIntlkAlarm type="method">Alarm,ERROR,EFEM Pressure is too Low!&lt;/setIntlkAlarm> &lt;acceptUnknown type="method">TriggerUnknown,FATAL,Interlock trigger state is unknown. (Hardware IO may be unavailable)&lt;/acceptUnknown> &lt;/FFUPressureAlarm> &lt;FFU1SpeedStatus type="data" dataType="I" accessMode="RW" alias="/IO/FFUExports/FFU1SpeedStatus"> &lt;Bd>&lt;/Bd> &lt;Ch>&lt;/Ch> &lt;Min>0&lt;/Min> &lt;Max>1&lt;/Max> &lt;DescriptorList>Abnormal:0,Normal:1&lt;/DescriptorList> &lt;/FFU1SpeedStatus> &lt;FFU1SpeedNormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/FFU1SpeedAI >= /SETUP/Control/EFEM/FFUSpeed)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/FFU1SpeedStatus,Normal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFU1SpeedNormal> &lt;FFU1SpeedAbnormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/FFU1SpeedAI &lt; /SETUP/Control/EFEM/FFUSpeed)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/FFU1SpeedStatus,Abnormal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFU1SpeedAbnormal> &lt;FFU1SpeedAlarm type="instance" class="STDTMVInterlock" alias=""> &lt;setDurationTrigger type="method">(/Control/ATR/VInterlocks/FFU1SpeedStatus == Abnormal),10000&lt;/setDurationTrigger> &lt;setIntlkAlarm type="method">Alarm,ERROR,EFEM fan1 Rotating speed is too low!&lt;/setIntlkAlarm> &lt;acceptUnknown type="method">TriggerUnknown,FATAL,Interlock trigger state is unknown. (Hardware IO may be unavailable)&lt;/acceptUnknown> &lt;/FFU1SpeedAlarm> &lt;FFU2SpeedStatus type="data" dataType="I" accessMode="RW" alias="/IO/FFUExports/FFU2SpeedStatus"> &lt;Bd>&lt;/Bd> &lt;Ch>&lt;/Ch> &lt;Min>0&lt;/Min> &lt;Max>1&lt;/Max> &lt;DescriptorList>Abnormal:0,Normal:1&lt;/DescriptorList> &lt;/FFU2SpeedStatus> &lt;FFU2SpeedNormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/FFU2SpeedAI >= /SETUP/Control/EFEM/FFUSpeed)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/FFU2SpeedStatus,Normal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFU2SpeedNormal> &lt;FFU2SpeedAbnormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/FFU2SpeedAI &lt; /SETUP/Control/EFEM/FFUSpeed)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/FFU2SpeedStatus,Abnormal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFU2SpeedAbnormal> &lt;FFU2SpeedAlarm type="instance" class="STDTMVInterlock" alias=""> &lt;setDurationTrigger type="method">(/Control/ATR/VInterlocks/FFU2SpeedStatus == Abnormal),10000&lt;/setDurationTrigger> &lt;setIntlkAlarm type="method">Alarm,ERROR,EFEM fan2 Rotating speed is too low!&lt;/setIntlkAlarm> &lt;acceptUnknown type="method">TriggerUnknown,FATAL,Interlock trigger state is unknown. (Hardware IO may be unavailable)&lt;/acceptUnknown> &lt;/FFU2SpeedAlarm> &lt;FFU3SpeedStatus type="data" dataType="I" accessMode="RW" alias="/IO/FFUExports/FFU3SpeedStatus"> &lt;Bd>&lt;/Bd> &lt;Ch>&lt;/Ch> &lt;Min>0&lt;/Min> &lt;Max>1&lt;/Max> &lt;DescriptorList>Abnormal:0,Normal:1&lt;/DescriptorList> &lt;/FFU3SpeedStatus> &lt;FFU3SpeedNormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/FFU3SpeedAI >= /SETUP/Control/EFEM/FFUSpeed)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/FFU3SpeedStatus,Normal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFU3SpeedNormal> &lt;FFU3SpeedAbnormal type="instance" class="STDTMVInterlock" alias=""> &lt;setTriggerInterval type="method">2000&lt;/setTriggerInterval> &lt;setTrigger type="method">(/IO/Platform/EFEM/FFU3SpeedAI &lt; /SETUP/Control/EFEM/FFUSpeed)&lt;/setTrigger> &lt;addIntDescriptorActionNoAlarm type="method">/Control/ATR/VInterlocks/FFU3SpeedStatus,Abnormal&lt;/addIntDescriptorActionNoAlarm> &lt;/FFU3SpeedAbnormal> &lt;FFU3SpeedAlarm type="instance" class="STDTMVInterlock" alias=""> &lt;setDurationTrigger type="method">(/Control/ATR/VInterlocks/FFU3SpeedStatus == Abnormal),10000&lt;/setDurationTrigger> &lt;setIntlkAlarm type="method">Alarm,ERROR,EFEM fan3 Rotating speed is too low!&lt;/setIntlkAlarm> &lt;acceptUnknown type="method">TriggerUnknown,FATAL,Interlock trigger state is unknown. (Hardware IO may be unavailable)&lt;/acceptUnknown> &lt;/FFU3SpeedAlarm> &lt;!--efem_rorze_3lp_end--> &lt;/VInterlocks> 在上面的脚本基础上,获取找到的模式所在上一级的名称
06-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值