For a short description of each utility, see D.2 Short Description of Command-Line Utilities.
Calendar Server provides command-line utilities not included in the Delegated Administrator bundled with Access Manager.
These Calendar Server utilities can be invoked from batch, shell, and scripting programs such as Perl. Some of these utilities (csuser, csresource and csdomain) have been superseded by the Delegated Administrator utility, but the rest are still used, even in a Schema version 2 environment. For Schema version 1, you must continue to use csuser, csresource and csdomain, and not use Delegated Administrator.
If needed, these utilities use default values from the ics.conf configuration file.
The command-line utilities are located in the following directory: cal-svr-base/SUNWics5/cal/sbin
All of the utilities must be started from the sbin directory, with the exception of start-cal and stop-cal which can be run from any directory, if the full path is specified.
Error messages from these administrative tools are written to the admin.log file found in the csdb directory.
This chapter provides the following information:
Run the command-line utilities while logged in as the user and group where Calendar Server is running, or as root. This was specified during installation; the defaults are icsuser and icsgroup.
For example, if your Calendar Server base directory is cal-svr-base, to run the cscal utility list command, you would do the following after logging in:
cd cal-svr-base/SUNWics5/cal/sbin ./cscal list
Calendar Server command-line utilities use the following syntax:
utility [ -option [value]] command [target]
where:
utility is the executable name of the utility, such as cscal or csuser.
option determines which action the command performs. Options are in lowercase and preceded by a hyphen (-), such as -d. An option enclosed in brackets ([]) is optional. If indicated, of two or more options can be used at the same time.
value further qualifies the action specified by option, such as a description used with the -d option. A value enclosed in brackets ([]) is optional. Values that include spaces must be enclosed in quotation marks (" "). Multiple values must be enclosed in quotation marks (""), and each value must be separated by a space, unless indicated otherwise, such as the use of a semicolon delimited list.
command is an action the utility performs such as list or create. Commands separated by a vertical bar (|) indicate that either one (but not both) can be used at the same time.
target is the object on which the command takes effect, such as a calendar ID or user ID.
The following rules are general usage guidelines for the command line utilities:
If you specify only the utility name, it lists all commands, options, and several examples.
If you do not specify a required password, the utility prompts you for it.
The -v (verbose) and -q (quiet) options are available for each utility.
If a command is dangerous (that is, one that could cause a data loss), the utility prompts for confirmation before executing the command. Examples of dangerous commands are cscal, which can delete a calendar, and csuser, which can delete a user. The -q (quiet) option, however, disables confirmation prompting.
The version command is available for each utility.
If you run the command-line utilities from a script, the return code is “0” if the utility run successfully or “-1” for a failure.
The following table gives a short description the Calendar Server command-line utilities.
Table D–1 Calendar Server Command-Line Utilities Summary
Utility |
Description |
---|---|
Manages the LDAP attributes of a calendar user or resource for Schema version 1. |
|
Backs up individual calendars, users, and the calendar database. |
|
Manages calendars and their properties. |
|
Removes user and resource calendars for Calendar Server users whose status attribute (inetUserStatus) has been marked as “deleted” by Delegated Administrator. |
|
Manages calendar components: events and tasks (todos). |
|
Manages the calendar database. |
|
Manages Calendar Server attributes in the domain LDAP entry for Schema version 1. |
|
Exports a calendar in iCalendar (.ics) or XML (.xml) format. |
|
Imports a calendar in iCalendar (.ics) or XML (.xml) format. |
|
Allows the manual purge of entries in the Delete Log database (ics50deletelog.db). |
|
Allows the renaming of user ID's. Causes the whole database to be rewritten. |
|
Manages calendar resources such as conference rooms and equipment. |
|
Restores individual calendars, users, and the calendar database. |
|
Manages scheduling entries in the Group Scheduling Engine (GSE) queue. |
|
Displays counters in a Calendar Server. |
|
Manages calendar users for Schema version 1. |
|
Starts all Calendar Server processes. |
|
Stops all Calendar Server processes. |
The csattribute utility only works in Schema version 1 mode. It manages Calendar Server user or resource LDAP entry attributes. Commands are:
add an LDAP attribute and value to a specified target (user or resource object).
list the attributes of a target object.
delete an attribute from a target.
If your site is using the LDAP CLD plug-in, do not use csattribute to change the icsDWPHost attribute when trying to specify a new back-end host server. Modifying icsDWPHost does not cause a new calendar to be created on the new back-end host. For more information, see Chapter 5, Configuring Calendar Database Distribution Across Multiple Machines in Calendar Server Version 6.3
You must be using Schema version 1.
Calendar Server can be running or stopped.
You must be logged in as the user or group under which Calendar Server is running (such as icsuser and icsgroup) that was specified during installation, or as root.
csattribute [-q|-v] -a attribute=value [-t resource | user] [-d domain] add target csattribute [-q|-v] -a attribute[=value] [-t resource | user] [-d domain] delete target csattribute [-q | -v] [-t resource | user] [-d domain] list target |
The following table describes the commands available for csattribute.
Table D–2 csattribute Utility Commands
Command |
Description |
---|---|
add target |
Adds an LDAP attribute and value to a specified target (user or resource object). |
list target |
Lists the attributes of a target object. |
delete target |
Deletes an attribute from a target. |
version |
Displays the version of the utility. |
The following table describes the csattribute utility command options.
Table D–3 csattribute Utility Command Options
Add the icsCalendar LDAP attribute with the value tchang to the user ID tchang:
csattribute -a icsCalendar=tchang add tchang
Delete the LDAP attribute icsCalendar from tchang:
csattribute -a icsCalendar delete tchang
Display the attributes of tchang:
csattribute list tchang
The csbackup utility backs up the calendar database, a specified calendar, or a user’s default calendar. Commands are:
database to backup the calendar database.
calendar to backup a specified calendar.
defcal to backup a user’s default calendar.
version displays the version number of the utility currently installed.
The caldb.conf version file located in the specified backup directory shows the version number of the database that was backed up.
For information about csrestore, see D.16 csrestore.
Calendar Server can be running or stopped.
You must run the utility locally on the machine where Calendar Server is installed.
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.
csbackup [-q|-v] -f database target csbackup [-q|-v] -c calid calendar target csbackup [-q|-v] -a userid [-b basedn] defcal target |
The following table describes the commands available for csbackup.
Table D–4 csbackup Utility Commands
Command |
Description |
---|---|
database target |
Backs up the calendar database to the specified target database directory. By default, the target database directory is: cal-svr-base/SUNWics5/cal/sbin/target-directory If you specify only the target database directory, do not include the slash (/) before the directory name. For example: csbackup database backupdir Note: The csbackup utility fails if the target backup directory already exists and you do not specify the -f option. For example, the following command fails if backupdir exists, even if the directory is empty: csbackup database backupdir Therefore, if you specify a target backup directory that already exists, include the -f option when you run csbackup. You can also specify a nonexistent target backup directory and let csbackup create the directory for you. |
calendar calid target |
Backs up the specified calendar ID to the specified target output file. The data format of the file is assumed by the file extension, .ics for text/calendar or .xml for text/xml. |
defcal userid target |
Backs up the default calendar of the specified user ID to the specified target file. The data format of the file is assumed by the file extension, .ics for text/calendar and .xml for text/xml. |
version |
Displays the version of the utility. |
The following table describes the csbackup utility command options.
Table D–5 csbackup Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-a userid |
The user ID of the calendar user to backup. This option is required for the default option. There is no default. |
-b basedn |
The base DN to be used for this user. The default is taken from the setting service.schema2root, defined in the ics.conf file. The Base DN (distinguished name) is the entry in your LDAP directory used as the starting point from which searches occur. For example, if you specify a base DN of ou=people, o=sesta.com, all LDAP search operations executed by Calendar Server examine only the ou=people subtree in the o=sesta.com directory tree. |
-c calid |
The calendar ID to backup. This option is required with the calendar command. There is no default. For more information, see 15.2 Creating Calendar Unique Identifiers (calid's). |
-f |
To force any existing backup files to be deleted. In the current release, you must include the -f option if the backup target directory already exists, even if the directory is empty. |
-l |
To prepare the backup file for use with the SolsticeTM BackupTM or the Legato NetworkerTM backup programs. For more information, see Chapter 17, Backing Up and Restoring Calendar Server Data. |
Backup the calendar database to a directory named backupdir:
csbackup database backupdir
Backup the calendar with the calendar ID tchang to the file tchang.ics as text/calendar:
csbackup -c tchang calendar tchang.ics
Backup the default calendar for tchang to the file tchang.xml as text/xml:
csbackup -a tchang defcal tchang.xml
The cscal utility manages calendars and their properties. Commands are:
create a calendar
delete a calendar
disable a calendar
enable a calendar
list calendars
modify calendar properties and group scheduling access control
reset calendar properties to the default settings
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.
cscal [-q|-v] [-a aces] [-c charset] [-d description] [-g categories] [-k yes|no] [-l langcode] [-m email] [-n name] [-o owner’s uid] [-y otherowners] create|modify calid cscal [-q|-v] [-o owner’s uid] [-O] delete|reset calid cscal [-q|-v] [-o owner’s uid] [-O] disable|list [calid] cscal [-q|-v] [-k yes|no] [-o owner’s uid] [-O] enable [calid] |
Despite the fact that cscal does not check case when you enter the -o (owner’s uid), the search is case insensitive.
The following table describes the commands available for the cscal utility.
Table D–6 cscal Utility Commands
Command |
Description |
---|---|
create calid |
Creates the calendar specified by calid. Note: If your site is using the LDAP CLD plug-in, all calendars for a specific user must reside on the same back-end server, as indicated by the user’s icsDWPHost LDAP attribute. If you try to create a calendar for the user on a different back-end server, Calendar Server returns an error. |
delete calid |
Deletes the calendar specified by calid. If the -o owner option is specified, deletes all calendars whose primary owner is the specified uid. |
enable [ calid ] |
Enables the calendar specified by calid. If calid is not specified, enables all calendars. If the -o owner option is specified, enables all calendars whose primary owner is the specified uid. |
disable [ calid ] |
Disables the calendar specified by calid. If calid is not specified, disables all calendars. If the -o owner option is specified, disables all calendars whose primary owner is the specified uid. |
list [ calid ] |
Lists properties of the calendar specified by calid. If calid is not specified, lists properties of all calendars. If the -o owner's uid option is specified, lists all calendars whose primary owner is the specified owner uid. Note – When any of the permissions have been modified through the Calendar Express user interface, this command lists those ACE letters capitalized. There is no significance to this. The ACEs are case insensitive. |
modify calid |
Modifies the properties of the calendar specified by calid. |
reset calid |
Resets the properties of the calendar specified by calid to the default configuration settings. |
version |
Displays the version of the utility. |
The following table describes the cscal utility command options.
Table D–7 cscal Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-a [aces] |
Access Control Entries (ACE's) for a specified calendar. ACE's determine who can access a calendar for group scheduling and the types of permissions they have, such as create, delete, read, and write privileges. An ACE string or Access Control List (ACL), must be enclosed in quotation marks (" "). The default is the calstore.calendar.default.acl parameter in the ics.conf file. For details about the ACE format, see 1.8 Access Control for Calendar Server Version 6.3. |
-c charset |
Character set. The default is no character set. |
-d description |
Description (a viewable comment about the purpose of the calendar). The default is no description. |
-g category |
Category. Multiple categories must be enclosed in quotation marks ("") and separated by spaces. The default is no category. |
-k yes|no |
Specifies whether double booking is allowed for a user calendar. For example, yes means the calendar can have more than one event scheduled for the same time slot. If the -k option is omitted, the default is taken from the user.allow.doublebook parameter in the ics.conf file. However, the user.allow.doublebook parameter is used only when a calendar is created. After a calendar is created, Calendar Server checks the calendar properties database, ics50calprops.db, to determine if doublebooking is allowed. If you need to change the calendar properties for a calendar to allow or disallow doublebooking, reissue cscal with the -k option. |
-l langcode |
Language code. The default is no language code. |
-m email |
Email address. The default is no email. |
-n name |
Viewable Name. The default is no name. |
-o owner |
(Lowercase o) Primary owner. The default setting is the unique ID (uid) of the primary owner. |
-O |
(Uppercase O) Specifies all calendars of the primary owner. Default is the named calendar only. |
-y otherowners |
Other calendar owners. Multiple owners must be enclosed in quotation marks ("") and separated by spaces. The default is no other owners. |
If you try to create a calendar on a designated back-end machine, and you get the following error message: Invalid DWP Host Server. it means one of two things. Either your server is not configured properly, or the calendar owner has already been assigned to a different back-end server.
Look at the ics.conf file for the back-end server in question. Verify that the following settings exist:
service.dwp.enable = "yes" caldb.cld.type = "directory" local.hostname = "back-end hostname"
Look at the user's LDAP entry and see if there is an icsDWPHost attribute present. The value of icsDWPHost must match the back—end server name on which you are attempting to create the calendar. You can not create a calendar for this user on a different back-end server.
Create the calendar with the calendar ID tchang with tchang as the primary owner with the visible name Public_Calendar using the default access control settings (as defined by calstore.calendar.default.acl in the ics.conf file):
cscal -o tchang -n Public_Calendar create tchang
Modify calendar chang so that anyone has read and write access, it is associated with the category sports, and it is co-owned by jsmith@sesta.com:
cscal -a "@^a^rw^g" -g sports -y jsmith@sesta.com modify tchang
Disable the calendar with the calendar ID tchang (users will not be allowed to read, write to, or locate it using the user interface).
cscal disable tchang
Enable the calendar with the calendar ID tchang (users are allowed to read or write to it using the user interface), but it does not allow doublebooking:
cscal -k no enable tchang
List the properties of tchang:
cscal list tchang
List all the properties of tchang:
cscal -v list tchang
List all the calendars in the database:
cscal list
Reset the calendar with the calendar ID tchang to the default configuration settings:
cscal reset tchang
Remove a description from the calendar with the calendar ID tchang:
cscal -d "" modify tchang
Remove all categories from the calendar with the calendar ID tchang:
cscal -g "" modify tchang
Remove other owners from the calendar with the calendar ID tchang:
cscal -y "" modify tchang
Delete tchang from the calendar database:
cscal delete tchang
Delete all calendars from the calendar database whose primary owner is tchang:
cscal -o tchang delete
The csclean utility only works in Schema version 2 mode. It removes user and resource calendars for users whose status attribute (icsStatus) has been marked as “deleted” by Delegated Administrator.
For Schema version 1, use csuser and cscal to remove all of the calendars for a deleted user.
You must be using Schema version 2.
Calendar Server can be running or stopped.
You must run csclean locally on the machine where Calendar Server is installed.
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.
csclean [-q | -v] [-g graceperiod] clean domain |
The following table describes the csclean utility command options.
Table D–8 csclean Utility Command Options
Remove calendars for all users and resources in sesta.com whose calendar service has been deleted for at least 5 days:
csclean -g 5 clean sesta.com
Remove calendars for all users and resources in all domains whose calendar service has been deleted for at least 10 days:
csclean clean "*"
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. |
list calid |
Lists 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. |
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
The csdb utility manages the calendar databases (calendar, session, and statistics). Commands are:
create a new database. (If a database does not exist when the server is started, Calendar Server creates one automatically.)
delete an existing calendar database. A database cannot be deleted while it is open (when Calendar Server is running).
list information about the database.
check a calendar database to determine if any corruption has occurred.
rebuild a corrupted calendar database.
recover a damaged calendar database.
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 must be stopped for the create, delete, or rebuild commands.
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.
csdb [-q|-v] [-t caldb|sessdb|statdb] create|delete [dbdir] csdb [-q|-v] [-t caldb|sessdb|statdb] list [dbdir] csdb [-q|-v] [-f] [-t caldb|sessdb|statdb] recover [dbdir] csdb check [dbdir] csdb rebuild [-a, -V] [-g] [dbdir [dstdir]] |
The following table describes the commands available for the csdb utility.
Table D–11 csdb Utility Commands
Command |
Description |
---|---|
create [dbdir] |
Creates the databases in the specified database directory. If a database directory is not specified, the current directory is used. If a database does not exist when the server is started, Calendar Server creates one automatically. |
delete [dbdir] |
Deletes the databases in the specified database directory. If a database directory is not specified, the current directory is used. A database cannot be deleted while it is open (when Calendar Server is running). |
list [dbdir] |
Lists information about the databases in the specified database directory. If a database directory is not specified, the current directory is used. |
recover [dbdir] |
Attempts to recover damaged calendar databases in the specified database directory. If a database directory is not specified, the current directory is used. Is not implemented for session or statistics databases. |
check [dbdir] |
Scans a calendar database in the specified database directory to determine if any corruption has occurred and reports the results in its output. If a database directory is not specified, the current directory is used. |
rebuild [dbdir [dstdir]] |
Scans all calendar databases in the specified database directory to determine if any corruption has occurred and generates a rebuilt calendar database (.db files). If a database directory is not specified, the current directory is used. After the databases are rebuilt, db_verify runs. The dstdir specifies an optional destination directory. |
version |
Displays the version of the utility. |
The following table describes the csdb utility command options.
Table D–12 csdb Utility Command Options
Create new, unpopulated databases in the current directory:
csdb -t caldb create
Delete the databases in the current directory:
csdb -t caldb delete
List information about the calendar database in the current directory:
csdb -v -t caldb list
Attempt to recover all damaged databases in the current directory:
csdb recover
List information about the sessions database in the current directory:
csdb -t sessdb list
Rebuild the alarms database only:
csdb -a -V rebuild
The csdomain utility manages Calendar Server attributes in the domain LDAP entry. These attributes are part of the icsCalendarDomain object class. Commands are:
create a new domain entry in the LDAP directory.
add a Calendar Server attribute and its associated value in the domain entry.
delete a Calendar Server attribute in the domain entry, or delete an entire domain.
list Calendar Server attributes in the domain LDAP entry.
To run csdomain, the following parameters in the ics.conf file must be set:
service.virtualdomain.support must be set to “yes”.
local.schemaversion must be set to the version of the LDAP schema (“1” , “1.5”, or “2”).
If local.schemaversion = “1” or “1.5”, service.dcroot must be set to the root suffix of the DC tree in the LDAP directory.
If local.schemaversion = “2”, service.schema2root must be set to the root suffix underneath which all domains are found.
You must have followed the instructions in Chapter 10, Setting Up a Multiple Domain Calendar Server 6.3 Environment before using csdomain to add Organization Tree nodes.
You must run csdomain 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.
csdomain [-q | -v] -n node create domain csdomain [-q | -v] {-a attr[=value] | -f filename} add domain csdomain [-q | -v] [-a attr | -f filename] delete domain csdomain [-q | -v] list domain |
The following table describes the commands available for the csdomain utility.
Table D–13 csdomain Utility Commands
Command |
Description |
---|---|
create |
Create a new domain in the LDAP directory. |
add |
Add a Calendar Server attribute and its associated value in the domain LDAP entry. If you add or update domain attributes using csdomain, restart Calendar Server for the new values to take effect. |
delete |
Delete a Calendar Server attribute in the LDAP directory for a specific domain or delete all LDAP entries for an entire domain. |
list |
Display Calendar Server attributes in the LDAP directory for a specific domain. |
version |
Display the version of the utility. |
The following table describes the csdomain utility command options.
Table D–14 csdomain Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-aattr[=value] |
Specifies the LDAP attribute property name and its optional value. For a list of these attributes and property names, see D.9.3 LDAP Attributes and Property Names. |
-f filename |
Specifies a text file that contains Calendar Server LDAP directory property names and their associated values. For example: createLowerCase="yes" filterPrivateEvents="no" fbIncludeDefCal="no" subIncludeDefCal="no" uiProxyUrl="https://proxyserver" |
-n node |
Applies to the create command as follows:
|
domain |
For the add, delete, and list commands, specifies an existing domain in the LDAP directory. For the create command, specifies the unique name of a new domain that will be created in the LDAP directory. For example: west.sesta.com |
The following tables describe the LDAP attributes and property names that apply to the csdomain utility. These attributes are part of the icsCalendarDomain object class. When you add or delete a value, you must use the property name and not the attribute name.
If you add or update domain LDAP attributes using csdomain, restart Calendar Server for the new values to take effect.
D.9.3 LDAP Attributes and Property Names describes the icsAllowRights attribute and properties that you can set with the csdomain utility. This attribute is a 32-bit numeric string, with each bit in the string corresponding to a specific user right. (In the current release, some bits are not used and are set to zero by default.) If a bit corresponding to a specific right is set (value=1), the right is not allowed. If the bit is not set (value=0), the right is allowed.
Each property in the icsAllowRights attribute has a corresponding ics.conf parameter. If a property is not set (value = 0) or is not present (service.virtualdomain.support = “no”), Calendar Server uses the corresponding ics.conf parameter as the default value.
The value for icsAllowRights is a numeric string and not an integer. To use icsAllowRights programmatically in bitwise operations, you must first convert its string value to an integer.
Table D–15 icsAllowRights LDAP Directory Attribute and Properties
The following table describes the icsExtendedDomainPrefs attribute and properties that you can set with the csdomain utility. Each property has a corresponding ics.conf parameter. If a property is not set ( for example, value = 0, or service.virtualdomain.support=“no”), or is not present, Calendar Server uses the corresponding ics.conf parameter as the default value.
Table D–16 icsExtendedDomainPrefs LDAP Directory Attribute
Property Name |
Description |
---|---|
allowProxyLogin |
Specifies "yes" or "no" whether to allow proxy logins. Corresponding ics.conf parameter: service.http.allowadminproxy (default = "yes") |
calmasterAccessOverride |
Specifies "yes" or "no" whether the Calendar Server administrator can override access control. Corresponding ics.conf parameter: service.admin.calmaster.overrides.accesscontrol (default = "no") |
calmasterCred |
Specifies an ASCII string that is the password of the user ID specified as the Calendar Server domain administrator. Corresponding ics.conf parameter: service.siteadmin.cred (no default) |
calmasterUid |
Specifies an ASCII string that is the user ID of the person designated as the Calendar Server domain administrator. Corresponding ics.conf parameter: service.siteadmin.userid (no default) |
createLowercase |
Specifies "yes" or "no" whether Calendar Server should convert a calendar ID (calid) to lowercase when creating a new calendar or when searching for a calendar Corresponding ics.conf parameter: calstore.calendar.create.lowercase (default = "no") |
domainAccess |
Specifies an access control list (ACL) for the domain. For information about ACLs, see 1.8.3 Access Control Lists (ACLs) in Calendar Server Version 6.3. This ACL is used for cross domain searches. For more information, see 11.2 Cross Domain Searching in Calendar Server 6.3 Systems. Caution – Only a single instance of domainAccess is allowed. However, the system does not warn you if there is a duplicate. You must ensure there is only one, whenever you change the value. |
fbIncludeDefCal |
Specifies "yes" or "no" whether a user’s default calendar is included in user’s free/busy calendar list. Corresponding ics.conf parameter: calstore.freebusy.include.defaultcalendar (default = "yes") |
filterPrivateEvents |
Specifies "yes" or "no" whether Calendar Server filters (recognizes) Private and Time and Date Only (confidential) events and tasks. If "no", Calendar Server treats them the same as Public events and tasks. Corresponding ics.conf parameter: calstore.filterprivateevents (default = "yes") |
groupMaxSize |
Specifies the maximum size of an LDAP group that will be expanded for an invitation. Corresponding ics.conf parameter: calstore.group.attendee.maxsize (default is "0" – expand the group without regard to size) |
language |
Specifies the language for a domain. Corresponding ics.conf parameter: local.domain.language |
resourceDefaultAcl |
Specifies an access control list (ACL) that is the default access control permissions used when a resource calendar is created. Corresponding ics.conf parameter: resource.default.acl (default is "@@o^a^r^g;@@o^c^wdeic^g; @^a^rsf^g" |
setPublicRead |
Specifies whether user default calendars are initially set to public read/private write ("yes") or private read/private write ("no"). Corresponding ics.conf parameter: service.wcap.login.calendar.publicread (default = "no") |
searchFilter |
Specifies a search filter for finding a user. Corresponding ics.conf parameter: local.userSearchFilter |
ssoCookieDomain |
Specifies that the browser should send a cookie only to servers in the specified domain. The value must begin with a period (.). For example: ".sesta.com" Corresponding ics.conf parameter: sso.cookiedomain (default is the current domain) |
ssoUserDomain |
Specifies the domain used as part of the user’s SSO authentication. Corresponding ics.conf parameter: sso.userdomain (no default) |
subIncludeDefCal |
Specifies "yes" or "no" whether a user’s default calendar is included in the user’s subscribed calendar list. Corresponding ics.conf parameter: calstore.subscribed.include.defaultcalendar (default = "yes") |
uiAllowAnyone |
Specifies "yes" or "no" whether the user interface should show and use the "Everybody" access control list (ACL). Corresponding ics.conf parameter: ui.allow.anyone (default = "yes") |
uiAllowDomain |
Specifies "yes" or "no" whether the user interface should show and use the access control list (ACL) for this domain. Corresponding ics.conf parameter: ui.allow.domain (default = "no") |
uiBaseUrl |
Specifies a URL for the base server address. For example: "https://proxyserver". Corresponding ics.conf parameter: ui.base.url (no default) |
uiConfigFile |
Specifies an optional xml based configuration file that Calendar Server can read at startup that allows parts of the user interface to be hidden. Corresponding ics.conf parameter: ui.config.file (no default) |
uiProxyURL |
Specifies a URL for the proxy server address to prepend in an HTML UI JavaScript file. For example: "https://web_portal.sesta.com/" Corresponding ics.conf parameter: ui.proxyaddress.url (no default) |
The following table describes other LDAP attributes and properties that you can set with the csdomain utility.
Table D–17 Other LDAP Directory Attributes for the csdomain Utility
Create a new domain using LDAP Schema version 1 named west.sesta.com:
csdomain -v -n o=nodewest,o=sesta create west.sesta.com
Create a new domain using LDAP Schema version 2 named east.sesta.com:
csdomain -v -n nodeeast create east.sesta.com
Display a list of Calendar Server LDAP attributes for the domain named west.sesta.com:
csdomain -v list west.sesta.com
Set the time zone to America/New_York for the domain named west.sesta.com:
csdomain -v -a timezone=America/New_York add west.sesta.com
The csexport utility exports a calendar to a file in iCalendar (.ics) or XML (.xml) format. Commands are:
calendar exports a specified 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.
csexport [-v|-q] -c calid calendar outputfile |
The following table describes the commands available for the csexport utility.
Table D–18 csexport Utility Commands
The following table describes the csexport utility command options.
Table D–19 csexport Utility Command Options
Export the calendar with the calendar ID tchang in iCalendar (text/calendar) format to a file named tchang.ics:
csexport -c tchang calendar tchang.ics
Exports the calendar with the calendar ID tchang in XML (text/xml) format to a file named tchang.xml:
csexport -c tchang calendar tchang.xml
The csimport utility imports a calendar from a file in iCalendar (ics) or XML format that was saved with the csexport utility. Commands are:
calendar – Imports a specified calendar.
version – Displays the version number of the utility currently installed.
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.
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.
csimport [-v|-q] -c calid calendar inputfile |
The following table describes the commands available for the csimport utility.
Table D–20 csimport Utility Commands
The following table describes the csimport utility command options.
Table D–21 csimport Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-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). |
Import the calendar with the calendar ID tchang from the file tchang.ics and expect iCalendar (text/calendar file) format:
csimport -c tchang calendar tchang.ics
Import the calendar with the calendar ID tchang from the file tchang.xml and expect XML (text/xml file) format:
csimport -c tchang calendar tchang.xml
The csplugin manages CSAPI plug-ins configured for your Calendar Server installation. Commands are:
activate loads and starts a specified plug-in.
deactivate shut downs and disables the specified plug-in type and plug-in name. (For descriptions of the supported plug-in types, see the -t option in Table D–23.)
list displays all supported plug-ins.
version displays the version number of the utility currently installed.
Must be run on the local 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.
csplugin [-q|-v] [-r] -t ac|attr|auth|locate|lookup|xlate activate|deactivate plugin csplugin [-q|-v] list |
The following table describes the commands available for the csplugin utility.
Table D–22 csplugin Utility Commands
Command |
Description |
---|---|
activate -t type name |
Load and enable the specified plug-in type and plug-in name. (For descriptions of the supported plug-in types, see the -t option in Table D–23.) |
deactivate -t type name |
Shut down and disable the specified plug-in type and plug-in name. (For descriptions of the supported plug-in types, see the -t option in Table D–23.) |
list |
List all the supported plug-in types, names, and activation status. (For descriptions of the supported plug-in types, see the -t option in Table D–23.) |
version |
Display the version of the utility. |
The following table describes the csplugin utility command options.
Table D–23 csplugin Utility Command Options
List details about all the supported plug-ins, including the type, name and the activation status of each plug-in configured for use with this server instance:
csplugin -v list
Load and enable the lookup type plug-in with the file named mylookup:
csplugin activate -t lookup mylookup
Disable the lookup type plug-in with the file named mylookup and then delete it from the plugin directory:
csplugin deactivate -t lookup mylookup -r
The cspurge utility allows the manual purge of entries in the Delete Log database (ics50deletelog.db).
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.
cspurge [-q|-v] -e endtime -s starttime |
The following table describes the cspurge utility command options.
Table D–24 cspurge Utility Command Options
Purge all entries in the Delete Log:
cspurge -v -e 0 -s 0
Purge all entries from July 1, 2003 through July 31, 2003:
cspurge -v -e 20030731T235959Z -s 20030701T120000Z
Purge all entries up to September 30, 2003:
cspurge -v -e 20031030T235959Z -s 0
The csrename utility allows you to rename one or more calendar users. This utility renames calendar users as follows:
Calendar database files–Renames users (user ID's) in the calendar database files and then writes the new database files to a destination directory. The existing calendar database files are not modified.
LDAP directory server–Converts the user ID's in the Calendar Server LDAP attributes (that is, attributes with the “ics” prefix). The LDAP directory server is modified in place.
The csrename utility is located in the following directory:
cal-svr-base/SUNWics5/cal/sbin
Before you run csrename, you must first:
Create an input mapping file (-m option) for the users you want to convert.
Create any new users in the LDAP directory server, if necessary.
Stop Calendar Server.
To run csrename, you must log in as icsuser (or as the Calendar Server runtime user ID specified during configuration). If you run csrename as superuser (root), you might need to reset the permissions for the new database files. To modify the LDAP directory server attributes, you must also have administrative rights for that directory.
If your Calendar Server installation has a front-end/back-end server configuration, you must run csrename on each back-end server.
Use the following syntax to run csrename:
csrename [-t DestinationDB] [-c ConfigFile] [-e ErrorFile] -m MappingFile rename [DB|LDAP] |
table lists the options for this utility and gives a description of each.
Table D–25 Options for csrename
Option |
Description |
---|---|
-t DestinationDB |
Specifies the destination directory where csrename generates the new database with the converted user names. The default is MigratedDB. After csrename is finished, the caldb.berkeleydb.homedir.path parameter in the ics.conf file must point to the destination database. Either reset caldb.berkeleydb.homedir.path to point to the destination database directory, or move the destination database files to the directory indicated by the parameter. |
-c ConfigFile |
An input parameter that specifies a Calendar Server configuration file. The default is the ics.conf file. The csrename utility uses the caldb.berkeleydb.homedir.path parameter in the configuration file to determine the location of the input calendar database. The default location of the calendar database is /var/opt/SUNWics5/csdb. |
-e ErrorFile |
The file where csrename writes any errors or database entries that cannot be resolved. The default is MigrateError. |
-m MappingFile |
Specifies an input mapping file. The default is MigrateMapping. The input mapping file is a text file that maps existing user ID's to new user ID's. You must create the mapping file before you run csrename. Specify one entry per line with a space between the old and new values. For example: tchang tc897675 jsmith js963123 bkamdar bk548769 If upon auditing your results, you find that one or more of your intended name changes was omitted, you can fix the error by creating a new mapping file with only the missed names in it and rerunning csrename. |
DB|LDAP |
Specifies the database that gets updated: DB converts user ID's in the new calendar database only (default). LDAP converts user ID's in both the new calendar database and the LDAP directory server attributes. |
Rename users based on the mapping file named DBMapFile and create the new calendar database in the destination directory named newcalDB:
csrename -t newcalDB -m DBMapFile rename DB
Rename users based on values in the mapping file named NewNames, create the new calendar database in the destination directory named NewDB, and modify the Calendar Server attributes in the LDAP directory server:
csrename -t NewDB -m NewNames rename LDAP
The csresource utility creates and manages LDAP entries and calendars for resources, such as conference rooms or equipment. (The csresource utility is available only for calendars associated with a resource and returns an error if issued against a user’s calendar.) Commands are:
create adds a new resource for a specified calendar ID (calid)
delete removes a resource or all resources
disable disables a resource or all resources
enable enables a resource or all resources
list displays a single resource or a list of all resources
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.
csresource [-q|-v] [-a aces] [-b basedn] [-d domain] [-t description] [-k yes|no] [-o owner] [-y otherowners] -m email -c calid create common_name csresource [-q|-v] [-b basedn] [-d domain] delete|disable|enable [common_name] csresource [-q|-v] [-b basedn] [-d domain] [-h host] list [common_name] |
Then following table describes the commands available for the csresource utility.
Table D–26 csresource Utility Commands
Command |
Description |
---|---|
create common_name |
Create a new resource for a specified calendar ID. |
delete [common_name] |
Delete a resource or, if no resource common_name is specified, delete all resources. |
enable [common_name] |
Enable a resource or, if no resource common_name is specified, enable all resources. |
disable [common_name] |
Disable a resource or, if no resource common_name is specified, disable all resources. |
list [common_name] |
Display a single resource calendar or, if no resource name is specified, display all resource calendars. If the -h host option is included, display the calendar attributes for the specified name (or all resource calendars) on that back-end server. |
If the name contains a space in any of the above commands, it must be enclosed in quotation marks (" ").
The following table describes the csresource utility command options.
Table D–27 csresource Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-a [aces] |
Access Control Entries (ACE's) for the specified calendar. ACE's determine who can access a calendar for group scheduling and the types of permissions they have, such as create, delete, read, and write privileges. An ACE string or Access Control List (ACL), must be enclosed in quotation marks (""). The default is the resource.default.acl parameter in the ics.conf file. For information about the ACE format, see 15.4 Calendar Access Control. |
-b [basedn] |
LDAP base DN (distinguished name) to be used for the specified resource. The default is taken from the local.ugldapbasedn parameter in the ics.conf file. |
-c calid |
The icsCalendar attribute. This option is required with the create command. For more information, see 15.2 Creating Calendar Unique Identifiers (calid's). |
-d domain |
Specifies the name of a domain. Default is taken from the service.defaultdomain parameter in the ics.conf file. |
-t [description] |
Specifies a viewable comment about the purpose of the calendar. The default is no description. |
-h host |
Specifies the name of a back-end server where the resource calendar resides. This option applies only to the list command. |
-k yes|no |
Specifies whether double booking is allowed for a calendar associated with a resource such as a conference room. For example, yes means the resource calendar can have more than one event scheduled for the same time slot. If the -k option is omitted, the default is taken from the resource.allow.doublebook parameter in the ics.conf file. However, the resource.allow.doublebook parameter is used only when a calendar is created. After a calendar is created, Calendar Server checks the calendar properties database (ics50calprops.db) to determine if double booking is allowed. If you need to change the calendar properties for a calendar to allow or disallow double booking, reissue csresource with the -k option. |
-m email |
Specifies the LDAP mail attribute (primary email address) for the resource. |
-o owner |
Primary owner. Default is taken from service.siteadmin.userid in the ics.conf file. |
-y otherowners |
Other owners. Multiple owners must be enclosed in quotation marks (" ") and separated by spaces. The default is no other owners. |
version |
Display the version of the utility. |
Display a list of all resource calendars and their LDAP attributes:
csresource -v list
Create a resource calendar with the calendar ID (calid) room100 and the viewable name (LDAP cn attribute) MeetingRoom100:
csresource -m room100@sesta.com -c room100 create MeetingRoom100
Display the LDAP attributes of the resource calendar with the viewable name MeetingRoom100:
csresource -v list MeetingRoom100
Disable the resource calendar with the viewable name MeetingRoom100:
csresource disable MeetingRoom100
Enable the resource calendar with the viewable name MeetingRoom100 and allow doublebooking:
csresource -k yes enable MeetingRoom100
Delete the resource calendar with the viewable name MeetingRoom100:
csresource delete MeetingRoom100
Display the LDAP attributes of the resource calendar with the viewable name MeetingRoom100 on the back-end server sesta:
csresource -v -h sesta list MeetingRoom100
The csrestore utility restores the calendar database, a specified calendar, or a user’s default calendar that was saved using csbackup or csexport. Commands are:
database restores the calendar database.
calendar restores a specified calendar.
defcal restores a user’s default calendar.
version displays the version number of the utility currently installed.
The caldb.conf version file located in the specified backup directory shows the version number of the database that was backed up.
The Calendar Server version 6.3 csrestore utility is not compatible with the Calendar Server version 2 csrestoreutility. Do not try to restore data that was backed up using the csrestore in version 2 because data loss can occur.
You must run the utility locally on the machine where Calendar Server is installed.
If you are restoring the calendar database, Calendar Server must be 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.
csrestore does not take care about the user LDAP entries, subscribed or own calendar. You need to manually perform on the User LDAP entire to get the personal calendar back on the multi valued attribute, icsSubscribed.
csrestore [-v|-q] [-f] database inputdir csrestore [-v|-q] -c calid calendar inputfile csrestore [-v|-q] -a userid [-b basedn] defcal inputfile |
The following table describes the commands available for the csrestore utility.
Table D–28 csrestore Utility Commands
The following table describes the csrestore utility command options.
Table D–29 csrestore Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-a userid |
The user ID to restore. This option is required with the default option. There is no default. |
-b basedn |
The LDAP base DN (distinguished name) to be used for the specified user ID. The default is taken from the setting local.ugldapbasedn defined in the ics.conf file. |
-f |
To force any existing database files to be deleted. |
-c calid |
The calendar ID to restore. This option is required with the calendar command. There is no default. For more information, see 15.2 Creating Calendar Unique Identifiers (calid's). |
Restore the calendar database stored in the directory backupdir that was previously saved using csbackup:
csrestore database backupdir
Restore the calendar with the calendar ID tchang from the file tchang.ics located in the directory backupdir that was previously saved in iCalendar (text/calendar file) format using csbackup or csexport:
csrestore -c tchang calendar backupdir/tchang.ics
Restore tchang from the calendar database in backupdir that was previously saved using csbackup:
csrestore -c tchang calendar backupdir
Restore the default calendar owned by tchang from the file tchang.ics located in the directory backupdir that was previously saved in iCalendar (text/calendar file) format using csbackup or csexport:
csrestore -a tchang defcal backupdir/tchang.ics
The csschedule utility manages schedule entries stored in the Group Scheduling Engine (GSE) queue. Commands are:
list displays entries held in the GSE queue requested by a specified calendar ID.
delete removes an entry from the GSE queue requested by a specified calendar ID.
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 must be 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.
csschedule [-q|-v] [-c count] [-e endtime] [-s starttime] [-t scheduletime -o offset] [-u uid] list [calid] csschedule [-q|-v] [-t scheduletime -o offset -u uid -n sequencenumber -r rid] list [calid] csschedule [-q|-v] [-t scheduletime -o offset -u uid -n sequencenumber -r rid] delete [calid] csschedule [-q|-v] [-s starttime] [-e endtime] delete [calid] |
The following table describes the commands available for the csschedule utility.
Table D–30 csschedule Utility Commands
Command |
Description |
---|---|
list |
Display entries held in the GSE queue requested by a specified calendar ID. |
delete |
Delete an entry from the GSE queue requested by a specified calendar ID. |
version |
Display the version of the utility. |
Then following table describes the csschedule utility command options.
Table D–31 csschedule Utility Command Options
List in detail all entries stored in the GSE queue:
csschedule -v list
List the first ten entries stored in the GSE queue:
csschedule -c 10 list
List the entries in the GSE queue scheduled between 10:30:45 to 11:30:45 on 12/31/2000:
csschedule -s 20001231T103045Z -e 20001231T113045Z list
List the entry in the GSE queue for calendar tchang that is scheduled at 10:30:45, with an offset number of 2 at the time 10:30:45 on 12/31/2000, with the unique identifier 1111, recurrence ID 0, and sequence number 0:
csschedule -v -t 20001231T103045Z -o 2 -u 1111 -r 0 -n 0 list tchang
Delete the entry in the GSE queue for calendar tchang at 10:30:45, the first offset at time 10:30:45 on 12/31/2000, with the unique identifier 1111, recurrence ID 0, and sequence number 0:
csschedule -v -t 20001231T103045Z -o 1 -u 1111 -r 0 -n 0 delete tchang
Delete entries in the GSE that are scheduled between 10:30:45 and 16:30:45 on 12/31/2000:
csschedule -v -s 20001231T103045Z -e 20001231T163045Z delete
Delete all entries in the GSE queue:
csschedule -v delete
The csstats utility displays Calendar Server statistics. Commands are:
list counter statistics about a specified Calendar Server subsystem.
version displays the version number of the utility currently installed.
For more information about counters, see E.3 Counters Configuration (counter.conf) File.
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.
csstats [-q|v] [-r registry] [-i iterations] [-s delay] list [subsystem] |
The following table describes the commands available for the csstats utility.
Table D–32 csstats Utility Commands
The following table describes the csstats utility command options.
Table D–33 csstats Utility Command Options
Display basic information about counters and what types are available:
csstats list
List counter statistics about the HTTP service subsystem (hpptstat):
csstats list http
List counter statistics about the WCAP subsystem (wcapstat) every 10 seconds for one hour (3600 seconds):
csstats -i 3600 -s 10 list wcap
The csuser utility works in Schema version 1 mode only. It manages calendar users' LDAP entries, and the users' default calendars. Commands are:
check Checks whether a user is enabled for calendaring.
create Enables a user for calendaring.
This utility does not enable users for Address Book as is required for Communications Express. This will have to be done manually with ldapmodify.
delete Deletes a user and the user’s default calendar.
If the user has other calendars, they are not deleted. Use cscal to remove other calendars of a deleted user.
disable Prevents a user from logging in to Calendar Server.
enable Allows a user to log on to Calendar Server.
list Lists a user's calendar attributes.
reset Removes all calendar attributes from the LDAP entry, including icsCalendarUser (object class), icsSubscribed, icsCalendarOwned, icsCalendar, and icsDWPHost (if the user is in an LDAP CLD setup).
After this command has been issued, the user is no longer enabled for calendar service. If you want to restore calendar services to the user, issue a csuser enable command.
If you are using Directory Server, you can also use the ldapsearch and ldapmodify utilities. For information about these utilities, see the Directory Server documentation on the following Web site:
http://docs.sun.com/coll/1316.2
You must be using Schema version 1.
Calendar Server can be running or stopped.
You must run the utility locally on the machine where Calendar Server is installed.
The LDAP server that stores calendar user information must be running.
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.
csuser [-q|-v] [-a aces] [-b basedn] -m email address [-d domain] -f filename -g givenname [-k yes|no] [-l langcode] -s surname -y userpassword create userid csuser [-q|-v] [-b basedn] [-d domain] [-h host] list [userid] csuser [-q|-v] [-b basedn] [-d domain] [check|delete|disable|enable|reset] userid |
The following table describes the commands available for the csuser utility.
Table D–34 csuser Utility Commands
Command |
Description |
---|---|
check userid |
Check if the specified user ID is enabled for calendaring. |
create userid |
Create the specified user ID and enable this user to log into Calendar Server. |
delete userid |
Delete the specified user ID. |
disable userid |
Disables the specified user ID for calendaring by adding icsAllowedServiceAcess="http" to the user's LDAP entry. |
enable userid |
Enables the specified user ID for calendaring by removing icsAllowedServiceAcess="http" from the user's LDAP entry. |
list [userid] |
List the calendar attributes for the specified user ID. If user ID is not specified, list attributes for all enabled users. If the -h server-name option is included, list the calendar attributes for the specified user ID (or all enabled users) on that back-end server. |
reset userid |
Reset all calendar attributes for a user ID to their default settings. Note: After the calendar attributes for a user ID have been reset, all of the calendar attributes are removed from the user’s LDAP entry, including icsCalendarUser (object class), icsSubscribed, icsCalendarOwned, icsCalendar, and icsDWPHost (if the user is in an LDAP CLD setup). A Calendar Server administrator then cannot create calendars on the user’s behalf. These attributes are restored in the user’s LDAP entry when the Calendar Server administrator issues a csuser enable command for the user. |
version |
Display the version of the utility. |
The following table describes the csuser utility command options.
Table D–35 csuser Utility Command Options
Option |
Description |
---|---|
-v |
Run in verbose mode: Display all available information about the command being performed. Default is off. |
-q |
Run in quiet mode:
|
-b basedn |
The base DN to be used for all LDAP users. The default value is taken from the setting local.ugldapbasedn defined in the ics.conf file. |
-d domain |
Specifies the name of a domain. Default is taken from the service.defaultdomain parameter in the ics.conf file. |
-a [aces] |
Access Control Entries (ACE's) for a specified calendar. ACE's determine who can access a calendar for group scheduling and the types of permissions they have, such as create, delete, read, and write privileges. An ACE string or Access Control List (ACL), must be enclosed in quotation marks (""). Default is: "@@o^a^r^g;@@o^c^wdeic^g; @^a^sf^g;@^c^^g;@^p^r^g" For details about the ACE format, see E.2.9 Calendar Server Services Configuration. |
-f filename |
File name to specify a password for options that require a password (-y parameter). If you are running csuser from a script, for added security, specify the password in filename. |
-g givenname |
The user's LDAP given name (first name). This option is required. There is no default. |
-h host |
Specifies the name of a back-end server where the user’s calendar resides. This option applies only to the list command. |
-p port |
The port number that LDAP server is listening to. The default value is taken from the setting local.ugldapport defined in the ics.conf file. |
-k yes|no |
If double booking is allowed for a user’s calendar. If yes, the user’s calendar can have more than one event scheduled for the same time slot. Default is taken from the setting user.allow.doublebook defined in the ics.conf file. |
-l [langcode] |
Language code. Default is the value of local.sitelanguage in ics.conf. |
-m email address |
Specifies the LDAP mail attribute (primary email address) for the user. |
-s surname |
The user's LDAP surname (last name). This option is required. There is no default. |
Check if the calendar user jsmith@sesta.com is enabled for calendaring (if the existing calendar user has access to calendar data for this Calendar Server):
csuser check jsmith@sesta.com
Create an LDAP user with the user ID jsmith@sesta.com with the given name John, surname Smith, email address jsmith@sesta.com, and the domain sesta.com:
csuser -g John -s Smith -y password -m jsmith@sesta.com create jsmith@sesta.com -d sesta.com
Delete the calendar user jsmith@sesta.com
csuser delete jsmith@sesta.com
Disable the calendar user jsmith@sesta.com from logging in to Calendar Server:
csuser disable jsmith@sesta.com
This command prevents jsmith@sesta.com from logging into Calendar Server to access calendar data, but it does not delete jsmith’s data from the calendar database. If jsmith is currently logged into Calendar Server, he retains access to calendar data until he logs off.
Enable jsmith@sesta.com for calendaring (lets existing calendar user log in to Calendar Server):
csuser enable jsmith@sesta.com
List all calendar attributes for jsmith@sesta.com:
csuser -v list jsmith@sesta.com
List all calendar user ID's prefixed with the string user:
csuser -v list "user*"
Reset all calendar attributes for jsmith@sesta.com to the default configuration settings:
csuser reset jsmith@sesta.com
List all calendar attributes for tchang on the back-end server sesta:
csuser -v -h sesta list tchang
The start-cal utility starts the Calendar Server services in this order:
watcher — Monitors Calendar Server daemons
enpd — Event Notification Service (ENS)
csstored — Performs maintenance and backup operations on the database
csnotifyd — Notification Service
csadmind — Administration Service
csdwpd — Database Wire Protocol (DWP) service, the distributed database service that is started only with a remote Calendar Server database configuration
cshttpd — HTTP Service
You must run start-cal locally on the machine where Calendar Server is installed.
You must be logged in as root.
start-cal
cal-svr-base/SUNWics5/cal/sbin/start-cal
For more information, see 12.1 Starting and Stopping Calendar Server 6.3 Processes.
The stop-cal utility stops all Calendar Server services.
You must run stop-cal locally on the machine where Calendar Server is installed.
You must be logged in as root.
stop-cal
cal-svr-base/SUNWics5/cal/sbin/stop-cal
For more information, see 12.1 Starting and Stopping Calendar Server 6.3 Processes.