Payara Server Management Asadmin Commands
This is a non-exhaustive list of asadmin commands which are exclusive to Payara Server for managing domains.
start-domain
- Usage
-
asadmin> start-domain <options> <domain>
- Aim
-
This command start the specified domain
Options | Type | Description | Default | Mandatory |
---|---|---|---|---|
verbose |
boolean |
starts the domain in verbose mode |
false |
No |
upgrade |
boolean |
false |
No |
|
watchdog |
boolean |
false |
No |
|
dry-run |
boolean |
false |
No |
|
drop-interrupted-commands |
boolean |
false |
No |
|
prebootcommandfile |
string |
path to file containing commands to run before booting the server. Only a limited amount of commands will work at this point. Since Payara Server 4.1.2.172 |
No |
|
postbootcommandfile |
String |
path to file containg commands to run after the server is booted. Since Payara Server 4.1.2.172 |
No |
start-domains
Since Payara Server 4.1.2.173
- Usage
-
asadmin> start-domains <list of domains>
- Aim
-
This command can be used to start the specified list of domains in the operand. This list must be specified as a comma separated string of values.
The domains will be started assuming default values for all options you would
specify when running the start-domain command against one domain (default domain directory,
debug mode off, verbose mode off, etc.)
|
stop-domains
Since Payara Server 4.1.2.173
- Usage
-
asadmin> stop-domains <list of domains>
- Aim
-
This command can be used to stop the specified list of domains in the operand. This list must be specified as a comma separated string of values.
The domains will be stopped assuming default values for all options you would
specify when running the stop-domain command against one domain (forced stopping
and process killing)
|
restart-domains
Since Payara Server 4.1.2.173
- Usage
-
asadmin> restart-domains <list of domains>
- Aim
-
This command can be used to restart the specified list of domains in the operand. This list must be specified as a comma separated string of values.
stop-all-domains
- Usage
-
asadmin> stop-all-domains
- Aim
-
This command can be used to stop all running domains on the server installation.
start-instance
- Usage
-
asadmin> start-instance instancename
- Aim
-
This command can be used to start a specified instance of Payara
Command Options
These are not the same as the options for the start-local-instance command.
|
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
none, normal or full |
Specifies whether the instance is to be synced with the DAS. In normal mode only config files and top-level application file are synched. In full all files are synced. |
normal |
No |
|
Boolean |
Specifies whether the instance is started in debug mode |
false |
No |
|
Boolean |
Specifies whether information on the result is output |
false |
No |
|
Integer |
Specifies how long to take for the instance to start in seconds. If starting the instance takes longer than this amount then this command will fail. Available since 4.1.2.181 |
120 |
No |
Using full sync will cause the configuration to be deleted if the DAS cannot be reached. |