Thursday 18 February 2016

DISABLING AND ENABLING ADMIN CONSOLE

Disabling your Admin Console:

We can disable our weblogic admin console in two different ways
1)Admin console
2)Weblogic Scripting Tool

From Admin console:-

To disable access to the Administration Console:

After you log in to admin console click Lock & Edit.
In the left pane of the Console, under Domain Structure, select the domain name.
Select Configuration > General, and click Advanced at the bottom of the page.
Deselect Console Enabled.
Click Save.
To activate these changes, click Activate Changes.

From WLST:-

connect(“weblogic“,”weblogic“,”t3://localhost:7001“)
edit()
startEdit()
cmo.setConsoleEnabled(false)
save()
activate()
disconnect()
exit()


Enabling the Admin Console:

After we disable the admin console we can enable it again by using WLST.
Following are the steps on the same:
connect(“weblogic“,”weblogic“,”t3://localhost:7001“)
edit()
startEdit()
cmo.setConsoleEnabled(true)
save()
activate()
disconnect()
exit()


Note: Here,

1)      weblogic and weblogic are the user id and password of admin console.
2)      t3://localhost:7001 is the admin console URL
3)      After we enable/disable the admin console RESTART your admin server

No comments:

Post a Comment