Command Reference Guide

Appendix BConguration Files
pads Node1 with 123 blank characters so that the value in the node conguration record has the maximum
length allowed for this parameter.
If you enter hexadecimal digits A, B, C, D, E, and F on a Motif screen, SNAplus2 changes them to a, b, c, d,
e, and f in the conguration le.
If you do not enter a value on a Motif screen for a parameter that defaults to a null string, SNAplus2 adds a
null string for that parameters value in the conguration le.
SNAplus2 substitutes some command names. For example, if you dene an adjacent LEN node with a Motif
screen, SNAplus2 substitutes a [define_directory_entry] record in the conguration le. For more
information about the relationship between dening an adjacent LEN node and dening a directory entry, see
Section 2.16,
dene_directory_entry.
B.4 File Input to the snapadmin Program
The command-line administration program
snapadmin, can take its input from a text le instead of directly from
the command line. The le format used for a
snapadmin
input le is the same as the SNAplus2 conguration le
format; the information in this section applies to
snapadmin
as well as to conguration les used when starting the
SNAplus2 software.
The only differences between the format of conguration les and
snapadmin
input les are:
A conguration le used at startup can include only records corresponding to define_* and set_* commands;
the
snapadmin input le can include records corresponding to all the different types of administration commands
(define_*, set_*, start_*, stop_*, query_*, and delete_*). The records for the additional
commands are included in the
snapadmin
le using the same format as for [define_*] and [set_*] records.
For information about the usage of these commands, see Chapter 1, Introduction to SNAplus2 Administration
Commands.
The conguration le contains the complete conguration of a SNAplus2 node or of SNAplus2 domain re-
sources; the
snapadmin input le can contain either complete information or partial information (to modify or
query an existing conguration).
The [define_node_config_file] and [define_domain_config_file] header records are not
required in the
snapadmin input le.
B.4.1 Sample snapadmin Input Files
SNAplus2 provides a series of sample les that can be used as input to the
snapadmin program. These les contain
the administration commands necessary to set up a series of typical SNAplus2 congurations.
Because the input le format is the same as the conguration le format, you can use these les as examples of
how to specify various conguration le records. However, these les are intended for use as input les to the
snapadmin program, rather than as initial conguration les. In particular, some of them contain both node records
and domain records, which is valid in an input le but not in a conguration le. To use one of the les, take the
following steps:
1. Check the contents of the le, and modify the records as necessary to suit your conguration requirements. For
example, if you are using one of the les that dene host connectivity, you will need to modify the adjacent CP
name and LU names to match the host conguration.
2. Stop the SNAplus2 software if it is running. For information about how to stop the SNAplus2 software, refer
to the HP-UX SNAplus2 Administration Guide.
3. In the directory /etc/opt/sna, check that the node conguration le sna_node.cfg is not present, and
that the domain conguration le sna_domn.cfg contains no conguration records other than the header
record. An empty version of the domain conguration le is delivered with SNAplus2. If you have created
your own conguration les or added records to the delivered empty le, save a copy of your modications,
631