| United States-English |
|
|
|
![]() |
HP 9000 Networking: HP-UX SNAplus2 Administration Command Reference > Chapter 1 Introduction to SNAplus2 Administration CommandsUsing snapadmin |
|
Before you can use the snapadmin program, SNAplus2 must be started. If SNAplus2 has not been started, enter the following command on the HP-UX command line: sna start You can use snapadmin to configure and manage SNAplus2. Use snapadmin as an alternative to the Motif administration program when any of the following is true:
When you issue a command or use the Motif administration program, SNAplus2 changes the configuration file. For more information about configuration files, see Appendix B “Configuration Files” For more information about using the Motif administration program, refer to HP-UX SNAplus2 Administration Guide. Use the following syntax for snapadmin: snaadmin [-n node] [-d] [-a] [-h] <-i infile> | <command, parameter1=value1, parameter2=value2, ...>For information about the options you can use on the command line, see “Command Line Options”. For information about parameter syntax, see “Parameter Syntax Used for Administration Commands”. Administrative commands are listed alphabetically in Chapter 2 through Chapter 4, and include descriptions containing the following:
You can use one or more of the following options when you use the snapadmin program:
The command line option -c enables the user to change a specific parameter on an existing command without reentering the entire command. Specify the command name and parameter to be changed on the command line. This option is supported only for the following commands (an error message is returned for all other commands):
Help is available using the -h and -d options on snapadmin as follows: Table 1-1 Title not available (Using Command Line Help)
Use the syntax described in the following sections to specify parameters in administration commands. The information included in these sections applies to both configuration files and snapadmin commands, except where indicated. Each parameter in an administration command is one of the following types:
The command descriptions list the type for each parameter. Some administration command parameters, such as the name of the resource you are defining or starting, must always be explicitly specified. For other parameters, SNAplus2 provides default values. For a standard configuration, you do not need to specify every parameter in a command. The individual parameter descriptions include information about default values where applicable. If no default value is shown for a parameter, you must specify it explicitly. The default parameter values used for administration command parameters can be different from the default values used for the Motif Administration Program. Embedded space characters are not valid within any parameter value. For example, the character string LU001 and the hex array <01020304> are valid, but LU 001 and <01 02 03 04> are not. All blank space before or after descriptors, parameter names, or parameter values (that is, any combination of spaces and tabs) is ignored. Some administration commands include data whose format can vary between instances of the command. For example, define_emulator_user, which defines a 3270 or 5250 emulation program user, includes a variable number of sessions for the user. To allow for this, the variable data is specified in optional subrecords. This means that a command consists of a series of parameters common to all instances of that command type, followed by subrecords containing the variable data. All commands have the following order:
All commands that have one or more subrecords have the following order:
In a configuration file, each of these names and parameters is on a separate line; in a command issued to snapadmin, they are separated by commas. All the parameters associated with the command_name (and not with a subrecord) must be listed after the command_name and before the first subrecord_name; all the parameters associated with a particular subrecord_name must be listed after that subrecord_name and before the next subrecord_name, if any, or the next command_name. However, the order of individual parameters within a subrecord is not important. You can obtain information about SNAplus2 resources by issuing a query_* command for the appropriate resource type. For example, you can obtain information about the configuration and status of an LS by issuing query_ls. A query_* command can return information about a specific resource (for example, the configuration of a particular LS) or about multiple resources of the same type (for example, information about all configured link stations), depending on the options used. In addition, some query_* commands have the option of returning either summary or detailed information about the specified resources. You can think of the information returned by query_* commands as being stored in the form of a list, ordered according to the name of the resource. For example, the information returned by query_ls is in order of LS name. The normal order of the list is as follows:
Individual command descriptions note when the list ordering differs from the preceding order (for example, when the list is ordered by a numeric value). You can obtain information about multiple resources by requesting the complete list or a specified part of it. The following parameters on the query_* command determine which entries from the list are returned:
If the list_options parameter is set to LIST_INCLUSIVE or LIST_FROM_NEXT, another parameter on the command specifies the name of an entry in the list that gives the starting position for the required entries. The description of list_options in each command description explains which parameter is used to identify the starting position. If you specify one of these options but do not specify the parameter giving the starting position, the list_options parameter is ignored and the returned information starts from the first entry in the list. To request all entries in the list when using the snapadmin program, you can use the command-line option -a instead of specifying num_entries as 0 and list_options as FIRST_IN_LIST (also, the default is to return all entries when num_entries and the resource name are not specified). This option returns all entries unless you explicitly set num_entries or list_options to return specific entries. The number of entries returned is the smaller of the following values:
Some query_* commands provide the option of returning summary or detailed information about the specified resources. For example, query_local_lu can return only the LU name, LU alias and description (summary information), or it can also return additional information such as the LU address and session limit (detailed information). The description of each query_* command indicates whether the command includes the option of returning summary or detailed information. For the commands that provide the summary or detailed option, use the list_options parameter to indicate whether summary or detailed information is required, as well as the starting position within the list. To specify these options, combine two values with a + character (one value to specify whether summary or detailed information is required, and one value to specify the starting position in the list), and set the list_options parameter to the combination of these two values. For example, to specify summary information for all DLCs defined at the node, supply the value SUMMARY+FIRST_IN_LIST for the list_options parameter on the query_dlc command. To request detailed information, you can use the -d option on the snapadmin command line instead of specifying a value of DETAIL for the list_options parameter. The -d option returns detailed information unless you explicitly specify a value of SUMMARY for the list_options parameter which returns summary information only. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||