Sun Java System Calendar Server 6.3 Administration Guide

D.11 csimport

The csimport utility imports a calendar from a file in iCalendar (ics) or XML format that was saved with the csexport utility. Commands are:

Date calculations for importing a calendar’s components use the time zone specified in the X-NSCP-DTSTART-TZID associated with the component. If none is present, then the server time zone found in the ics.conf is used.

D.11.1 Requirements

D.11.2 Syntax

csimport [-v|-q]
          -c calid
         calendar inputfile

The following table describes the commands available for the csimport utility.

Table D–20 csimport Utility Commands



calendar inputfile

Import the calendar from the specified input file. The data format of the file is determined by the filename extension: 

  • .ics for iCalendar (text/calendar)

  • .xml for XML (text/xml)


Display the version of the utility. 

The following table describes the csimport utility command options.

Table D–21 csimport Utility Command Options




Run in verbose mode: Display all available information about the command being performed. Default is off. 


Run in quiet mode: 

  • Display no information if the operation is successful (errors, if they occur, are displayed).

  • Suppress confirmation prompting for dangerous commands.

    Default is off.

-c calid

The calendar ID of the calendar to import. This option is required with the calendar command. 

If the specified calendar ID already exits, the imported data is merged with the current calendar. There is no default. 

For more information, see 15.2 Creating Calendar Unique Identifiers (calid's).

D.11.3 Examples