copydefcal

The copydefcal utility creates a new calendar definition in the Control-M/EM database identical to an existing calendar definition. Calendars can be copied and saved under different names in the same data center. Calendars in one data center can be copied to a different data center and saved under the same or different names. To copy existing calendar definitions using the copydefcal utility, see Copying an existing calendar using the copydefcal utility.

Multiple calendars can be selected and copied using the * wildcard character. For an explanation of how wildcards function in XML-based utilities, see Terminology.

When copydefcal is invoked, a file of arguments that you created is processed. This arguments file contains statements that specify an existing calendar or group of calendars. The specified calendars are exported to an output file. copydefcal reads arguments directly from a plain text arguments file (in XML format) instead of reading them from the command line. For more information, see copydefcal arguments file rules.

The copydefcal utility validates the XML rule file according to the following validation versions, which can affect the validation process:

NOTE: By default, the utility validates the XML file in accordance with the EmdefValidationVersion system parameter in the CCM (Validation version 2). You can change the value in the CCM without the need to add the switch to the command, which may be preferable if you have many scripts that use a particular validation version.

For an example of the two validation processes see emdef validation service error message example.

Parent Topic

emdef utility for folders and calendars