Basic understanding of wsadmin objects
- Node – an individual system, either physical or virtual
- Node Manager – the process controlling the individual node and all servers in all cells, it executes the commands of the Deployment Manager
- Profile – a WebSphere entity similar to a node concept wise
- Application Server – a Java Virtual Machine (JVM) process
- Application – a Java enterprise application it could be .ear file with some modules
- Cluster – a group of Servers, all running the same applications
- Cell – an administrative domain of one or more servers
- Deployment Manager (DM) – the administration application for a cell
“Multiple Nodes in a Cell run Servers that contain Applications. All pieces are controlled via the Deployment Manager”
How to retrieving Node ID in wsadmin?
This task is very much required for most of the create method executions. When you create servers, when you construct Cluster Member servers your script need Node id. Ofcourse if you wish to Sync the differe!!nt members of a node also requird the Node id.
wsadmin>AdminConfig.getid('/Node:DmgrNode05')
'DmgrNode05(cells/DmgrCell05/nodes/DmgrNode05|node.xml#Node_1)'
How to retrieving Cell Name in wsadmin?
What is the command to Retrieving Cell ID in wsadmin?
wsadmin>AdminConfig.getid('/Cell:'+CellName)
'DmgrCell05(cells/DmgrCell05|cell.xml#Cell_1)'
How can I retrieving the Servers list in wsadmin?
wsadmin>AdminTask.listServers('[-serverType APPLICATION_SERVER]')
'server1(cells/DmgrCell05/nodes/AppSrvNode/servers/server1|server.xml)'
How to fetch the Server ID on wsadmin?
wsadmin>AdminConfig.getid('/Server:server1')
'server1(cells/DmgrCell05/nodes/AppSrvNode/servers/server1|server.xml#Server_1407376951191)'
wsadmin>
Different automation scripts requires the wsadmin provided MBean values. so that we can store in the Jython variables like list and use them.
Hoping this post helped you in doing simple command exections on your wsadmin prompt. Keep writing your comments and thoughts on this blog
very good info anna, could you please share some lights on creating resource environment variables, JMS Queues etc using the wasadmin scripts.
ReplyDelete