1. Go to domain directory
for example -
cd /opt/appsvr/product/wls_103/user_projects/domains/mydomain
2. connect with WLST
java weblogic.WLST
wls:/offline>
3. Connect with NM then WLS
nmConnect("weblogic","webl0gic","localhost","5557","mydomain","/opt/appsvr/product/wls_103/user_projects/domains/mydomain","plain")
connect('weblogic','webl0gic', localhost.com:7001')
4. Run below command ( Don't forget to update domain path accordingly )
wls:/offline> storeUserConfig('/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure', '/opt/appsvr/product/wls_103/user_projects/domains/mydomain /keyfile.secure')
Above command will create configfile.secure and keyfile.secure under your domain directory
5. Now use it like –
Connect with node manager -
nmConnect (userConfigFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure',userKeyFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/keyfile.secure',host='localhost',port='5557',domainName='mydomain',domainDir='/opt/appsvr/product/wls_103/user_projects/domains/mydomain',nmType='plain')
Connect with Weblogic -
connect(userConfigFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure',userKeyFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/keyfile.secure',url='localhost':7001')
Connect with Weblogic -
connect(userConfigFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure',userKeyFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/keyfile.secure',url='localhost':7001')
1.Go to your domain/bin
ReplyDelete2.run setDomain.sh
3.run below command to know the encrypt value of your actual password
java weblogic.security.Encrypt your_password
4.use the same to connect
This comment has been removed by the author.
ReplyDeleteLooks like you do not need nmConnect()
ReplyDelete