wsadmin>
wsadmin>def stopAppServer( serverName, nodeName ) :
wsadmin> print "Stopping Application Server %s on %s" % ( serverName, nodeName )
wsadmin> try :
wsadmin> AdminControl.stopServer( serverName, nodeName )
wsadmin> print "Application Server %s stopped" % serverName
wsadmin> except :
wsadmin> print "Application Server %s not found - perhaps it's already stopped?" % serverName
wsadmin>
wsadmin>stopAppServer( 'CL01EFCShipPRD', 'ASRShipPRD01' )
Stopping Application Server CL01EFCShipPRD on ASRShipPRD01
Application Server CL01EFCShipPRD not found - perhaps it's already stopped?
wsadmin>
|