Sun Java System Calendar Server 6.3 Administration Guide

15.7 Administering Resource Calendars

This section describes how to administer resource calendars using the csresource utility.

The following are procedures for administering resource calendars:

15.7.1 To Display Resource Calendars and Attributes

To display a resource calendar, use the csresource utility list command.

For example, use the utility to perform the following tasks:

15.7.2 To Modify a Resource Calendar

This section describes how to modify a resource calendar. You must use the D.5 cscal utility command because the csresource utility does not have a modify command.

For example, the following command performs two tasks simultaneously:

cscal -o tchang -y mwong modify aud100

In this example, the cscal utility requires that resource's calid (aud100) is specified rather than the calendar name (Auditorium).

15.7.3 To Disable or Enable a Resource Calendar

You might need to disable a resource calendar to prevent users from scheduling events. For example, a conference room might be unavailable during remodeling, or an overhead project might be out for repair.

To disable or enable a resource calendar, use the csresource utility enable or disable command.

For example, to disable the resource calendar named Auditorium:

csresource disable Auditorium

Then, to enable the resource calendar later:

csresource enable Auditorium

15.7.4 To Delete a Resource Calendar

To delete a resource calendar, use the csresource utility delete command.

For example, to delete the Auditorium resource calendar, issue the following command:

csresource delete Auditorium

Calendar Server displays the following message:

Do you really want to delete this resource (y/n)?

Enter y to delete the calendar or n to cancel the operation.

If you enter y, Calendar Server deletes the calendar and displays a message that it has been deleted.

ProcedureTo Move a Resource Calendar to a Different Back-End Server

To move a user or resource calendar from one back-end server to another back-end server, follow these steps:

  1. On the original server, disable the calendar resource using the D.15 csresource utility. For example to disable the resource with the common name Auditorium:

    csresource disable Auditorium

  2. On the original server, export each of the resources calendars from the calendar database to a file using the D.10 csexport utility. For example:

    csexport -c aud100 calendar aud100.ics

  3. Copy the exported calendar (*.ics) files from the original server to the new server.

  4. On the new server, for each calendar exported, import the calendar from the file to the calendar database using the D.11 csimport utility. For example:

    csimport -c bkamdar calendar bkamdar.ics

  5. On the LDAP directory server, update the calendar owner’s icsDWPHost LDAP attribute to point to the new back-end server using the D.3 csattribute utility. To update an attribute, you must first delete the attribute and then add it with the new value. For example, to set the new server name to sesta.com:

    csattribute -a icsDWPHost delete bkamdar csattribute -a icsDWPHost=sesta.com add bkamdar

  6. On the new server, enable the calendar resource using the D.15 csresource utility. For example:

    csresource enable bkamdar

  7. On the new server, use the following commands to verify that the attributes are correct and that each calendar has been moved correctly. For example:

    cscal -v -o bkamdar list bkamdar csattribute -v list bkamdar

  8. On the original server, delete each calendar you just moved. For example:

    cscal -o bkamdar delete bkamdar

    The -o option deletes all calendars whose primary owner is bkamdar.


    Note –

    If you are using the CLD cache option and you have moved a calendar to a different back-end server, you should clear the CLD cache to remove the server names. An out-of-date entry in the CLD cache can prevent a front-end server from finding a calendar after it has been moved. To clear the CLD cache, follow these steps:

    • Stop Calendar Server.

    • Remove all files in the /var/opt/SUNWics5/csdb/cld_cache directory, but do not remove the cld_cache directory itself.

    • Restart Calendar Server.