HAFS(8)HAFS(8)NAMEhafs - Host Agent File System information module
SYNOPSIShafs-h
hafs [ -f schema file ] [ -L | -l log file ] [ -v ]
hafs-n [ -f schema file ] [ -L | -l log file ] [ -v ]
hafs-g [ -f schema file ] [ -L | -l log file ] [ -v ]
DESCRIPTION
The hafs program is used to collect a pre-defined set of file system
information from the local host. The collected information is used to
update a local RAP database or dumped to the standard output if -n
option is selected.
The set of information collected by hafs is defined in an ASCII schema
file specified by the -f option and has the default value
schema/hafs.sch. Each line in the schema file represents a single
attribute and my have one or more values associated with it.
Attributes other than resource type and version number are used to
determine the type of information to be reported by hafs. A given
pieces of information will not be collected or reported if the associā
ated attribute is commented out with # or remove from the schema file.
Note that attributes resource type and version number are part of every
schema file and should not be removed or commented out. A schema file
will be rejected if one or more essential attributes are missing or
the value associated with the version number does not match that of
hafs. hafs can be used to generate a fresh schema file using the -g
option.
The file system information reported by hafs is defined in the file
hafs.sch as follows:
file system
file system type name.
free space (MB)
free space in MB in this file system.
mount point
mount point for this file system.
total space (MB)
total space in MB in this file system.
used space (MB)
used space in MB in this file system.
OPTIONS-f schema file
Specifies the full path for the schema file associated with
hafs. When -f is not specified, the default schema file is
automatically selected. Default schema file =
ha/schema/hafs.sch.
-L Tells hafs that any logging information should be written to the
default application logfile - this file is named hafs.log , and
will be located in the applogs subdirectory of your NetWorker
installation directory. Only one of -L or -l may be specified -
not both. If neither -L or -l is specified in the arguments to
hafs then any logging information will be printed on stdout and
stderr.
-l log file
Allows you to specify the name of the file that hafs will write
its log to. Only one of -L or -l may be specified - not both. If
neither -L or -l is specified in the arguments to hafs then any
logging information will be printed on stdout and stderr.
-n Dump the collected information to the standard output; do not
update the local RAP database.
-g Generate a new schema file for hafs after renaming the old
schema, if exists, to <name>.<date>.[1..]
-h Display a brief help message; ignore all other options.
-v Run in verbose mode.
EXAMPLES
Collect file system information and dump the result to the standard
output, do not update the local RAP data base:
hafs-n
Collect file system information and update the local RAP data base:
hafsDIAGNOSTICS
Some information may not be available on all systems, configuration
problems, hardware/software limitations. Attributes associated with
missing information are assigned the value not available.
SEE ALSOhascsi(8)hasys(8)NetWorker 7.3.2 Aug 23, 06 HAFS(8)