WebLogic Server Command Reference
Runs a sequence of weblogic.Admin
commands. All output from commands that BATCHUPDATE
runs is printed to standard out.
Using this command provides better performance than issuing a series of individual weblogic.Admin
commands. For more information, refer to the previous section, Running Commands in Batch Mode.
java [ SSL Arguments ] weblogic.Admin
[ {-urlURL
} |
[
{-adminurlprotocol
://
]Admin-Server-listen-address:listen-port
}
[ User Credentials Arguments ]
]BATCHUPDATE -batchFile
fileLocation
[-continueOnError]
[-batchCmdVerbose]
{-url [
|
If the batch file contains commands that access Administration MBeans, use If the batch file contains commands that access Local Configuration or Runtime MBeans, use one of the following:
If you specify a secure listen port, you must also specify a secure protocol. If you do not specify a value, the command assumes For more information, refer to the -url and |
The name of a text file that contains a list of The file must contain one or more commands, formatted as follows: Place each command on a separate line. Within the batch file, the |
|
If one of the commands fails or emits errors, By default, |
|
Causes |
This example uses the BATCHUPDATE
command to return the listen ports for a collection of server instances in a domain. A file named commands.txt
contains the following lines:
get -mbean MedRec:Name=MedRecServer,Type=Server -property ListenPort
get -mbean MedRec:Name=MedRecManagedServer,Type=Server -property ListenPort
The following command invokes the commands in commands.txt
:
java weblogic.Admin -url AdminHost:7001 -username weblogic -password weblogic BATCHUPDATE -batchFile c:\commands.txt -continueOnError
-batchCmdVerbose
If the command succeeds it outputs the following to standard out:
Executing command: get -mbean MedRec:Name=MedRecServer,Type=Server -property ListenPort
{MBeanName="MedRec:Name=MedRecServer,Type=Server"{ListenPort=7001}}
Executing command: get -mbean MedRec:Name=MedRecManagedServer,Type=Server -property ListenPort
{MBeanName="MedRec:Name=MedRecManagedServer,Type=Server"{ListenPort=7021}}
For information about the environment in which this example runs, refer to Example Environment.
Table 1-8 is an overview of the commands for working with clusters. Subsequent sections describe command syntax and arguments, and provide an example for each command.
Returns the number and state of servers in a cluster. See CLUSTERSTATE. |
|
Migrates a JMS service or a JTA service from one server instance to another within a cluster. See MIGRATE. |
|
Starts all servers in a cluster See STARTCLUSTER. |
|
Forces all servers in a cluster to shut down. See STOPCLUSTER. |
|
Parses the domain's configuration file and reports any discrepancies in all cluster-related elements. |