gkn@M5.Sdsc.EDU (Gerard K. Newman) (01/17/88)
Someone in a DEC Perf Mgmt classtold me about an undocumented (and
unsupported) VMS command. Type SET WATCH/CLASS=ALL FILE. Disable
with SET WATCH/CLASS=NOALL FILE. With WATCH enabled, VMS will show
your file accesses, reads, writes, XQP info and some other details.
Enjoy.
This has been in VMS for some time (since V4.2 or thereabouts, as I recall).
a) You must have mucho privilege for it to work - probably CMKRNL.
CMEXEC will suffice. SETWATCH.EXE simply sets a few bits in the high byte
of PIO$GW_DFPROT in your P1 space. I don't install SETWATCH.EXE with CMEXEC
around here since the only people who would have any use for it already have
enough privilege.
The valid keywords for the /Class qualifier are:
[No]All All operations
[No]Attributes File attribute operations
[No]Control_Function Control functions
[No]Directory_Operations Directory operations
[No]Dump Dump the FIB
[No]Attached Unused
[No]Major Major operations (access, deaccess, lookup)
[No]Quota_Operations Quota operations
None None of the above
All is very verbose, Major is usually sufficient. This command mimics
the SET WATCH FILES command from the Tops-10 operating system. The one
thing it's missing is telling you the directory an accessed file is in.
The reason for this is that by the time the XQP (which is what's reporting
all of this info, by the way) gets around to telling you about something
it's really operating by file ID. Oh well.
gkn
----------------------------------------
Internet: GKN@SDS.SDSC.EDU
Bitnet: GKN@SDSC
Span: SDSC::GKN (27.1)
USPS: Gerard K. Newman
San Diego Supercomputer Center
P.O. Box 85608
San Diego, CA 92138-5608
AT&T: 619.534.5076