内に含まその他のドキュメントサポート リソース | PDF 文書ファイルをダウンロードする (3078 KB)
clreslogicalhostname(1CL)NAME | SYNOPSIS | DESCRIPTION | SUBCOMMANDS | OPTIONS | OPERANDS | EXIT STATUS | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES NAME
SYNOPSIS
/usr/cluster/bin/clreslogicalhostname -V /usr/cluster/bin/clreslogicalhostname [subcommand [options]] -v [lhresource]… /usr/cluster/bin/clreslogicalhostname create -g resourcegroup [-h lhost[,…]] [-N netif@node[,…]] [-p name=value] [-d] lhresource /usr/cluster/bin/clreslogicalhostname create -i {-| clconfiguration} [-a] [-g resourcegroup[,…]] [-p name=value] [-d] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname delete [-g resourcegroup[,…] ] [-F] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname disable [-g resourcegroup[,…]] [-R] [[-z zone] -n node[:zone][,…]] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname enable [-g resourcegroup[,…]] [-R] [[-z zone] -n node[:zone][,…]] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname export [-o {-| configfile}] [+| lhresource…] /usr/cluster/bin/clreslogicalhostname list [-s state[,…]] [-g resourcegroup[,…]] [+| lhresource…] /usr/cluster/bin/clreslogicalhostname list-props [-l listtype] [-p name[,…] ] [+| lhresource…] /usr/cluster/bin/clreslogicalhostname monitor [-g resourcegroup[,…] ] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname reset [-f errorflag] [-g resourcegroup[,…] ] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname set [-i {-| clconfiguration}] [-g resourcegroup[,…] ] [-p name[+|-]=value] {+| lhresource…} /usr/cluster/bin/clreslogicalhostname show [-g resourcegroup[,…] ] [-p name[,…]] [+| lhresource…] /usr/cluster/bin/clreslogicalhostname status [-s state[,…]] [[-z zone] -n node[:zone][,…]] [-g resourcegroup[,…]] [+| lhresource…] /usr/cluster/bin/clreslogicalhostname unmonitor [-g resourcegroup[,…] ] {+| lhresource…} DESCRIPTION
The clreslogicalhostname command manages resources for Sun Cluster logical hostnames. The clrslh command is the short form of the clreslogicalhostname command. The clreslogicalhostname command and the clrslh command are identical. You can use either form of the command. The clreslogicalhostname command includes built-in convenience options for creating logical hostname resources. The clreslogicalhostname command also supports the automatic creation of Solaris IP multipathing (IPMP) groups. You can run the clreslogicalhostname command with the create subccommand or the delete subcommand only from the global zone. Some subcommands of the clreslogicalhostname command modify the resource configuration. You can use these subcommands from the global zone or a non-global zone. If you use a subcommand that modifies resource configuration from a non-global zone, only resources that the non-global zone can master are modified. The following subcommands modify resource configuration: Some subcommands of the clreslogicalhostname command only obtain information about resources. You can use these subcommands from the global zone or a non-global zone. However, even when you use these subcommands from a non-global zone, the scope of the command is not limited to that zone. Information about all resources that are supplied as operands to the command is obtained, regardless of whether the non-global zone can master the resources. The following commands only obtain information about resources: To avoid unpredictable results from this command, run all forms of the command from the global zone. The general form of this command is as follows: clreslogicalhostname [subcommand] [options] [operands] You can omit subcommand only if options specifies the option -?, -o, -V, or -v. Each option of this command has a long form and a short form. Both forms of each option are given with the description of the option in the OPTIONS section of this man page. SUBCOMMANDS
The following subcommands are supported: OPTIONS
The following options are supported: OPERANDS
The following operand is supported: EXIT STATUS
If the command is successful for all specified operands, it 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. This command returns the following exit status codes: These exit values are compatible with the return codes that are described in the scha_calls(3HA) man page. EXAMPLESExample 1 Creating a Logical Hostname ResourceThis command creates a resource that is named logicalhost1 in a resource group that is named rg-failover. The resource is created in the enabled state, with monitoring enabled.
Example 2 Creating a Logical Hostname Resource with a Different Logical HostnameThis command creates a resource named rs-logicalhost1 in a resource group that is named rg-failover. The logical hostname is not the same as the resource name, but the name and IP address of the logical host remain the same.
Example 3 Specifying the IPMP Groups for a Logical Hostname ResourceThis command sets the IPMP groups for the logicalhost1 resource.
Example 4 Deleting a Logical Hostname ResourceThis command deletes a resource that is named logicalhost1.
Example 5 Listing Logical Hostname ResourcesThis command lists all logical hostname resources.
Example 6 Listing Logical Hostname Resources With Resource Groups and Resource TypesThis command lists all logical hostname resources with their resource groups and resource types.
Example 7 Listing Extension Properties of Logical Hostname ResourcesThis command lists the extension properties of all logical hostname resources.
ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOintro(1CL), cluster(1CL), clresource(1CL), clressharedaddress(1CL), clresourcegroup(1CL), clresourcetype(1CL), scha_calls(3HA), clconfiguration(5CL), rbac(5), r_properties(5) NOTES
The superuser user can run all forms of this command. Any user can run this command with the following options: To run this command with subcommands, users other than superuser require RBAC authorizations. See the following table.
NAME | SYNOPSIS | DESCRIPTION | SUBCOMMANDS | OPTIONS | OPERANDS | EXIT STATUS | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES |
||||||||||||||||||||||||||||||||||||||||||