Reputation: 1
I am writing a python file which checks the current status of weblogic server and perform the required action(start/stop).
I am using nmServerStatus to get the status of weblogic status. How can I store the the result of nmServerStatus in a variable ?
it's syntax is nmServerStatus (ServerName).
Let me know if any other information required.
Upvotes: 0
Views: 208
Reputation: 2606
Did you just try ? :
adminServerStatus= nmServerStatus('AdminServer');
if( adminServerStatus != 'RUNNING'):
...
Upvotes: 0