<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.infor.com/ICM/1"
    targetNamespace="http://schema.infor.com/ICM/1" elementFormDefault="qualified"
    attributeFormDefault="unqualified" version="1.0">
    <xs:include schemaLocation="./ICM_ApplicationSpecific.xsd"/>
    <xs:include schemaLocation="./ICM_Common.xsd"/>
    <xs:element name="Product">
        <xs:annotation>
            <xs:documentation>Root node as per design document http://wiki.infor.com:8080/confluence/display/ICM/ICM-Client+Detail+design</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="CollectionType">
                    <xs:choice>
                        <xs:element name="ApplicationServer" type="ApplicationServerType"
                            minOccurs="1"/>
                        <xs:element name="Application" type="ApplicationType" minOccurs="1"/>
                        <xs:element name="DataBaseServer" minOccurs="1">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element maxOccurs="unbounded" name="DataBase"
                                        type="DatabaseType"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:choice>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
    <xs:complexType name="ApplicationCommonType">
        <xs:annotation>
            <xs:documentation>Type Definition for the application Common collections.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ApplicationName">
                <xs:annotation>
                    <xs:documentation>The Application (Product) Name.
Also can be referred to as the Product Line</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:enumeration value="Adage"/>
                        <xs:enumeration value="Agilisys"/>
                        <xs:enumeration value="ALLTAX"/>
                        <xs:enumeration value="AMS"/>
                        <xs:enumeration value="AMSI"/>
                        <xs:enumeration value="Anael"/>
                        <xs:enumeration value="Aplus"/>
                        <xs:enumeration value="APM"/>
                        <xs:enumeration value="AutoConnect"/>
                        <xs:enumeration value="AutoRelease"/>
                        <xs:enumeration value="Baan Aamp;D"/>
                        <xs:enumeration value="Baan Automotive"/>
                        <xs:enumeration value="Baan Construction"/>
                        <xs:enumeration value="Baan CRM"/>
                        <xs:enumeration value="Baan Dimensions"/>
                        <xs:enumeration value="Baan ERP"/>
                        <xs:enumeration value="Baan ERP - Brazil Localization"/>
                        <xs:enumeration value="Baan ERP - India Localization"/>
                        <xs:enumeration value="Baan ERP - Portugal Localization"/>
                        <xs:enumeration value="Baan ERP - Spain Localization"/>
                        <xs:enumeration value="BI"/>
                        <xs:enumeration value="Blending"/>
                        <xs:enumeration value="BOSS"/>
                        <xs:enumeration value="Bridgelogix"/>
                        <xs:enumeration value="Bureautique"/>
                        <xs:enumeration value="Business Objects (Crystal)"/>
                        <xs:enumeration value="CAPS"/>
                        <xs:enumeration value="CAS"/>
                        <xs:enumeration value="COM"/>
                        <xs:enumeration value="Commerce"/>
                        <xs:enumeration value="Companion"/>
                        <xs:enumeration value="CORrelation"/>
                        <xs:enumeration value="Demand Planning"/>
                        <xs:enumeration value="DMAS"/>
                        <xs:enumeration value="E Series"/>
                        <xs:enumeration value="EAM"/>
                        <xs:enumeration value="Education"/>
                        <xs:enumeration value="E-Enterprise"/>
                        <xs:enumeration value="Elevon"/>
                        <xs:enumeration value="EnRoute"/>
                        <xs:enumeration value="Enspire"/>
                        <xs:enumeration value="ENXSuite"/>
                        <xs:enumeration value="EPAK"/>
                        <xs:enumeration value="Epiphany Interaction Advisor"/>
                        <xs:enumeration value="Epiphany Marketing"/>
                        <xs:enumeration value="Epiphany Sales and Service"/>
                        <xs:enumeration value="ERP LX"/>
                        <xs:enumeration value="Evolve"/>
                        <xs:enumeration value="Expense Management"/>
                        <xs:enumeration value="F9"/>
                        <xs:enumeration value="FACTS"/>
                        <xs:enumeration value="FMS Masterpiece"/>
                        <xs:enumeration value="FnB"/>
                        <xs:enumeration value="Frontres"/>
                        <xs:enumeration value="Global Finance"/>
                        <xs:enumeration value="Growth Power"/>
                        <xs:enumeration value="Hansen"/>
                        <xs:enumeration value="Help - zSeries"/>
                        <xs:enumeration value="HMS"/>
                        <xs:enumeration value="Hospitality"/>
                        <xs:enumeration value="Hospitality Deu"/>
                        <xs:enumeration value="Host General"/>
                        <xs:enumeration value="Hotix"/>
                        <xs:enumeration value="HR Tax amp; Reg"/>
                        <xs:enumeration value="i2"/>
                        <xs:enumeration value="INFINIUM"/>
                        <xs:enumeration value="Infogenesis"/>
                        <xs:enumeration value="Infor Configuration"/>
                        <xs:enumeration value="Infor CRM Business"/>
                        <xs:enumeration value="Infor Federation Services"/>
                        <xs:enumeration value="Infor ICEE"/>
                        <xs:enumeration value="Infor Motion"/>
                        <xs:enumeration value="Infor Service Mgmt"/>
                        <xs:enumeration value="Infor Studio"/>
                        <xs:enumeration value="Infor Xtreme Support"/>
                        <xs:enumeration value="ION"/>
                        <xs:enumeration value="ION Support Assistant"/>
                        <xs:enumeration value="IRONSIDE"/>
                        <xs:enumeration value="iSeries EAM"/>
                        <xs:enumeration value="ISP"/>
                        <xs:enumeration value="KBM"/>
                        <xs:enumeration value="Library Solutions"/>
                        <xs:enumeration value="LN ERP"/>
                        <xs:enumeration value="LN ERP - India Localization"/>
                        <xs:enumeration value="Local Government"/>
                        <xs:enumeration value="M Series"/>
                        <xs:enumeration value="MANMAN"/>
                        <xs:enumeration value="MAX"/>
                        <xs:enumeration value="MK"/>
                        <xs:enumeration value="Mongoose Framework"/>
                        <xs:enumeration value="Open World/ Integration"/>
                        <xs:enumeration value="Optiva"/>
                        <xs:enumeration value="Order Management"/>
                        <xs:enumeration value="Pegasus"/>
                        <xs:enumeration value="PLM"/>
                        <xs:enumeration value="PM"/>
                        <xs:enumeration value="PM/XBRL"/>
                        <xs:enumeration value="PMS CSL"/>
                        <xs:enumeration value="Point.Man"/>
                        <xs:enumeration value="Prism"/>
                        <xs:enumeration value="PRMS"/>
                        <xs:enumeration value="Process"/>
                        <xs:enumeration value="Protean"/>
                        <xs:enumeration value="PROVIA"/>
                        <xs:enumeration value="Ratioplan"/>
                        <xs:enumeration value="Sales and Operations Planning"/>
                        <xs:enumeration value="Salesforce"/>
                        <xs:enumeration value="SCEM"/>
                        <xs:enumeration value="SCM Planning"/>
                        <xs:enumeration value="SCM WM"/>
                        <xs:enumeration value="SmartStream"/>
                        <xs:enumeration value="SPA"/>
                        <xs:enumeration value="Starlight"/>
                        <xs:enumeration value="STOREFRONT"/>
                        <xs:enumeration value="StreamLine"/>
                        <xs:enumeration value="Streamserve"/>
                        <xs:enumeration value="SunSystems"/>
                        <xs:enumeration value="SupplyWEB"/>
                        <xs:enumeration value="SX.enterprise"/>
                        <xs:enumeration value="SXe"/>
                        <xs:enumeration value="System 21"/>
                        <xs:enumeration value="System i Common Components"/>
                        <xs:enumeration value="SyteLine"/>
                        <xs:enumeration value="TAKESTOCK"/>
                        <xs:enumeration value="Talent Management"/>
                        <xs:enumeration value="TIMS"/>
                        <xs:enumeration value="TMS"/>
                        <xs:enumeration value="TotalHR"/>
                        <xs:enumeration value="TRANS4M"/>
                        <xs:enumeration value="TriSyn"/>
                        <xs:enumeration value="Unison"/>
                        <xs:enumeration value="VG"/>
                        <xs:enumeration value="Vision"/>
                        <xs:enumeration value="VISUAL"/>
                        <xs:enumeration value="VR"/>
                        <xs:enumeration value="Workbrain"/>
                        <xs:enumeration value="Workflow"/>
                        <xs:enumeration value="Workspace"/>
                        <xs:enumeration value="XA"/>
                        <xs:enumeration value="XDEX"/>
                        <xs:enumeration value="XPERT"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="ApplicationVersion" type="xs:string">
                <xs:annotation>
                    <xs:documentation>The Application (Product) full version. 
