The space command displays data on disk space use for views, VOBs, or file system files or directories. Reports are organized by disk partition, with disk-use statistics listed both in absolute units (megabytes) and as a percentage of the capacity of the disk partition that contains the storage directory.
With the –view or –vob option, space uses previously generated, cached data for a view or VOB. The –update option generates fresh data and updates the cache before displaying the report. With the –directory option, space does not use cached data.
The –generate option is intended for use by scheduled jobs. By default, the scheduler periodically runs space with the –generate option to generate and cache data on disk space use for all local views and VOBs. For information about describing and changing scheduled jobs, see the schedule reference page .
The VOB or view storage directories for all specified VOBs or views must reside on the local host. If no tag argument is specified, the command generates data for all VOBs or views on the local host.
The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
cmd-context space –vob /projects/bigapp
Use(Mb) %Use Directory
190.1 2% source pool storage /usr1/vobs/bigapp_vob/s
366.7 4% derived object pool storage /usr1/vobs/bigapp_vob/d
48.3 1% cleartext pool storage /usr1/vobs/bigapp_vob/c
1452.2 17% VOB database /usr1/vobs/bigapp_vob/db
0.0 0% unknown item /usr1/vobs/bigapp_vob/vob_scrubber_params~
0.1 0% administration data /usr1/vobs/bigapp_vob/admin
48.3 1% cleartext pool /usr1/vobs/bigapp_vob/c/cdft
366.7 4% derived object pool /usr1/vobs/bigapp_vob/d/ddft
190.1 2% source pool /usr1/vobs/bigapp_vob/s/sdft
-------- ---- ---------------------------------------------------------
2662.5 31% Subtotal
6466.2 76% Filesystem srv1:/usr1 (capacity 8501.5 Mb)
Total usage 2007-07-28T05:03:02 for vob "/projects/bigapp" is 2662.5 Mb
cmd-context space –view –host machine1
Use(Mb) %Use Directory
0.1 0% View private storage C:\Storage\kim_mainline.vws\.s
0.1 0% View database C:\Storage\kim_mainline.vws\db
0.0 0% View administration data C:\Storage\kim_mainline.vws\admin
1.4 0% View private storage C:\Storage\kim_v3.2.vws\.s
0.1 0% View database C:\Storage\kim_v3.2.vws\db
0.0 0% View administration data C:\Storage\kim_v3.2.vws\admin
103.8 5% View private storage C:\Storage\kim_win32_nt.vws\.s
0.3 0% Database dump file C:\Storage\kim_win32_nt.vws\db.dumped
0.4 0% View database C:\Storage\kim_win32_nt.vws\db
0.0 0% View administration data C:\Storage\kim_win32_nt.vws\admin
0.6 0% View private storage C:\Storage\kim_win32_nt2.vws\.s
0.0 0% View database C:\Storage\kim_win32_nt2.vws\db
0.0 0% View administration data
C:\Storage\kim_win32_nt2.vws\admin
0.0 0% View private storage C:\Storage\kim_mainline_snap\.s
0.3 0% View database C:\Storage\kim_mainline_snap\db
0.0 0% View administration data
C:\Storage\kim_mainline_snap\admin
------- ---- -------------------------------------------------------
107.2 5% Subtotal
2000.9 98% Filesystem machine1:c:\ (capacity 2047.0 Mb)
Total usage 2007-07-07T04:40:00 for view "kim_mainline" is 0.2 Mb
Total usage 2007-07-07T04:40:00 for view "kim_v3.2" is 1.5 Mb
Total usage 2007-07-07T04:40:01 for view "kim_win32_nt" is 104.6 Mb
Total usage 2007-07-07T04:40:03 for view "kim_win32_nt2" is 0.6 Mb
Total usage 2007-07-07T04:40:03 for view "kim_mainline_snap" is 0.3 Mb
cmd-context space –view –update fred_1
Updating space information for "fred_1" on host "machine1"
Job is running on host ("machine1"), waiting for it to finish.
......
Job completed successfully on host ("machine1").
Use(Mb) %Use Directory
17.1 7% View private storage /export/home/fred/ccstore/fred_1/.s
0.3 0% View database /export/home/fred/ccstore/fred_1/db
0.0 0% View administration data
/export/home/fred/ccstore/fred_1/admin
------ ---- -------------------------------------------------------
17.4 7% Subtotal
220.6 92% Filesystem machine1:/export/home (capacity 240.7 Mb)
Total usage 2007-08-05T10:14:03 for view "fred_1" is 17.4 Mb
cmd-context space –directory D:\users\sue
Use(Mb) %Use Directory
38.8 1% D:\users\sue
-------- ---- ----------------------------------------------------
38.8 1% Subtotal
2546.7 62% Filesystem machine1:d:\ (capacity 4086.8 Mb)