y.k2208
y.k2208

Reputation: 1

Store the nmServerStatus () result in a variable in python

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

Answers (1)

Emmanuel Collin
Emmanuel Collin

Reputation: 2606

Did you just try ? :

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

Upvotes: 0

Related Questions