This is the version reported by the actual software code.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" name="ApplicationSalesVersion" type="xs:string">
                <xs:annotation>
                    <xs:documentation>The Product Line release is the external label of the release as customers are using it in the support portal. In the support portal, the release is really at the Product level, not the Product Line level. Products within a Product Line can have different release numbers as a Product Line has mainline products and add on products, etc. We can use a default release at the Product Line level, which should be an indication of the mainline products.
</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="InstallationLocation" type="xs:string">
                <xs:annotation>
                    <xs:documentation>The full root install path for the application</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ApplicationPatches" minOccurs="0">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ApplicationPatch" maxOccurs="unbounded" type="xs:string"
                            minOccurs="1"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="ApplicationProducts">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" name="ApplicationProduct">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="ApplicationProductName" type="xs:string">
                                        <xs:annotation>
                                            <xs:documentation>A product Line has many products. The support portal uses the product entitlement to determine what to show and have access for. Optionally the ISA product integrations can return the products installed. </xs:documentation>
                                        </xs:annotation>
                                    </xs:element>
                                    <xs:element name="ApplicationProductRelease" type="xs:string">
                                        <xs:annotation>
                                            <xs:documentation>A Product has a release. The support portal organizes all KB articles (including patches) at the Product/Release level. Optionally the ISA product integrations can return the release of the products installed. If absent, the proactive logic will use the Product Line release as default.</xs:documentation>
                                        </xs:annotation>
                                    </xs:element>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="LanguagePacks">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="LanguagePack" maxOccurs="unbounded" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="ConfigurationSwitches" minOccurs="0">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ConfigurationSwitch" maxOccurs="unbounded"
                            type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="DataLocations">
                <xs:complexType>
                    <xs:sequence maxOccurs="unbounded" minOccurs="0">
                        <xs:element name="DataLocation" type="xs:string" minOccurs="0">
                            <xs:annotation>
                                <xs:documentation>The data location (datastore) for the application data (e.g. IP Address of the database)</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element minOccurs="0" name="DataLocationAttribute" type="xs:string">
                            <xs:annotation>
                                <xs:documentation>If a product has mutiple data stores (e.g. mutiple databases) identify the datastore (e.g. datastore name).</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="LogFiles" type="LogFilesType" minOccurs="0"/>
            <xs:element minOccurs="0" name="ConfigurationLastRun" type="xs:dateTime">
                <xs:annotation>
                    <xs:documentation>The date and time that the configurator was last run</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" name="ConfigurationLastRunID" type="xs:string">
                <xs:annotation>
                    <xs:documentation>The user id that last ran the configurator</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" name="ProductKeys">
                <xs:complexType>
                    <xs:sequence maxOccurs="unbounded" minOccurs="0">
                        <xs:element minOccurs="0" name="ProductKey" type="xs:string" maxOccurs="1">
                            <xs:annotation>
                                <xs:documentation>The product key installed for the entity being reported</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element minOccurs="0" name="ProductKeyAttribute" type="xs:string">
                            <xs:annotation>
                                <xs:documentation>If a product has mutiple product keys (e.g. licensed by module) identify the licensed entity (e.g. Module name).</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ApplicationServerType">
        <xs:annotation>
            <xs:documentation>Type Definition for data collection of Application Server information</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ApplicationServerName" type="xs:string" form="qualified">
                <xs:annotation>
                    <xs:documentation>Application Server Name - Middleware that the appplication is running on e.g. weblogic, tomcat IIS</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ApplicationServerType" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Application Server Type - the type of middleware that the application is using e.g. webserver, application server</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ApplicationServerVersion" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Application Server Version - the version of the application server type</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ApplicationType">
        <xs:annotation>
            <xs:documentation>Type Definition for data collection of INFOR Application information</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ApplicationCommon" type="ApplicationCommonType"> </xs:element>
            <xs:element name="ApplicationSpecific" type="ApplicationSpecificType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DatabaseCommonType">
        <xs:sequence>
            <xs:element name="DataBaseName" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Database Name</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseType" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Database Product Type; Vendor e.g. Oracle, Enterprise SQL Server</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseVersion" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Full version of the Database

