wlst script to change nodemanager username and password | weblogic

Oracle Weblogic Server

Make sure Admin Server is up and running before running the commands in wlst.sh

connect(adminUser, adminPassword, adminURL) # connect to Admin Server

edit() # go to edit tree

startEdit() # Lock & Edit

cd(‘/SecurityConfiguration’+domainName) # go to MBean object

cmo.setNodeManagerUsername(nmUserName) # change username

cmo.setNodeManagerPassword(nmPassword) # change password

save() # save changes

activate(block=”true”) # activate

disconnect() # disconnect from Admin Server

Check connecting to Node Manager with new username and password:

nmConnect(nmUserName, nmPassword, nmHost, nmPort, domainName) # connect to Node Manager should be successful

nmDisconnect()

You can also verify the user name change by going to Admin Console > domain name > Security > Advanced. Check if the NodeManager Username has been changed.

This change is suppose to be dynamic but It’s better to restart of entire domain, including Node Manager.

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.