How to enroll WebLogic domain using NMEnroll

Home/WebLogic/How to enroll WebLogic domain using NMEnroll

How to enroll  WebLogic domain using NMEnroll

  • The NMEnroll command adds the WebLogic domain name with its path in nodemanager.domains file
  • The nodemanager.domains file gets created by nmEnroll command when it issued at the first time
  • The file located in MW_HOME\oracle_common\common\nodemanager
  • The startNodemanager.sh (or .cmd) uses this file to identify the domain names
  • NmConnect Exception occur if the WebLogic domain is not enrolled

When you copy the command from this post, Delete the single quote and type it manually. Let’s begin to enroll WebLogic domain

Pre-Requisite

  • A WebLogic domain should exist
  • A WebLogic machine should exist or create in the domain
  • Admin Server must be running

Enroll  WebLogic Domain

 

1. Open a command prompt and go to MW_HOME\oracle_common\common\bin

 

Cd C:\Oracle\MiddlewareBPM\oracle_common\common\bin

 

2. Run the wlst.cmd script (.sh in Linux)

 

030217_0350_Howtoenroll1 How to enroll  WebLogic domain using NMEnroll

 

3. Connect to the Admin server using connect

 

connect(′weblogic′,′password123′,′t3://localhost:7001′)

1st Argument => WebLogic username

2nd Argument => WebLogic password

3rd Argument => Adminserver URL

Note: If your nodemanager is SSL enabled then connect with t3s://HOSTNAME:SSL_PORT

 

030217_0350_Howtoenroll2 How to enroll  WebLogic domain using NMEnroll

 

4. Enroll the WebLogic domain using the following command and exit 

 

nmEnroll(C:/Oracle/MiddlewareBPM/user_projects/domains/p6,C:/Oracle/MiddlewareBPM/oracle_common/common/nodemanager)

 

1st Argument => Your Domain Home

2nd Argument => NODEMANAGER_HOME

Note: Always Use forward slash when you specify path. nmEnroll will create nodemanager directory if it not exists

 

030217_0350_Howtoenroll3 How to enroll  WebLogic domain using NMEnroll

 

Open the nodemanager.domains file in the MW_HOME\oracle_common\common\nodemanager folder. Check the domain id added like below

 

030217_0350_Howtoenroll4 How to enroll  WebLogic domain using NMEnroll

 

 

govindan How to enroll  WebLogic domain using NMEnroll
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan How to enroll  WebLogic domain using NMEnroll
Connect me
By | 2017-04-05T22:52:31+00:00 March 1st, 2017|Categories: WebLogic|Tags: , |2 Comments
  • Aju Ijaz

    Dear Govind,

    I am receiving below error while enrolling the weblogic domain. Please help.

    wls:/P6EPPM/serverConfig>
    wls:/P6EPPM/serverConfig>
    wls:/P6EPPM/serverConfig>
    wls:/P6EPPM/serverConfig>
    wls:/P6EPPM/serverConfig> nmEnroll(‘C:OracleMiddlewareOracle_Homeuser_projec
    tsdomainsP6EPPM’,’C:OracleMiddlewareOracle_Homeoracle_commoncommonnodema
    nager’)
    Enrolling this machine with the domain directory at C:OracleMiddlewareOracle_
    Homeuser_projectsdomainsP6EPPM …
    Traceback (innermost last):
    File “”, line 1, in ?
    File “”, line 1388, in nmEnroll
    File “”, line 552, in raiseWLSTException
    WLSTException: Error occurred while performing nmEnroll : Problem enrolling the
    machine. : C:OracleMiddlewareOracle_Homeoracle_commoncommon
    odemanagernodemanager.domains (The filename, directory name, or volume label sy
    ntax is incorrect)
    Use dumpStack() to view the full stacktrace :
    wls:/P6EPPM/serverConfig>

    • Aju Ijaz

      Fixed. Sorry I was using Backward slash. 🙂

Like us on Facebook.
Connect!