Operating System - OpenVMS
1830241 Members
1674 Online
109999 Solutions
New Discussion

Re: Can Set Watch command display disk and directory

 
Cass Witkowski
Trusted Contributor

Can Set Watch command display disk and directory

Does the DCL SET WATCH command have the ability to display the files device and directory? The standard display shows the FID but that is only relevant if you know the disk the file is located on.

I know this is an unsupported command but if it could be enhanced this would be of help.

I'm trying to determine what files are accessed when a user runs Cache with the CSESSION command. Knowing what all files are accessed I can install those files to help speed up the execution startup.

Thanks

Cass
4 REPLIES 4
Hein van den Heuvel
Honored Contributor

Re: Can Set Watch command display disk and directory

You don't get a device, but you did get the FID for the directories. Those can be backtranslated with F$FID_TO_NAME under recent OpenVMS versions and for old versions a simple brute force:
$ DUMP/HEAD/BLOC=COUN=0/ID=xxx speculated_device:

Are you concerned with a dynamic coming and going of images in a setup phase, or just all the stuff opened (image, shareable, files) to get real work done?

If that is your core problem then I would suggest just using ANAL/SYS ... SHOW PROC /CHAN for a sample user.

You may also want to consider to (temporarely) enable IMAGE ACCOUNTING and/or SUCCES AUDITING.
Those provide too much data to keep on in general, but should be fine around a sample user start.

Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting



Wim Van den Wyngaert
Honored Contributor

Re: Can Set Watch command display disk and directory

But keep in mind that audit works cluster wide. ALL accesses will be logged and could cause application problems because of the delay.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Can Set Watch command display disk and directory

If you know what files you need to trace, you can put an audit generating acl on the files. Thus you will get readable info on less files.

Wim
Wim
Jim_McKinney
Honored Contributor

Re: Can Set Watch command display disk and directory

Presuming we're only talking about executables and not the data files that are opened, I think that you will find that they all are already INSTALLed. CSESSION is linked with a collection of VMS' shareable images that you can see using ANALYZE/IMAGE (shareable image list) and also uses LIB$FIND_IMAGE_SYMBOL to IMGACT a few other Cache specific shareables that are in the configuration [.BIN] area. All of VMS' shareable images are already INSTALLed. So too are those invoked by LIB$FIS (typically CPRIV and CZF). These are INSTALLed automatically during the configuration startup (via CLOAD.COM called by CCONTROL START). (See "$ SHOW DEVI/FILE/SYST disk" on the configuration's home disk.)