Configuring the Script Node Manager in WebLogic 12c
The Oracle WebLogic Node Manager can be used to start and stop WebLogic managed servers on a host. In general, the WebLogic Admin Server is used for administrative duties and the managed servers are used to deploy applications on WebLogic. This article details how to configure WebLogic Node Manager.
Relevant Topics: Oracle DBA, Oracle WebLogic, Node Manager, WebLogic Managed Server
In the following, $WL_HOME is the WebLogic home directory and $MW_HOME is the Oracle Fusion Middleware home established during WebLogic installation.
- First, set the environment for the WebLogic Scripting Tool by sourcing the following file:
[[email protected] bin]$ source /u01/app/weblogic/wls/wlserver/server/bin/setWLSEnv.sh
Your environment has been set.
[[email protected] bin]$
- Next, start the WebLogic Scripting Tool. Run the command:
[[email protected] wlserver]$ java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
- Connect to the Admin Server with the following command
wls:/offline> connect ('weblogic', ‘<passwd>', 't3://localhost:7003')
Connecting to t3://localhost:7003 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "base_domain".
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
The connection was successful. We will address the “insecure protocol” warning in an upcoming post.
- Use the following command to enroll the host machine with the WebLogic domain to be used. This allows Node Manager to accept requests from the domain.
Enrolling this machine with the domain directory at /u01/app/weblogic/wls12130/user_projects/domains/base_domain ...
Successfully enrolled this machine with the domain directory at /u01/app/weblogic/wls12130/user_projects/domains/base_domain.
Login to the WebLogic Server.
A WebLogic machine is a representation for a host on which WebLogic will run. We will configure a WebLogic machine to use Node Manager.
In the Admin Console,
Click Environment --> Machines.
- The Summary of Machines screen displays
- The Create a New Machine screen displays.
Give the machine a name. Select an operating system for the machine if desired. For example, “Unix”.
- The Create a New Machine screen with more details displays.
Enter a type, listen address, and listen port for the machine. Enter the name of the server in the Listen Address field.
- The Summary of Machines screen displays showing the newly created machine.
10. Start Node Manager with the command:
[[email protected] bin]$ /u01/app/weblogic/wls12130/user_projects/domains/base_domain/bin/startNodeManager.sh &
<INFO> <Secure socket listener started on port 5556 …
- At this point, Node Manager is running and is associated with a machine. We can use this configuration to start a WebLogic managed server to deploy applications.