0

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.

y.k2208
  • 1
  • 1

1 Answers1

0

Did you just try ? :

adminServerStatus= nmServerStatus('AdminServer');
if( adminServerStatus != 'RUNNING'):        
...
Emmanuel Collin
  • 2,556
  • 2
  • 10
  • 17