Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (3078 KB)
Intro(1CL)NAME | DESCRIPTION | LIST OF COMMANDS | Mapping Original Sun Cluster Commands to Object-Oriented Commands | EXIT STATUS | SEE ALSO | ATTRIBUTES NAME
DESCRIPTIONThis section describes the object-oriented command set for Sun Cluster. Although the original Sun Cluster command set is still available, use the object-oriented commands for more intuitive configuration of your cluster. In addition, future new features might not be available in the original command set. The object-oriented command set uses a common prefix cl. The original command set used the prefix sc. Both the sc and cl commands are located in /usr/cluster/bin. Many commands in this command set have both a long form and a short form. For example, clresource(1CL) and clrs(1CL) are identical. Each object-oriented command is designed to manage a single type of cluster object. The command name indicates the type of object that it manages. For example, the clresource command manages Sun Cluster data service resources. Within a command, subcommands define operations that are allowed on the specific cluster object. The general form of commands in the object-oriented command set is as follows: cmdname [subcommand] [option…] [operand …] Options that you use with the object-oriented commands also have a long form and a short form. You specify the short form of an option with a single dash (-) followed by a single character. You specify the long form of an option with two dashes (--) followed by an option word. For example, -p is the short form of the property option. --property is the long form. Some options accept an option argument while others do not. If an option accepts an option argument, the option argument is required. The -? option requires no arguments. However, the --property option requires an option argument that identifies the property being operated on. You can group the short form of options without arguments behind a single dash (-). For example, -emM. You must separate groups of option-arguments following an option either by commas, or by a tab or a space character. When using a tab or space, surround the option-arguments with quotation marks (-o xxx,z,yy or -o “xxx z yy”). To specify option arguments with long option names, use either the --input=configurationfile format or the --input configurationfile format. All commands in this command set accept the -? or --help option. If you provide these options without a subcommand, summary help for the command is displayed. If you provide a subcommand, help for that subcommand only is displayed. Certain commands work in conjunction with a configuration file. For information on the required format of this file, see the clconfiguration(5CL) man page. Many subcommands in this command set accept + as an operand to indicate all applicable objects. LIST OF COMMANDS
This section describes, in alphabetical order, the object-oriented commands that are available with the Sun Cluster product. Mapping Original Sun Cluster Commands to Object-Oriented Commands
Because the newer command set is object oriented, a clear one-to-one mapping from the original command set does not exist. The following list provides some common Sun Cluster commands from the original set and their object-oriented set equivalents. EXIT STATUS
If an object-oriented Sun Cluster command is successful for all specified operands, the command returns zero (CL_NOERR). If an error occurs for an operand, the command processes the next operand in the operand list. The returned exit code always reflects the error that occurred first. These exit codes are shared across this set of commands. SEE ALSOATTRIBUTESSee attributes(5) for descriptions of the following attributes:
NAME | DESCRIPTION | LIST OF COMMANDS | Mapping Original Sun Cluster Commands to Object-Oriented Commands | EXIT STATUS | SEE ALSO | ATTRIBUTES |
||||||