The cscomponents utility manages calendar components: events and tasks (todos). Commands are:
delete events and tasks in a calendar.
list events and tasks in a calendar.
version displays the version number of the utility currently installed.
You must run the utility locally on the machine where Calendar Server is installed.
Calendar Server can be running or stopped.
You must be logged in as the user and group under which Calendar Server is running (such as icsuser and icsgroup) that was specified during installation, or as root.
cscomponents [-v|-q] [-e endtime] [-s starttime] [-t event|task] delete|list calid |
The following table describes the commands available for the cscomponents utility.
Table D–9 cscomponents Utility Commands
Command |
Description |
---|---|
delete calid |
Deletes events and tasks in the calendar with the specified calendar ID. Note – When deleting tasks, you must specify the -soption with an actual DateTime Z String specifying the starting date for removal. If you do not specify a date, or you specify zero (0) as the value for the option, all tasks will be deleted from the calendar. |
list calid |
Lists events and tasks in the calendar with the specified calendar ID. |
version |
Prints the version of the utility to the screen. |
The following table describes the cscomponents utility command options.
Table D–10 cscomponents Utility Command Options
Delete all 2000 events in the calendar with the calendar ID tchang:
cscomponents -s 20000101T000000Z -e 20001231T000000Z delete tchang
List all events and tasks with details in the calendar with the calendar ID tchang:
cscomponents -v list tchang