The table below lists the ORCL.gds_proxy method_command extension properties. See The method_command Sequence for more information.
|
The Boot_command is not a required property. If set, this command must be a UNIX command with arguments that can be passed directly to a shell.
The Init_command is not a required property. If set, this command must be a UNIX command with arguments that can be passed directly to a shell.
The Fini_command is not a required property. If set, this command must be a UNIX command with arguments that can be passed directly to a shell.
The Fini_command is a required property and starts the proxy daemon. This command must be a UNIX command with arguments that can be passed directly to a shell to start the application.
The Postnet_stop_command is not a required property. If set, this command must be a UNIX command with arguments that can be passed directly to a shell.
The Validate_command is not a required property. If set, this command must be a UNIX command with arguments that can be passed directly to a shell.
When a resource is created, GDSv2 passes all resource properties as arguments to the Validate_command. When a resource property is updated, GDSv2 passes just those properties that are being updated.
The /opt/ORCLscgds/lib/gds_functions file provides helper function gds_opts() to process those arguments as upper case KSH global variables. Property values are as defined.
See the /opt/ORCLscgds/demo/demo_validate file for an example. The following is a snippet of code from demo_validate:
#!/usr/bin/ksh . /opt/ORCLscgds/lib/gds_functions get_opts "$@"
The KSH global variable HASP returns the following status codes:
Indicates that the resource does not depend on a SUNW.HAStoragePlus resource.
Indicates that at least one of the SUNW.HAStoragePlus resources on which the resource depends is located in a different resource group.
Indicates that a SUNW.HAStoragePlus resource on which the resource depends is not online on any potential primary node.
Indicates that at least one SUNW.HAStoragePlus resource on which the resource depends is online, but on another node.
Indicates that all SUNW.HAStoragePlus resources on which the resource depends are online on the node.
The preceding status codes have precedence over each other in the order in which they appear. For example, if a SUNW.HAStoragePlus resource is not online and another SUNW.HAStoragePlus is online on a different node, the status code is set to SCDS_HASP_NOT_ONLINE rather than SCDS_HASP_ONLINE_NOT_LOCAL.
Furthermore, if the SUNW.HAStoragePlus resource is managing a global file system, then the per-node HASP resource will report SCDS_HASP_ONLINE_LOCAL on the node where the SUNW.HAStoragePlus resource is online and SCDS_HASP_ONLINE_NOT_LOCAL on the other nodes.