[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 1

cachefslog Command

Purpose

Controls the logging of a cache file system.

Syntax

cachefslog [ -fLogFile |-h ] Cachefs_Mount_Point

Description

The cachefslog command displays where CacheFS statistics are being logged. Optionally, it sets where CacheFS statistics are being logged, or it halts logging for a cache specified by Cachefs_Mount_Point. The Cachefs_Mount_Point argument is a mount point of a cache file system. All file systems cached under the same cache as Cachefs_Mount_Point are logged.

Flags

-f LogFile Specifies the log file to be used.
-h Halts logging.

Exit Status

The following exit values are returned:

0 success
non-zero an error has occurred.

Examples

  1. To checks if the directory /home/sam is being logged, type:
    cachefslog /home/sam

    The system displays the following:

    not logged: /home/sam
  2. To change the logfile of /home/sam to /var/tmp/samlog, type:
    cachefslog -f /var/tmp/samlog /home/sam

    The system displays the following:

    /var/tmp/samlog: /home/sam
  3. To halt logging for the /home/sam directory, type:
    cachefslog -h /home/sam

    The system displays the following:

    not logged: /home/sam

    Note: You must have root user authority to use the -f and -h flags.

Files

/usr/sbin/cachefslog Contains the cachefslog command.

Related Information

The cachefsstat command, cachefswssize command, and cfsadmin command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]