Using Calendar Server Capture (cscapture) to Collect Debug Data for Sun Java System Calendar Server

1.7 Running CS Capture

CS Capture can be run from a shell/terminal and must be run as root:

# ./cscapture

By default, CS Capture creates a capture directory in the path where you ran the cscapture command. All the files and information that cscapture gathers are stored in the capture directory. By default, (when run as shown above), cscapture gathers:

  1. Machine environment information

  2. Calendar Server information and database*

  3. Core dump information from crashed processes

  4. Package data

*By default, the Calendar Server database is only gathered if the production database is less the 500 MB. To override the default, use the -db option. For more information on cscapture options, see 1.8 Command Line Options.

Note –

For details on the data that CS Capture gathers, see 1.4 What Data Does CS Capture Gather?.

1.7.1 Specifying A Location for the Capture Directory

You can specify a different location for the capture directory by running CS Capture as follows:

# ./cscapturepath to where to store capture directory

For example, to store the capture directory in /var/opt, you would run CS Capture as follows:

# ./cscapture /var/opt

Note –

The directory path must exist. If it does not, CS Capture issues an error message.