cmwfsize


NAME

cmwfsize - display items disk usage statistics in picture area.


SYNOPSIS

 cmwfsize [-c conffile -frt] [-NSAnsa] [sitename [sitename...]]
 cmwfsize [-c conffile -frt] [-SAsa] -i itemid [itemid...]
 cmwfsize [-c conffile -frt] [-SAsa] -q sqlquery


DESCRIPTION

This script displays information about disk usage in pictures area as well as some general statistic about Communiware sites. Beside this it can be used for setting filesize data in the Communiware database according to reality.

First call format is used for getting per-site statistic. Command-line arguments are Communiware site names (default - all the sites). Second and third formats display per-item information. List of items is set explicitely via -i option or as a result of SQL-query to database (-q option).

Without -f option data are taken directly from database (ITEM.FILESIZE field). With this option the utilite calculates real disk space occupied by listed items and corrects (if needed) value of ITEM.FILESIZE field. If -r option is also given then messages about non-matching data are reported to STDERR.

Options

-c conffile
Sets an alternate config file.

-i itemid [itemid...]
Sets a list of items to be displaied info about. There must be at least one item id in the list.

-q sqlquery
Selects a list of item ids to be reported via given SQL-query. These ids must be returned in the first columns of the query result.

-f
Check and fix ITEM.FILESIZE field for reported items before printing.

-r
Print to STDERR warnings about data in database not corresponding to real disk usage and so on.

-t
Print header before reports (default - do not print).

-NSAnsa
These options set sort order printed data. Uppercase letters mean descending order, and lowercase - ascending.
n
Number of items are belong to site.

s
Disk space.

a
Item or site name.

16 октябрь 2007 13:45