SQLServer: SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')

Oracle: select * from v$version where banner like ‘Oracle%’;</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseFunction" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Function of the database (if known); e.g. Dev, Test, Live</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseServer" type="xs:string">
                <xs:annotation>
                    <xs:documentation>Server Address of the application Database (hostname)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseFileLocation" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>SQL Server

Full path of the database file

SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf',LOWER(physical_name)) - 1) DataFileLocation FROM master.sys.master_files WHERE database_id = 1 AND FILE_ID = 1</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseFileSize" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>SQL Server

Size of the database file

SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files
WHERE DB_NAME(database_id) = '%databasename%'
GO</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseLogLocation" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>SQL Server

Full path of the database log file</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DataBaseLogSize" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>SQL Server

Size of the database log file</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TransactionLogSize" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>SQL Server

Size of the Transaction Log</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" name="OracleInstance">
                <xs:annotation>
                    <xs:documentation>Oracle: show sga;</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="TotalSystemGlobalArea" type="xs:integer"/>
                        <xs:element name="FixedSize" type="xs:integer"/>
                        <xs:element name="VariableSize" type="xs:integer"/>
                        <xs:element name="DataBaseBuffers" type="xs:integer"/>
                        <xs:element name="RedoBuffers" type="xs:integer"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="INITora">
                <xs:annotation>
                    <xs:documentation>Oracle: show parameters;</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ActiveInstanceCount" type="xs:integer"/>
                        <xs:element name="AqTmProcesses" type="xs:integer"/>
                        <xs:element name="ArchiveLagTarget" type="xs:integer"/>
                        <xs:element name="AuditFileDest" type="xs:string"/>
                        <xs:element name="AuditTrail" type="xs:string"/>
                        <xs:element name="BackgroundCoreDump" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="TableSpaceDefinitions">
                <xs:annotation>
                    <xs:documentation>Oracle

