For administration of the whole domain and all the servers in the domain, we can use WLST commands. This is the best way for a monitoring and managing the complete domain using nodemanager.
To start the admin server using WLST, ensure that the admin server is associated to a machine. Once done, start the WLST tool.
Start the nodemanager using the command startNodeManager() as seen in the image.
Note: Nodemanager starts and runs irrespective of the WLST tool. Even if you exit from WLST, the nodemanager will still be running.
Now you need to connect to the nodemanager using the nmConnect() command. This needs to be done because you need to start the the servers through node manager.
Example: nmConnect(‘weblogic’, ‘weblogic’, ‘localhost’, ‘5556’, ‘example_domain’,’D:/BEA103/user_projects/domains/example_domain’,’plain’)
– The above command takes username, password, hostname, port, domain name, domain directory and nodemanager type (SSL, Plain) as arguments.
1) To start the admin server through WLST using nodemanager, type the below command:
2) To check the status of the admin/managed servers, type the command:
3) To stop/kill the server, enter the command:
Steps to start the managed servers remotely:
– On the remote machine, start the WLST tool and connect to the local running admin server:
Once connected, do the nmEnroll from the remote machine:
Now to start the managed servers from the remote machine, connect to the nodemanager using nmConnect as above and do the nmStart on the managed servers.
The servers status can be checked from the remote machine.
If you have any queries, do get back to us.