Get started with wsadmin scripting
The wsadmin tool supports Jacl and Jython.
wsadmin objects communicate with MBeans running in appserver processes. MBeans use Java objects that represent JMX resources. Five objects are available:
AdminControl Operational AdminConfig Configurational AdminApp Administer applications AdminTask Administrative Help General help
File system access permissions
Some wsadmin scripts, including the AdminApp install, AdminApp update, and some AdminTask commands, require that the user ID under which the server is running must have read permission to the files created by the user running wsadmin scripting. For example, if the application server is running under user1, but we are running wsadmin scripting under user2, we might encounter exceptions involving a temporary directory. When user2 runs wsadmin scripting to deploy an application, a temporary directory for the EAR file is created. However, when the application server attempts to read and unzip the EAR file as user1, the process fails. IBM recommends to not set the umask value of the user running wsadmin scripting to 022 or 023 to work around this issue. This approach makes all of the files created by the user readable by other users. To resolve this issue, consider the following approaches based on our administrative policies:
- Run wsadmin scripting with the same user ID as the user that runs the deployment manager or application server. A root user can switch the user ID to complete these actions.
- Set the group ID of the user running the deployment manager or application server to be the same group ID as the user running wsadmin scripting. Also, set the umask value of the user running the wsadmin scripting to be at least a umask 027 value so that files that are created by the wsadmin scripting can be read by members of the group.
- Run wsadmin scripting from a different machine. This approach forces files to be transferred and bypasses the file copy permission issue.
Subtopics
- Start the wsadmin scripting client
- Jython
- Jacl (deprecated)
- Use wsadmin scripting
- wsadmin scripting tool
- wsadmin objects
- Reference material
- WAS configuration model
- JMX resources
- Restricting remote access using scripting
- Administrative properties
- IBM Jacl to Jython Conversion Assistant
- WAS Administration Using Jython