Search This Blog

Saturday 16 July 2016

Control Admin Server Using Node Manager and WLST


Control AdminServer with Node manager in WLST


Hey all, here we are going to know about the start and stop of admin server with node manager nm commands using WLST.



Controlling WebLogic Servers with Node Manager using WLST
 Here are the brief steps we are going to follow.

1.    Start Node manager        -  startNodeManager()
2.  Connect to node manger   - nmConnect()
3.Connect and Enroll to admin server    - connect() ,nmEnroll()
4.Start and Stop admin server            - nmStart(),nmKill()
        -



Step 1: Start Node Manager

Start Node Manager using below command. Provide the argument values from nodemanager.properties” file under node manger home
wls:/offline> startNodeManager(verbose='true', NodeManagerHome='/u01/app/oracle/fmw/demodomain/nodemanager',
ListenPort='5557',ListenAddress='192.168.33.100')

StartNodeManager

Step 2: Connect to node manager using WLST

Connect WLST offline and type help('nmConnect') to get syntax. Syntax:    nmConnect([username, password], [host], [port], [domainName], [domainDir], [nmType], [verbose])
wls:/offline> nmConnect('weblogic','Welcome1','192.168.33.100','5557','demodomain', nmType='plain')
 Connecting to Node Manager ...
Successfully Connected to Node Manager.
nmConnect
Note :- If your node manager not already started nmConenct result following error.
STEP3: Connect to admin server and Enroll(One time activity)
NM connect result will be successful when admin server is running.

3.a. Connect
wls:/nm/demodomain> connect()
Please enter your username :weblogic
Please enter your password :Welcome1
Please enter your server URL [t3://localhost:7001] :t3://192.168.33.100:7001
t3://192.168.33.100:7001
Connecting to t3://192.168.33.100:7001 with userid weblogic ...
Successfully connected to Admin Server "demoadmin" that belongs to domain "demodomain".
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.

3.b. Node Manager Enroll
Syntax : nmEnroll('c:/nmdomain')
wls:/demodomain/serverConfig/> nmEnroll('/u01/app/oracle/fmw/demodomain')
Enrolling this machine with the domain directory at /u01/app/oracle/fmw/demodomain ...Successfully
enrolled this machine with the domain directory at /u01/app/oracle/fmw/demodomain.

Step 4: Start and Stop admin server
Start Syntax: - nmStart('<ADMIN SERVER')
Stop Syntax:- nmKill('<ADMIN SERVER')
wls:/nm/demodomain> nmStart('demoadmin')
Starting server demoadmin ...
Successfully started server demoadmin ...
Terminating the admin server using nmKill() command in WLST
wls:/nm/demodomain> nmKill('demoadmin')
Killing server demoadmin...
Successfully killed server demoadmin..
nmStart and nmStop

WebLogic Books

  • Oracle WebLogic Server 12c: Administration Handbook
  • WebLogic Diagnostic Framework
  • Advanced WebLogic Server Automation
  • Oracle SOA Suite 11g Administrator's Handbook

Popular Posts