The role of various scripts in WAS

   http://www.ibm.com/developerworks/cn/websphere/library/samples/SampleScripts.html

   Inadvertently, the various scripts found on the WAS official website feel very useful. Let me share with you first.

   

These sample jacl and Jython scripts can be used to automate common administrative tasks and configure security in different versions of WebSphere Application Server. The versions for which these scripts apply are described below. Download them and run them as is, or modify them for your own environment.

  • The sample administration scripts run on WebSphere Application Server version 7.
  • The automatic deployment examples run on WebSphere Application Server versions 5.0, 5.1, and 6.0.
  • The sample security configuration runs on WebSphere Application Server Version 5 and WebSphere Application Server - Express, Version 5 and WebSphere Application Server Version 6 and 6.1. The download file contains several samples for version 5 and 5.1, and two samples for version 6 and version 6.1, respectively.
  • The administrative samples run on WebSphere Application Server versions 5.0, 5.1, and 6.0. (The Jython version of the admin script will only run on versions 5.1 and 6.0.)
  • The configuration change example runs on version 5.1.1 and version 6.

The hardware and software requirements for these examples are the same as the products that run them.

Scripts for WebSphere Application Server Version 7 Administration

Download  the IBM WebSphere Application Server Sample Script (wsadminlib.py package). This package is a large sample script file containing hundreds of methods. It's easy to understand and use, and scripting simplifies configuration of WebSphere Application Server. The underlying script syntax used to configure WAS products is complex and difficult to understand. The wsadminlib package provides simple method and parameter names. These methods perform tasks such as creating a server, starting a server, and querying and setting numerous configuration options. Users can directly call wsadminlib.py in their own configuration scripts, or they can write their own code with reference to its content. This speeds up script and test case development and reduces errors.

Scripts for automatic deployment of WebSphere Application Server

Download (version 3.1, May 2007) a sample script for automating the deployment of Enterprise Application Archive (EAR) into WebSphere Application Server. It also contains a PDF file of an article explaining the script. These scripts can be downloaded anywhere on the system containing the WebSphere installation. When the ZIP file is extracted, an AdderDeploy directory is created that contains the TestDeploy program that performs the following tasks:

  • Dynamically read the Distribution directory to determine which WARs need to be installed, updated, reconfigured, or uninstalled.
  • Use environment/stage related properties files to decide on target (node/server and/or cluster) and application settings.
  • Calculate the set of affected nodes and servers (to avoid unnecessarily disrupting other nodes and servers).
  • Staged updates to affected nodes and servers to help maintain high availability (and also provide connection points for customer workflow rerouting to further maintain availability).
  • Versions 3.0 and later contain Jacl and Jython versions of AutoDeploy scripts. Jython scripts are created with the IBM Jacl-2-Jython conversion aid, which is available by downloading swg24012144 from the WebSphere support site. Note that the Jython AutoDeploy script requires WebSphere Application Server version 6.1, as the script requires the full Jython library (which is only included with 6.1 and later).  
  • Version 3.1 uses the application.scripts property file to specify user scripts to load and execute preInstall, postInstall, preUninstall, and postUninstall.

Scripts for WebSphere Application Server security configuration

Download  the fileset for configuring WebSphere Application Server security:

  • SecConfigProps.properties - A sample file containing all security properties available, including cipher suites used at the SSL config.Security level.
  • SecConfigProcs.jacl - Configure the low-level procedures required for security, which are called by other security scripts.
  • SecConfigMenu.jacl -- Text menu options used in interactive mode, which are similar to the security configuration options in the web-based WebSphere administrative console.
  • SecConfigBatch.jacl - A configuration process that reads and parses properties from a properties file that specify security configuration values ​​to be set in batch mode.
  • readme.txt - Detailed information about each script, including what they do and how to run them.

Script for WebSphere Application Server configuration changes

Download  sample scripts for changing, exporting, and importing existing WebSphere Application Server configuration data. These scripts are available in versions for WebSphere Application Server 5.1.1 and 6. For version 6 scripts in a Network Deployment environment, they can be used in a mixed cell environment, requiring that the WebSphere Deployment Manager be Version 6, and all other federated WebSphere Application Servers can be 5.1.1 and/or Version 6.

by calling these scripts. The script performs the following tasks: ws_ant 

  • change hostname
  • Change unit name
  • change node name
  • change server name
  • Export/Import the entire repository configuration directory
  • Export/Import individual application servers
  • Export/Import Enterprise Applications
  • Export/Import JDBC providers and associated data sources

Scripts for WebSphere Application Server Administration

Download  sample scripts that perform common administrative functions:

  • Create and change servers, load applications into the server, and start the server.
  • Stops the server on the specified node, uninstalls the application, removes the server from the configuration.
  • Create a server group on the server, start the server (requires Network Deployment configuration).
  • Perform actions that help determine the problem, including traces and thread dumps.
  • Invoke various application installation commands.
  • Invoke the command to generate a short summary of configuration and runtime information about the WebSphere installation.
  • Create a JDBCProvider object using a template.
  • Demonstrates J2C security configuration by installing a J2CResourceAdapter and creating a J2CConnectionFactory.
  • Create JDBCProvider, DataSource and CMPConnectorFactory objects.
  • Use variables for URLProvider objects.
  • Set the port number in the serverindex.xml file.
  • Update a configuration property in a list or object list.
  • 列出特定应用服务器上安装的所有企业应用程序。(单独下载)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326432215&siteId=291194637