SET WATCH

From VSI OpenVMS Wiki
Revision as of 12:02, 23 May 2023 by Jane.doe (talk | contribs) (Created page with "'''SET WATCH FILE''' is a DCL command that monitors selected file activity. It requires the CMEXEC privilege. =Syntax= SET WATCH FILE /CLASS ==Qualifier...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

SET WATCH FILE is a DCL command that monitors selected file activity. It requires the CMEXEC privilege.

Syntax

SET WATCH FILE /CLASS

Qualifiers

  • /CLASS=keyword specifies the class of activity to be monitored.

Keywords

Keyword Description
ALL Enable all file activity monitoring.
[NO]ATTACHED Undetermined
[NO]ATTRIBUTE Reading and writing of file attributes; such as done with the directory command.
[NO]CONTROL_FUNCTION Use of file system control functions.
[NO]DIRECTORY_OPERATIONS Modifications to directories by creating, deleting and renaming files.
[NO]DUMP Dump contents of File Information Blocks (FIB).
[NO]MAJOR_FUNCTION Log activities for major functions including file lookup, access and deaccess.
NONE Turn off all file activity monitoring.
[NO]QUOTA_OPERATIONS Activity associated with changes to disk quotas and usage.

Examples

$ set watch file /class=all
$ dir
%XQP, Thread #0, FIB contents:
    00000000 000629E9 00000000 00000000 00000000 00000080 00000000 00000000
    00000000 00000000 00000000 00030000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%XQP, Thread #0, FIB contents:
    00000000 000629E9 00000000 00000000 00000000 00000080 00000000 00000000
    00000000 00000000 00000000 00030000 00000000 00000001 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%XQP, Thread #0, Volume protection: Access requested: 00000001, Status: 00000001, PrvUsd: 00000000
%XQP, Thread #0, File protection (10729,6,0): Access requested: 00000001, Status: 00000001, PrvUsd: 00000000
%XQP, Thread #0, Read attributes: Record attributes tests.DIR;1 (10729,6,0)
%XQP, Thread #0, Read attributes: User file characteristics tests.DIR;1 (10729,6,0)
%XQP, Thread #0, Read attributes: File header tests.DIR;1 (10729,6,0)
%XQP, Thread #0, Access tests.DIR;1 (10729,6,0) Status: 00000001
%XQP, Thread #0, Final status: 02000001
%XQP, Thread #0, FIB contents:
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%XQP, Thread #0, FIB contents:
    00000000 000629E9 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000001 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%XQP, Thread #0, Deaccess (10729,6,0) Reads: 1, Writes: 0, Status: 00000001

Directory USER$DISK:[JDOE.OPENVMS.tests] ... Total of 14 files.