Store the nmServerStatus () result in a variable in python

179 Views Asked by At

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.

1

There are 1 best solutions below

0
On

Did you just try ? :

adminServerStatus= nmServerStatus('AdminServer');
if( adminServerStatus != 'RUNNING'):        
...