Hier finden Sie ein Beispiel für die XML-Exportdatei eines Job-Objektes.
Beispiel:
<?xml version="1.0" encoding="ISO-8859-1"?> - <uc-export clientvers="3.02"> - <JOBS_UNIX client="0003"name="JOBS.REORG" system="UCGLOBAL"> - <XHEADER state="2"> <Title/> <Created>John Smith on: 2005-03-17 10:34:49</Created> <Modified>John Smith on: 2005-03-17 15:12:32 4 x</Modified> <LastUsed/> <ArchiveKey1>Database</ArchiveKey1> <ArchiveKey2>Reorganize</ArchiveKey2> <ExtRepDef>1</ExtRepDef> <ExtRepAll>0</ExtRepAll> <ExtRepNone>0</ExtRepNone> </XHEADER> - <SYNCREF state="1"> <Syncs/> </SYNCREF> - <ATTR_JOBS state="2"> <StartType>ATT_GROUP</StartType> <HostDst>AGENT01</HostDst> <HostATTR_Type>UNIX</HostATTR_Type> <CodeName>UC_CODE</CodeName> <Login>DB.ACCESS</Login> <IntAccount/> <AutoDeactNo>0</AutoDeactNo> <AutoDeact1ErrorFree>0</AutoDeact1ErrorFree> <AutoDeactErrorFree>0</AutoDeactErrorFree> <DeactWhen/> <DeactDelay>0</DeactDelay> <AutoDeactAlways>1</AutoDeactAlways> <AttDialog>0</AttDialog> <ActAtRun>0</ActAtRun> <Consumption>0</Consumption> <UC4Priority>0</UC4Priority> <MaxParallel2>0</MaxParallel2> <MpElse1>1</MpElse1> <MpElse2>0</MpElse2> <TZ/> </ATTR_JOBS> - <ATTR_UNIX state="1">
Die Hostattribute sind von Plattform zu Plattform unterschiedlich und daher gesondert beschrieben.
</ATTR_UNIX> - <RUNTIME state="1"> <MaxRetCode>0</MaxRetCode> <FcstStatus>1900|ENDED_OK - Ended normally</FcstStatus> <Ert>0</Ert> <ErtMethodDef>1</ErtMethodDef> <ErtMethodFix>0</ErtMethodFix> <ErtFix>0</ErtFix> <ErtDynMethod>2|Average</ErtDynMethod> <ErtMethodDyn>0</ErtMethodDyn> <ErtCnt>0</ErtCnt> <ErtCorr>0</ErtCorr> <ErtIgn>0</ErtIgn> <ErtIgnFlg>0</ErtIgnFlg> <ErtMinCnt>0</ErtMinCnt> <MrtMethodNone>1</MrtMethodNone> <MrtMethodFix>0</MrtMethodFix> <MrtFix>0</MrtFix> <MrtMethodErt>0</MrtMethodErt> <MrtErt>0</MrtErt> <MrtMethodDate>0</MrtMethodDate> <MrtDays>0</MrtDays> <MrtTime>00:00</MrtTime> <MrtTZ/> <SrtMethodNone>1</SrtMethodNone> <SrtMethodFix>0</SrtMethodFix> <SrtFix>0</SrtFix> <SrtMethodErt>0</SrtMethodErt> <SrtErt>0</SrtErt> <MrtCancel>0</MrtCancel> <MrtExecute>0</MrtExecute> <MrtExecuteObj/> </RUNTIME> - <DYNVALUES state="1"> - <dyntree> - <node content="1" id="VALUE" name="Values" parent="" type="VALUE"> - <VALUE state="1"> - <Values> <row Name="&HOST#" Value="unix01" /> </Values> <Mode>0</Mode> </VALUE> </node> - <node content="1" id="PRPT1" name="PRPT1" parent="PRPTS" type="PROMPTSET"> - <PROMPTSET client="0098" idnr="001240008" name="PRPT1" ontop="1" src="oh" system="UC4"> - <PRPTBOX promptset="PRPT1" prptmode="1"> <integer1 altview="0" haslist="0">6</integer1> <textfield2 altview="0" haslist="0">text</textfield2> <radiogroup1 altview="0" haslist="0">9</radiogroup1> <checklist1 altview="0" haslist="0">41;50</checklist1> <checkgroup1 altview="0" haslist="0">3</checkgroup1> <combobox9 altview="0" haslist="0">3</combobox9> <date1 altview="0" haslist="0">2010-08-29</date1> <timestamp1 altview="0" haslist="0">2010-08-17 10:00:00</timestamp1> <time2 altview="0" haslist="0">15:01</time2> </PRPTBOX> </PROMPTSET> </node> </dyntree> </DYNVALUES> - <PRE_SCRIPT state="1"> <PSCRI/> </PRE_SCRIPT> - <SCRIPT state="2"> - <MSCRI> ! insert these lines in your script to determine if an error occurred ! ! @set retcode=%errorlevel% ! @if NOT %ERRORLEVEL% == 0 goto :retcode :SET &reorganize# = GET_VAR('VARA.DATABASE_MAINTENANCE','REORGANIZE') :SET &client# = GET_VAR('VARA.DATABASE_MAINTENANCE','CLIENT') :IF &reorganize# = 'J' UCYBDBre -B -S&client# :ELSE : PRINT 'Reorganization should not take place.' :ENDIF ]]> </MSCRI> </SCRIPT> - <POST_SCRIPT state="1"> <OSCRI/> </POST_SCRIPT> - <DOCU_General state="1" type="text"> <DOC/> </DOCU_General> </JOBS_UNIX> </uc-export>
Siehe auch:
Struktur der Exportdatei
Aufbau der XML-Dateien für den Im- und Export
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |