WS SDK Professional Edition Development Utilities

« Back to SDK Product page

Schematest

The schematest tool compares a new schema to an older schema and generates a report identifying an incompatible changes that may have been made.

Run schematest from the following directory

Platform Directory
Windows C:\Program Files\ws\sdk\bin
Linux /usr/ws/sdk/bin
Solaris /opt/ws/sdk/bin

Command Line Syntax

The schematest utility can be invoked by typing schematest at the command prompt.

The command line syntax for the schematest utility is included below.

C:\> cd \Program Files\ws\sdk\bin C:\Program Files\ws\sdk\bin>schematest -h
SchemaTest [options] SCHEMA1 SCHEMA2
Copyright (c) 2002-2010 WS, Inc.
Use is Subject to License Terms.
Options:
-h Display this usage statement
-v Display the version information
Commands:
SCHEMA1 The schema to be compared against (original)
SCHEMA2 The schema to compare (new version)
Examples:
schematest schema/2.22.1/final/cim_schema_2.22.1.mof schema/2.23.0/final/cim_s chema_2.23.0.mof
schematest schema/2.23.0/final/cim_schema_2.23.0.mof.mof schema/2.23.0/experim ental/cim_schema_2.23.0.mof
C:\Program Files\ws\sdk\bin>

Default Values

The following table shows the default values for each of the option arguments. If an option is not listed, then it has no default value.

Option Description Default
-h Display this usage statement FALSE
-v Display the version information FALSE

Example

The following command compares the older 2.23 schema and the new 2.24 and reports any incompatible changes that may have been made.

Arguments:

..\..\standards\dmtf\schema\2.22.1\final\cim_schema_2.22.1.mof <Old Schema>
..\..\standards\dmtf\schema\2.23.0\final\cim_schema_2.23.0.mof <New Schema>

The following shows the command and the result.

C:\>cd \Program Files\ws\standards\dmtf\schema\2.22.1\final
C:\Program Files\ws\standards\dmtf\schema\2.22.1\final>unzip cim_schema_2.22.1Final-MOFs.zip
.
.
inflating: User/CIM_VerificationService.mof
inflating: cim_schema_2.22.1.mof
inflating: qualifiers.mof
inflating: qualifiers_optional.mof
C:\>cd \Program Files\ws\sstandards\dmtf\schema\2.23.0\final
C:\Program Files\ws\standards\dmtf\schema\2.23.0\final>unzip cim_schema_2.23.0Final-MOFs.zip
.
.
inflating: User/CIM_VerificationService.mof
inflating: cim_schema_2.23.0.mof
inflating: qualifiers.mof
inflating: qualifiers_optional.mof
C:\>cd \Program Files\ws\sdk\bin
C:\ProgramFiles\ws\sdk\bin>schematest
..\..\standards\dmtf\schema\2.22.1\final\cim_schema_2.22.1.mof
..\..\standards\dmtf\schema\2.23.0\final\cim_schema_2.23.0.mof
Loading ..\..\standards\dmtf\schema\2.23.0\final\cim_schema_2.23.0.mof ...
Loading ..\..\standards\dmtf\schema\2.22.1\final\cim_schema_2.22.1.mof ...
ERROR[CIM_IndicationSubscription]: The Experimental qualifier can not be added in a minor release.
WARNING[CIM_IndicationSubscription.OnFatalErrorPolicy]: The property CIM_IndicationSubscription.OnFatalErrorPolicy was removed from the class, but is inherited - it may have been moved up to a super class.
WARNING[CIM_IndicationSubscription.OtherOnFatalErrorPolicy]: The property CIM_IndicationSubscription.OtherOnFatalErrorPolicy was removed from the class, but is inherited - it may have been moved up to a super class.
:
may have been moved up to a super class.
WARNING[CIM_ComputerSystem.OtherIdentifyingInfo]: The property CIM_ComputerSystem.OtherIdentifyingInfo was removed from the class, but is inherited - it may have been moved up to a super class. SchemaTest completed successfully.

schematest writes the messages to the console.

Back to Top

For more information about the the WS products please contact sales.