CS Capture can be run from a shell/terminal and must be run as root:
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:
Machine environment information
Calendar Server information and database*
Core dump information from crashed processes
*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.
For details on the data that CS Capture gathers, see 1.4 What Data Does CS Capture Gather?.
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
The directory path must exist. If it does not, CS Capture issues an error message.