While I had executed command edit()
connecting to managed instance I was ended-up with the following error. How & What I have to do in order to come out of this problem.
wls:/offline> connect('Admin60000','sun1rise','t3://my-comm-app-serv:60001')
Connecting to t3://my-comm-app-serv:60001 with userid Admin60000 ...
Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".
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.
wls:/MiBeaDir/serverConfig>cd('/Servers/MiCommApp/SSL/MiCommApp')
wls:/MiBeaDir/serverConfig/Servers/MiCommApp/SSL/MiCommApp> edit()
Edit MBeanServer is not enabled on a Managed Server.
60001 is managed instance port which is one among the managed instance that runs in admin server. Admin server runs in 60000 port
That is because for managed servers, WLST functionality is limited to browsing the configuration bean hierarchy. Read below excerpt from WL official documentation.
So, basically you need to connect with your Admin server (current you are getting connected with your managed server, as per logs you have provided -
Successfully connected to managed Server "MiCommApp" that belongs to domain "MiBeaDir".
) and then issue edit configurations usingedit()
andstartEdit()
WLST commands.BTW, I connect to my server using following command:
connect(url='t3s://abc.xyz.com:37001',adminServerName='AdminServer')
connect(url='t3://abc.xyz.com:37001',adminServerName='AdminServer')