Change to the directory where the agent was created. The default directory is BEA_HOME\user_projects\agent1.
Open a command window and run .\bin\startAgent.sh (UNIX or Linux) or .\bin\startAgent.cmd (Windows).
Starting the Controller
To start a Controller:
Change to the directory where the Controller was created. The default directory is BEA_HOME\user_projects\controller.
Open a command window and run .\bin\startController.sh (UNIX or Linux) or .\bin\startAgent.cmd (Windows).
Accessing the WLOC Administration Console
The WLOC Administration Console starts when you start the Controller. You can access the console using a web browser.
For HTTP connection, the URL is: http://hostname:port/wloc-console
For HTTPS, the URL is: https://hostname:port/wloc-console
where
hostname is the host name or IP address
port is the port specified when the Controller was configured. The HTTP default is 9001; the HTTPS default is 9002.
The default user name and password for the WLOC Administration Console are WLOCBootUser and changeit.
Stopping an Agent
To stop an Agent using the Administration Console:
Select the Agents tab at the top of any console page to display a list of Agents.
Select the Agent’s checkbox and click Shutdown.
As an alternative to shutting down an Agent, you can disconnect it. The Controller cannot deploy services to a disconnected Agent.
Stopping the Controller
To stop the Controller using the Administration Console:
Select the Controller tab at the top of any console page.
On the Controller page, select the Control tab.
Click Shutdown Controller.
Stopping the Controller also shuts down the Administration Console application.
Running the Controller and Agents as Windows Services
WLOC provides scripts that allow you to set up the Controller and Agent(s) to run as Windows services.
Note:
To run a WLOC Agent as a Windows service, it must be run on a local disk drive. Running the Agent as a Windows service from a mapped drive is not supported.
To set up a Controller or Agent to run as a Windows service, open a command line and enter one of the following commands:
For the Controller, enter: BEA_HOME/user_projects/controller/bin/install_ControllerService.cmd
For an Agent, enter: BEA_HOME/user_projects/agent/bin/install_AgentService.cmd
When the script completes, the service will be configured to start automatically upon system boot and run using the Local System account.
You can revert to running the Controller or Agent from a command line by removing the Windows service. Use one of the following commands:
For the Controller, enter: BEA_HOME/user_projects/controller/bin/remove_ControllerService.cmd
For an Agent, enter: BEA_HOME/user_projects/agent/bin/remove_AgentService.cmd
Unexpected Shutdowns
The unexpected shutdown of a WLOC Agent does not impact the operation of the Controller. The Agent will attempt to restart automatically and reconnect to both its managed resources and the Controller.
If the Controller shuts down unexpectedly, the Agents to which it connects will continue to collect and locally store information from its managed resources. They will then send that information to the Controller after it restarts.