5.5 Help creating wsadmin scripts
V6.1 has added the command assistance feature in the console to show the corresponding scripting commands when you perform certain activities. The list of activities that show the corresponding commands will grow over time. You also have the option to send these as notifications to the Application Server Toolkit, where use the new Jython editor to build scripts.
Command assistance in the console maps your administrative activities to wsadmin scripting commands, so that you can capture your console activities and apply them to wsadmin scripts. To enable this feature, go to Console Preferences and check the box Enable command assistance notifications. After performing an administrative task, the help portlet will show the corresponding command in Jython. You can also enable an option to log command assistance commands.
The new Jython editor in Application Server ToolKit V6.1 is used to perform a variety of tasks, such as the following:
- Develop Jython script files.
- Edit Jython script files.
- Import existing Jython files for structured viewing.
- Set breakpoints for debugging your scripts.
The Jython Editor is also integrated with the WebSphere Administrative Script Launcher and Debugger tools, so you can run and debug script files directly from the editor.
The Jython editor has many text editing features, such as syntax highlighting, unlimited undo or redo, and automatic tab indentation. When you tag a comment in a Jython script with "#TODO", the editor automatically creates a corresponding task as a reminder in the Tasks view. Then, if you open the task later, the editor automatically synchronizes to that TODO entry in the script source. Other helpful features are content assist and tips, which provides a list of acceptable continuations depending on where the cursor is located in a Jython script file, or what you have just typed. The Jython editor is not integrated to a compiler. As a result, the Jython editor does not perform syntax verification on your scripts.