Regenerate the node plug-in configuration using scripting
Use scripting and wsadmin to regenerate the node plug-in configuration.
Perform the following steps to regenerate the node plug-in configuration:
- Identify the plug-in and assign it to the generator variable...
Jython...
generator = AdminControl.completeObjectName('type=PluginCfgGenerator,*')Use Jacl:
set generator [$AdminControl completeObjectName type=PluginCfgGenerator,*]Additionally, we can specify the optional node parameter. In an ND environment, specify the node name of the dmgr server.
- Regenerate the node plug-in for a given Web server definition.
Jython...
AdminControl.invoke(generator, 'generate', "$WP_PROFILE/config mycell myWebServerNode myWebServerName true true")Use Jacl:
$AdminControl invoke $generator generate "$WP_PROFILE/config mycell myWebServerNode myWebServerName true true"
Example
The following application-centric examples use the generate, propagate, and propagateKeyring operations for a given Web server definition:
Jython...
AdminControl.invoke(generator,'generate',"$WP_PROFILE/config 01Cell03 01Node03 webserver1 true")AdminControl.invoke(generator,'propagate',"$WP_PROFILE/config 01Cell03 01Node03 webserver1")
AdminControl.invoke(generator,'propagateKeyring',"$WP_PROFILE/config 01Cell03 01Node03 webserver1"
Using Jacl:
$AdminControl invoke $generator generate "$WP_PROFILE/config 01Cell03 01Node03 webserver1 true" $AdminControl invoke $generator propagate "$WP_PROFILE/config 01Cell03 01Node03 webserver1" $AdminControl invoke $generator propagateKeyring "$WP_PROFILE/config 01Cell03 01Node03 webserver1"
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:
The following network-centric example uses the generate operation to generate the plug-in configuration file for the cell:
Jython...
AdminControl.invoke(generator,'generate',"$WP_PROFILE/config 01Cell03 null null plugin-cfg.xml")Using Jacl:
$AdminControl invoke $generator generate "$WP_PROFILE/config 01Cell03 null null plugin-cfg.xml"
The following information explains the possible parameters that the generate operation accepts:
public void generate(java.lang.StringAPP_ROOT
, java.lang.String configuration_root, java.lang.String myCellName, java.lang.String myNodeName, java.lang.String myServerName,java.lang.String myOutputFileName)where:
Related tasks
Use AdminControl for scripted administration 
Related information
Commands for AdminControl