Is there any way to stop webserver on particular node using wsadmin? Using
print AdminConfig.list('WebServer')
I got the list of all webservers with coresponding nodes
webserver1(cells/dmgrCell01/nodes/01Node01/servers/webserver1|server.xml#WebServer_0000000000)
webserver2(cells/dmgrCell01/nodes/01Node02/servers/webserver2|server.xml#WebServer_1111111111)
webserver3(cells/dmgrCell01/nodes/01Node03/servers/webserver3|server.xml#WebServer_2222222222)
According to IBM I need to define variable this way:
na = AdminControl.queryNames('type=NodeAgent,node=mynode,*')
so using type WebServer:
webserver = AdminControl.queryNames('type=WebServer,node=mynode,*')
but I got empty value
How to build this query?
Let's say you have deployed the webserver1 on Node01, you can run the following query command at wsadmin command prompt and test it.
once the above command executes, it will store the result into the variable
webserer. To check the content of the variable you can simply usewebserverand hit enter, that's it ! it will show you the MBean content.