• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WebSphere Server is not in Running State :Jython WebSphere Scripting

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please find teh below code.

svr = AdminControl.completeObjectName("type=Server,*").split("\n")
print "len -- >",len(svr)
for s in svr:
print "servers are ",s

When i execute the above code ,the output doesnt show the server for which I am trying to find the running status.The output shows only server1 server though my server is running and I am able to open the apps.

But when I list the servers using the below code I find all the servers and the one which i am intersted in

servers = AdminConfig.list('Server', node).split("\n")
for server in servers:
servername = AdminConfig.showAttribute(server, 'name')
print "server name is -- ",servername

Why is this happening .
We normally start the server by the startserver.sh files and hnce tryng to automate that.The server for which I am tryng to find the status , is Running and hence I am able to open the Apps .

Any help on this ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic