Home > Veritas Cluster Server Manual Pages
HACF (1M) |
|
Maintenance Commands |
Table of contents
hacf - manage VCS configuration files
hacf -cftocmd config_dir [-dest dest_dir] [-display]
hacf -cmdtocf config_dir [-dest dest_dir]
hacf -verify config_dir [-display]
hacf -help
VRTSvcs
The
hacf
utility acts as a translator between the configuration language and the VCS engine.
The
hacf
command translates the contents of the
main.cf
file into commands for the VCS server. You can use
hacf
to verify the syntax of configuration files, which include
main.cf, the main configuration file, and
types.cf, the type definitions file.
-
-cftocmd config_dir [-dest dest_dir] [-display]
-
The
-cftocmd
option is used to generate a
main.cmd
file from the
main.cf
file. The
config_dir
is the directory in which the
main.cf
file resides. The
main.cmd
file is generated in the
dest_dir. If the -dest option is not specified, then the
main.cmd
file is generated in the same directory as that of
main.cf. If the
-display
option is specified, then the output is also displayed on the stdout.
-
-cmdtocf config_dir [-dest dest_dir]
-
The
-cmdtocf
option is used to generate a
main.cf
file from the
main.cmd
file. The
config_dir
is the directory in which the
main.cmd
file resides. The
main.cf
file is generated in the
dest_dir. If the
-dest
option is not specified, then the
main.cf
file is generated in the same directory as that of
main.cmd.
-
-verify config_dir [-display]
-
The
-verify
option checks for syntax errors in the configuration file
main.cf
(which usually includes
types.cf) before starting the VCS server. It returns after the first syntax error is detected. VCS does not execute if there are errors in the configuration. The
hacf
command looks for the
main.cf
file in the
config_dir. The
config_dir
is the directory in which the
main.cf
file resides. No error message and a return value of zero means the syntax is legal. If the
-display
option is specified, then the output is also displayed on the stdout.
-
-help
-
Displays the command usage.
/etc/VRTSvcs/conf/config/main.cf
Main VCS configuration file.
haconf(1M)
Copyright (c) 2008 Symantec.
All rights reserved.
Last updated: 07/03/2008
Copyright ©2009 Symantec Corporation
All rights reserved.