HP XC System Software Administration Guide Version 3.2

Table 4-4 Location of Configuration Script Directories (continued)
Invoked by This cluster_config
Unconfiguration Argument
Invoked by This cluster_config
Configuration ArgumentScript Directory
nunconfigurenconfigure/opt/hptc/etc/nconfig.d/
cunconfigurecconfigure/opt/hptc/etc/cconfig.d/
To see the sconfig, gconfig, nconfig, and cconfig scripts that are delivered as part of the
default services configuration mode, llook in the /opt/hptc/etc/*config.d/ directories.
4.6.5 Configuration Scripts
This section describes the conventions common to all configuration scripts and describes the
following specific configuration scripts:
“The sconfigure Scripts” (page 67)
“The gconfigure Scripts” (page 68)
“The nconfigure Scripts” (page 71)
“The cconfigure Scripts” (page 71)
Common Conventions
When a node list is passed as an argument to the configuration scripts, the node list is passed in
reverse numeric order, which means that the head node is first if it is present in the list.
The naming convention for script file names follows this syntax; all script names begin with a
capital letter C:
C[0-9][0-9]service_name
For example, the gconfig script name for the Console Management Facility (CMF) is C50cmf.
The capital letter C is required in all script names, and cmf is the service name. The number 50
represents the order in which the script runs during cluster_config processing. This number
also enables you to control dependency issues. For example, if a second service depends on CMF
being configured, the script name for the second service uses a number greater than 50 to ensure
it is configured after CMF.
Depending upon the configuration requirements of a service, it is possible to have a C50cmf
script in the gconfig.d directory and a C50cmf script in the nconfig.d directory or in any
other combination of configuration directories.
It is also permissible for the script names for one or more services to use the same numeral. For
this example, if a script named C50dbserver also exists in the gconfig.d directory, the scripts
are executed in alphabetical order, with C50cmf executed first.
If you are adding a service, look in the script-specific directories, in /opt/hptc/etc/*config.d,
and in the roles_services_ini file to ensure that a script name and service is not already in
use.
4.6.5.1 The sconfigure Scripts
The sconfigure scripts in the /opt/hptc/etc/sconfig.d directory modify the golden
image and are intended to configure systemwide functions, policies, and behaviors. They are
intended to configure system parameters that are not related to specific services and servers.
Security policies often fall into this category.
An sconfigure script often modifies files that become part of the golden image for the entire
system or that modify the database in some way.
An sconfigure script is executed inside the cluster_config utility as follows:
script_path sconfigure golden_client
script_path sunconfigure golden_client
4.6 Customizing Services and Roles 67