When you work with WebLogic through the provisioning system, you can use two command lines: the Sun N1 Service Provisioning System command line and the WebLogic command line.
By default, the provisioning system's command-line interface is located in the following directory: /opt/SUNWn1sps/N1_Service_Provisioning_system_5.2/cli/bin/cr_cli.
BEA WebLogic 9 plug-in objects are located in the /com/sun/weblogic9 folder.
You can interact with plug-in components and plans much like any other custom component or plan. However, if you want to make changes to the components or plans, you need to save the component or plan to a new folder and make your changes there. For more information about using the provisioning system's command-line interface, see Chapter 1, Using the Command-Line Interface, in Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual
The WebLogic command line is accessible through the WebLogic 9 Common Task page. For more information about the WebLogic 9 command-line interface, see the WebLogic Server Command Reference on BEA's web site.
You can run WebLogic commands on any Administration Server or Managed Server.
In the Common Tasks section in the browser interface, click WebLogic 9.
Select whether you plan to run the command on an Administration Server or a Managed Server.
If you plan to run commands on an Administration Server, click Domain Management: Start.
If you plan to run commands on a Managed Server, click Application Server Management: Start.
The component Details page displays
Select the Run-cli component procedure and click Run.
The plan's Run page displays.
Select the AdminServer virtual host or Managed Server virtual host on which to run the CLI and click Run Selected Installations.
Type the needed information in the plan variable fields.
Many of the plan variables do not require information and can be left blank. The following list describes the optional variables.
This variable can be safely ignored if you do not connect to the server using SSL.
This is the user name variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
This is the password variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
This is the user-configuration file variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
This is the key file variable. The user name and password variables are mutually exclusive with the user-configuration file and key file variables. Supply either the user name and password or the user-configuration file and key file locations.
Click Run Plan (Includes Preflight).
This example uses the WebLogic FORCESHUTDOWN command to illustrate input for each Run-cli plan variable.
Weblogic CLI to run (weblogic.Admin or weblogic.Deployer): |
weblogic.Admin |
The SSL arguments for the command: | |
The listen address of the server instance that runs the command: |
sun03 This is the name of the AdminServer. |
The listen port of the server instance that runs the command: |
7001 |
The name of the user who must have appropriate permission to view or modify the target of the command: |
admin |
The password that is associated with the username: |
xxxxx |
The name and location of a user-configuration file, which contains an encrypted username and password: | |
the name and location of the key file: | |
The name of the command to run: |
FORCESHUTDOWN |
Arguments of the command: |
Server-one |
You can use the WebLogic Server Scripting Tool (WLST) from the provisioning system's browser interface. For information on how to perform administrative tasks and configuration changes using the WLST, see BEA's WebLogic Server Using the WebLogic Server Scripting Tool document.
You must first create the WebLogic script , then check in the script as an N1 SPS component, then install it. This procedure assumes that you have an existing WLST script available on a file system.
In the Common Tasks section in the browser interface, click the Create New Component link.
The Components table is displayed.
In the Action column, click the Create link.
The Component Details Edit page is displayed.
In the Component field, type the name of your component.
Select com.sun.weblogic9#WLSTScript from the Type drop down menu.
(Optional) Type a label and description for the component.
Select a host that has a copy of the WebLogic script file in the file system.
Navigate to the location of the script on the host.
Select the appropriate options for your component.
You can set the following options for your application.
Check in a script component that has not changed since a previous check in.
Assign user and group ownership permissions to the script component.
You can designate the script component as a configuration template. If you check the Configuration Template check box, all the component variables for your script component will be added to the container that holds your script component and all associated components. You can then edit these variables when you deploy your application with this container.
In the Path of the Resource Descriptor File field, type the path to the resource descriptor file for this component.
A resource descriptor file specifies the owner, group, and permission settings to use for the files and directories that comprise the resource of a component. For more information about resource descriptor files, see Using a Resource Descriptor File in Sun N1 Service Provisioning System 5.2 XML Schema Reference Guide.
Click Check In Selected Item.
The component's Check In page displays.
Select a folder on which you have edit permissions.
Click Continue to Check In.
Before you can install a WebLogic script component, one must exist within the provisioning system. See How to Create a WebLogic Script Component.
In the Common Tasks section in the browser interface, click WebLogic 9.
In the Common Tasks section in the browser interface, click the Components link.
The Components table is displayed.
If necessary, navigate to the directory that contains the script component.
In the row of the WLSTScript component that you plan to install, click Details.
The component's Details page displays.
In the Component Procedures table, select the Default: Install procedure and click Run.
The plan's Run page displays.
Select the target host.
You target the AdminServer virtual host.
(Optional) Type the name of the WebLogic user who installed the software in the RunAs field.
This user represented by the webLogicUser variable used in the software installation plan.
Click Run Plan (Includes Preflight).