Tablespace definitions</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" name="TableSpaceDefinition">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="TableSpace" type="xs:string"/>
                                    <xs:element name="TableSpaceDataFiles">
                                        <xs:complexType>
                                            <xs:sequence>
                                                <xs:element name="TableSpaceDataFile"
                                                  type="xs:string" maxOccurs="unbounded"/>
                                            </xs:sequence>
                                        </xs:complexType>
                                    </xs:element>
                                    <xs:element name="TableSpaceSize" type="xs:string"/>
                                    <xs:element name="TableSpaceExtentManagement" type="xs:string"
                                        minOccurs="0"/>
                                    <xs:element name="TableSpaceDefaultStorage" minOccurs="0">
                                        <xs:complexType>
                                            <xs:sequence>
                                                <xs:element name="TableSpaceDefaultStorageInitial"
                                                  type="xs:integer"/>
                                                <xs:element name="TableSpaceDefaultStorageNext"
                                                  type="xs:integer"/>
                                            </xs:sequence>
                                        </xs:complexType>
                                    </xs:element>
                                    <xs:element name="TableSpaceMinExtents" type="xs:integer"
                                        minOccurs="0"/>
                                    <xs:element name="TableSpaceMaxExtents" type="xs:integer"
                                        minOccurs="0"/>
                                    <xs:element name="TableSpacePCTIncrease" type="xs:integer"
                                        minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" name="RedoLogs">
                <xs:annotation>
                    <xs:documentation>Oracle redo log files

select member, group#, bytes, status from v$logfile;</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" name="RedoLog">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="Member" type="xs:string"/>
                                    <xs:element name="Group" type="xs:integer"/>
                                    <xs:element name="RedoLogBytes" type="xs:integer"/>
                                    <xs:element name="RedoLogStatus" type="xs:string"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DatabaseType">
        <xs:annotation>
            <xs:documentation>Type Definition for data collection of Database information</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="DataBaseCommon" type="DatabaseCommonType"> </xs:element>
            <xs:element name="ApplicationDatabaseSpecific" type="ApplicationDatabaseSpecificType"
                minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="LogFilesType">
        <xs:sequence>
            <xs:element maxOccurs="unbounded" name="LogFile">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="LogType" type="xs:string">
                            <xs:annotation>
                                <xs:documentation>Type of Log file - i.e. what is being logged</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="LogPath" type="xs:string">
                            <xs:annotation>
                                <xs:documentation>Full path to the logfile including the log name</xs:documentation>
                                <xs:documentation>if you roll log-files over like the Apache logs, you can put in a wild-card extension.  

Example Apache

/var/log/apache2/access.log*

access.log  = current
access.log.1.gz = old
access.log.2.gz = old</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:schema>
