man cfsanity




NAME

  cfsanity - validate chk_sanity_Files against ConfigFiles.long


SYNOPSIS

  cfsanity
          [-machines file] [-config file] [-etc directory]
          [-xm n] [-xc n]
          [-files files]
          [-output file]
          [-verbose] [-debug]


DESCRIPTION

  Checks  file  type,  mode,  uid,  and gid from chk_sanity_Files with
  expected values in ConfigFiles.long using markers from the specified
  machines.list.


OPTIONS

  -machines file
          Specify file for mapping.  Defaults as machines.list.  Note,
         precedence is .node, .type,  .usage.,  .major,  .major.minor,
         .other, .template.  If no match exists the target file should
         not exist.

  -config file
          Specify file to  use  for  comparison  Defaults  as  Config-
         Files.long.   This file is typically generated by upd_Config-
         Files.ksh.

  -etc directory
          Specify location  for  machines.list  and  ConfigFiles.long.
         Defaults to /usr/local/adm/etc.

  -xm n   Specify maximum number of machines.list entries.

  -xc n   Specify maximum number of ConfigFiles.long entries.

  -files file[s]
          Specify  input  to read.  Default is to read input filenames
         from stdin.

  -output file
          Specify output file instead of using stdout.

  -verbose
          Print verbose messages (to stderr).

  -debug  Print debug messages (to stderr).


EXAMPLES

  # ./cfsanity -c ./LF.long -m ./m.linux -f ./LF.out
   ags  :0755  root  95     :   .   .     0  :/etc/rc.d/a_sshd
   ags !:      sum .gen     :   .   .     .  :/etc/nsswitch.cf
   agb  :0755  root  95     :   .   .     0  :/etc/rc.d/a_sshd
   agb !:      sum .gen     :   .   .     .  :/etc/nsswitch.cf
   nel  :0640  root   0     :   .   .    15  :/etc/shadow
   nel  :0640  root  95     :   .   .    44  :/etc/named.conf
   pup  :0644  root  95     :   .   .     0  :/etc/fstab
   pup !:      sum .pup     :   .   .     .  :/bin/X11/sessreg
   pup !:      sum .pup     :   .   .     .  :/bin/X11/xhost
   pup !:      sum .template:   .   .     .  :/etc/X11/xdm/cfg
   pup -: c=nofile .template:0640  root  lman:/etc/log.d/named
   pup -: c=none   .        :0644  root  root:/etc/httpd.conf
   pup ?: c=file   .template: t=. (missing)  :/etc/zARSC.csh
   pup ?: c=file   .template: t=. (missing)  :/etc/zARSC.sh

  Note, above output compressed for man page display.


ACKNOWLEDGEMENTS

  Written at the University of  Alaska  Arctic  Region  Supercomputing
  Center (ARSC).


RELATED INFORMATION

  Commands: chk_sanity.ksh, chk_sanity_Files, upd_ConfigFiles.ksh.