statistics compute

Available for: Content Management Server, Template Engine

Task: This command generates version, link, and file statistics.

Syntax:

statistics compute {parameter value}

Function parameters:

  • parameter can be one of:

    • name specifies that value contains one of the following keywords indicating the type of statistical information to compute. name is mandatory.

      • all (CM, TE): returns the results of all other functions listed in the following.
      • contents (CM): generates statistical information on versions.
      • dependencies (TE): generates statistical information on dependencies.
      • export (TE): generates statistical information on the incremental export.
      • links (CM): returns statistical information on links.
      • objects (CM, TE): generates statistical information on objects.
      • topReferences (TE): generates a list of the files that have the most dependencies.
    • format optionally specifies that value contains one of the following output formats:

      • tcl: the result is to be returned as a tcl list.
      • text: the result is to be returned as normal text. This is the default value.
  • value contains the value for the respective parameter.

Return value if successful: the requested statistical information.

Necessary permissions (CM only): the user is required to have the permissionGlobalRoot permission.

Example:

TE>statistics compute name dependencies
contents
--------
total contents : 258 (100.0%)
edited contents : 8 ( 3.1%)
released contents : 192 ( 74.4%)
archived contents : 58 ( 22.5%)
avg contents/object : 1.3