asadmin [asadmin-options] stop-local-instance [--help]
[--nodedir node-dir] [--node node]
[--force={true|false}] [--kill={false|true}]
[instance-name]
|
stop-local-instance DRAFT |
| Previous | Next | Contents |
stops a \{product---name} instance on the machine where the subcommand is run
Synopsis
asadmin [asadmin-options] stop-local-instance [--help]
[--nodedir node-dir] [--node node]
[--force={true|false}] [--kill={false|true}]
[instance-name]
Description
The stop-local-instance subcommand stops a \{product---name} instance
on the machine where the subcommand is run. This subcommand does not
require secure shell (SSH) to be configured. You must run this command
from the machine where the instance resides.
The subcommand can stop any \{product---name} instance, regardless of
how the instance was created. For example, this subcommand can stop an
instance that was created by using the
create-instance(1)
subcommand.
The stop-local-instance subcommand does not contact the DAS to
determine the node on which the instance resides. To determine the node
on which the instance resides, the subcommand searches the directory
that contains the node directories. If multiple node directories exist,
the node must be specified as an option of the subcommand.
This subcommand is supported in local mode.
Options
Options for the asadmin utility. For information about these
options, see the asadmin(1M) help page.
--help-?Displays the help text for the subcommand.
--nodedirSpecifies the directory that contains the instance’s node directory. The instance’s files are stored in the instance’s node directory. The default is as-install`/nodes`.
--nodeSpecifies the node on which the instance resides. This option may be
omitted only if the directory that the --nodedir option specifies
contains only one node directory. Otherwise, this option is required.
--forceSpecifies whether the instance is forcibly stopped immediately.
Possible values are as follows:
trueThe instance is forcibly stopped immediately (default).
falseThe subcommand waits until all threads that are associated with the instance are exited before stopping the instance.
--killSpecifies whether the instance is killed by using functionality of the
operating system to terminate the instance process.
Possible values are as follows:
falseThe instance is not killed. The subcommand uses functionality of the Java platform to terminate the instance process (default).
trueThe instance is killed. The subcommand uses functionality of the operating system to terminate the instance process.
Operands
The name of the instance to stop.
Examples
Example 1 Stopping an Instance Locally
This example stops the instance yml-i-sj01 on the machine where the
subcommand is run.
asadmin> stop-local-instance --node sj01 yml-i-sj01
Waiting for the instance to stop ...
Command stop-local-instance executed successfully.
Exit Status
command executed successfully
error in executing the command
See Also
| Previous | Next | Contents |
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
DRAFT