Technical data

B WebLogic Server Command-Line Interface Reference
B-2 Administration Guide
n You want to create scripts for administration and management efficiency.
n You cannot access the Administration Console through a browser.
n You prefer using the command-line interface over a graphical user interface.
Before You Begin
The examples in this document are based on the following assumptions:
n WebLogic Server is installed in the c:/weblogic directory.
n The JDK is located in the c:/java directory.
n You have started WebLogic Server from the directory in which it was installed.
Before you can run WebLogic Server commands, you must do the following:
1. Install and configure the WebLogic Server software, as described in the WebLogic
Server Installation Guide. See
http://e-docs.bea.com/wls/docs61/install/index.html.
2. Set
CLASSPATH correctly. See “Setting the Classpath Option” on page 2-10.
3. Enable the command-line interface by performing one of the following steps:
| Start the server from the directory in which it was installed.
| If you are not starting the server from its installation directory, enter the
following command, replacing
c:/weblogic with the name of the directory
in which the WebLogic Server software is installed:
-Dweblogic.system.home=c:/weblogic
An administrator must have the appropriate access control permissions to run
commands used to manage run-time MBeans.
See the following sections:
n “WebLogic Server Administration Command Reference” on page -6
n “WebLogic Server Connection Pools Administration Command Reference” on
page -27
“Mbean Management Command Reference” on page -37