WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

Regenerating the node plug-in configuration using scripting

You can use scripting and the wsadmin tool to regenerate the node plug-in configuration.

Before you begin

Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.

About this task

Perform the following steps to regenerate the node plug-in configuration:

Procedure

  1. Identify the plug-in and assign it to the generator variable, for example:

    Using Jython:

    generator = AdminControl.completeObjectName('type=PluginCfgGenerator,*')

    Using Jacl:

    set generator [$AdminControl completeObjectName type=PluginCfgGenerator,*]
    Additionally, you can specify the optional node parameter. In a Network Deployment environment, specify the node name of the deployment manager server.
  2. Regenerate the node plug-in for a given Web server definition.

    Using Jython:

    AdminControl.invoke(generator, 'generate', "profile_root/config mycell myWebServerNode myWebServerName true")

    Using Jacl:

    $AdminControl invoke $generator generate "profile_root/config mycell myWebServerNode myWebServerName true"

Example

The following information explains the possible parameters that the generate operation accepts:
public void generate(java.lang.String configuration_root, java.lang.String myCellName, java.lang.String myNodeName, java.lang.String myServerName, java.lang.Boolean
propagate, java.lang.Boolean propagateKeyring) 
where:
configuration_root is the root directory for the configuration repository.
myCellName is the name of the cell.
myNodeName is the name of the node.
myServerName is the name of the server.
propagate is a boolean variable that specifies to propagate the configuration file.
propagateKeyring is a boolean variable that specifies to propagate the keyring file.
The following network-centric example uses the generate operation to generate the plug-in configuration file for the cell:
wsadmin>$AdminControl invoke $generator generate "c:/was610 c:/was610/profiles/Dmgr02/config 01Cell03 null null plugin-cfg.xml"
The following information explains the possible parameters that the generate operation accepts:
public void generate(java.lang.String app_server_root, java.lang.String configuration_root, java.lang.String myCellName, java.lang.String myNodeName, java.lang.String myServerName,java.lang.String myOutputFileName)  
where:
app_server_root is the root directory for the application server.
configuration_root is the root directory for the configuration repository.
myCellName is the name of the cell.
myNodeName is the name of the node.
myServerName is the name of the server.
myOutputFileName is the name of the plug-in configuration file.



Related tasks
Using the AdminControl object for scripted administration
Related information
Commands for the AdminControl object
Task topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/txml_pluginconfig.html

© Copyright IBM Corporation 2004, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)