[Info-vax] Enable Dir/date=accessed

Jon Pinkley jon.pinkley at gmail.com
Fri Jun 28 23:38:21 EDT 2019


On Friday, June 28, 2019 at 11:27:19 AM UTC-4, Dr X wrote:
> Hi all
> when I try to know the date of the last access of a file
> without using the audit
> $ dir / date = accessed only shows <none specified>
> 
> 
> do you know where I can enable in order to see the access date similar to 
> dir/date = mod?
> 
> cheers

Oh, and if you have a cluster mounted disk, you need to use sysman when changing the retention settings.  This is a persistent change, when the volume is mounted the next time, it will use the last setting from any node in the cluster, but it won't take effect immediately unless the set volume/ret is executed on each node, or you dismount/remount.

Also, it won't won't makes changes to a disk mounted /nowrite, but that should be obvious.

Example:

$ mc sysman set env/clu
%SYSMAN-I-ENV, current command environment:
        Clusterwide on local cluster
        Username JON          will be used on nonlocal nodes
 
SYSMAN> do set vol/ret=(0,0:0:0.01) disk$jscratch:
%SYSMAN-I-OUTPUT, command execution on node OMEGA
%SYSMAN-I-OUTPUT, command execution on node SIGMA
SYSMAN>  Exit 
$ sho sym dw
  DW == "DIRECTORY/SIZE=ALL/DATE/WIDTH=(FILE:38,SIZE:7)"
$ dw /date=(cre,mod,exp) DISK$JSCRATCH:[JON]T.T;12

Directory DISK$JSCRATCH:[JON]

T.T;12                                        6/8        15-JAN-1998 20:34:14.23  15-JAN-1998 20:35:00.27  30-OCT-1998 13:57:03.77

Total of 1 file, 6/8 blocks.
$ backup DISK$JSCRATCH:[JON]T.T;12 DISK$JSCRATCH:[JON]T.T;13/log
%BACKUP-S-CREATED, created DISK$JSCRATCH:[JON]T.T;13
$ dw /date=(cre,mod,exp) DISK$JSCRATCH:[JON]T.T/ver=2

Directory DISK$JSCRATCH:[JON]

T.T;13                                        6/8        15-JAN-1998 20:34:14.23  15-JAN-1998 20:35:00.27  30-OCT-1998 13:57:03.77
T.T;12                                        6/8        15-JAN-1998 20:34:14.23  15-JAN-1998 20:35:00.27  30-OCT-1998 13:57:03.77

Total of 2 files, 12/16 blocks.
$ sea DISK$JSCRATCH:[JON]T.T; ""/noout/log
%SEARCH-S-MATCHED, DISK$JSCRATCH:[JON]T.T;13 - 36 records, 36 matches
$ dw /date=(cre,mod,exp) DISK$JSCRATCH:[JON]T.T/ver=2

Directory DISK$JSCRATCH:[JON]

T.T;13                                        6/8        15-JAN-1998 20:34:14.23  15-JAN-1998 20:35:00.27  28-JUN-2019 23:36:27.71
T.T;12                                        6/8        15-JAN-1998 20:34:14.23  15-JAN-1998 20:35:00.27  30-OCT-1998 13:57:03.77

Total of 2 files, 12/16 blocks.
$



More information about the Info-vax mailing list