Posts

Showing posts with the label Server in wsadmin

Creating New Server using Jython

Image
In this learning and sharing today created a server using Jython script. The basic needs to create a App Server in WebSphere environemnt is to have Node and it should be added to the Cell. The script would perormed with the help of the NodeID to create the server. create is the simple command method on the AdminConfig object. CreateServer.py import sys # import system libraries #interactive method, type server & node name servername=raw_input("Enter server name:") nodename=raw_input("Enter Node name:") # get the config id of the node print "getting config id of node .." nodeid=AdminConfig.getid('/Node:'+nodename+'/') # verify whether the entered node exist or not try : if nodeid=='': print "entered correct node", nodename except: print " the node does not exist, please enter a valid node" # get the config id of the node #print "getting config id of node .." #nodeid=AdminConfig.getid...