InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.2: Command line administration >
6.6.0.2.1: XMLConfig command line interface for XML configuration >
6.6.0.2.1.1: XMLConfig - Command syntax >
6.6.0.2.1.1.2: XMLConfig - Example of a partial export

6.6.0.2.1.1.2: XMLConfig - Example of a partial export

To do a partial export of your Websphere Administrative Domain configuration into an XML file, you need to create an XML file specifying the resources you would like to export. This partial file is then used as an input parameter in the XMLConfig export command line.

The partial XML file always begins with the following header lines:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE websphere-sa-config
SYSTEM "file:///$XMLConfigDTDLocation$$dsep$xmlconfig.dtd">

The contents of the Websphere administrative domain that you wish to extract into an XML file start with <websphere-sa-config> and end with </websphere-sa-config>. What goes in between these tags depends on what you want to export. This is an example of a partial XML file you would create to export the entire contents of an application server on a node named mynode:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE websphere-sa-config
SYSTEM "file:///$XMLConfigDTDLocation$$dsep$xmlconfig.dtd">
<websphere-sa-config>
<node name="mynode" action="locate">
<application-server name="Default Server" action="export">
</application-server>
</node>
</websphere-sa-config>

As an example of how you would do a partial configuration export into an XML file, we can name this file PartialFile.xml, place it in the appserver/bin directory, and run the following command from that directory:

XMLConfig -export NewExport.xml -adminNodeName mynode -partial PartialFile.xml

An XML file named NewExport.xml is then created in the appserver/bin directory with the following output:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE websphere-sa-config
SYSTEM "file:///$XMLConfigDTDLocation$$dsep$xmlconfig.dtd">
<websphere-sa-config>
<node name="mynode" action="locate">
<application-server action="update" name="Default Server">
<executable>java</executable>
<command-line-arguments/>
<environment/>
<user-id/>
<group-id/>
<working-directory/>
<umask>18</umask>
<stdin/>
<stdout>D:\WebSphere\AppServer/logs/Default_Server_stdout.log</stdout>
<stderr>D:\WebSphere\AppServer/logs/Default_Server_stderr.log</stderr>
<process-priority>20</process-priority>
<maximum-startup-attempts>2</maximum-startup-attempts>
<ping-interval>60</ping-interval>
<ping-timeout>200</ping-timeout>
<ping-initial-timeout>300</ping-initial-timeout>
<selection-policy>roundrobinpreferlocal</selection-policy>
<trace-specification/>
<trace-output/>
<transaction-log-file/>
<olt-enabled>false</olt-enabled>
<system-properties/>
<debug-enabled>false</debug-enabled>
<transaction-timeout>120</transaction-timeout>
<transaction-inactivity-timeout>60000</transaction-inactivity-timeout>
<thread-pool-size>20</thread-pool-size>
<security-enabled>false</security-enabled>
<admin-agent-ior/>
<cache-config>
<cache-size>2047</cache-size>
<cache-sweep-interval>1000</cache-sweep-interval>
<passivation-directory/>
</cache-config>
<log-file-spec/>
<performance-monitor-spec>
pmi=none:beanModule=maximum:connectionPoolModule=medium:
j2cModule=medium:jvmRuntimeModule=none:jvmpiModule=low:
servletSessionsModule=none:threadPoolModule=high:
transactionModule=none:webAppModule=maximum
</performance-monitor-spec>
<olt-server-host>localhost</olt-server-host>
<olt-server-port>2102</olt-server-port>
<selection-policy>roundrobinpreferlocal</selection-policy>
<source-path/>
<wlm-template-ior/>
<thread-pool-size>20</thread-pool-size>
<jvm-config>
<initial-heap-size>64</initial-heap-size>
<max-heap-size>64</max-heap-size>
<generated-command-line-arguments>-Xms64m -Xmx64m </generated-command-line-arguments>
<system-properties/>
<additional-command-line-arguments/>
<debug-mode>false</debug-mode>
<debug-string/>
<run-hprof>false</run-hprof>
<hprof-args/>
<disable-jit>false</disable-jit>
<verbose-class-loading>false</verbose-class-loading>
<verbose-jni>false</verbose-jni>
<verbose-gc>false</verbose-gc>
<boot-classpath-replace/>
<boot-classpath-append/>
<boot-classpath-prepend/>
</jvm-config>
<web-container>
<dynamic-cache-config>
<enabled>false</enabled>
<cache-size>0</cache-size>
<default-priority>0</default-priority>
</dynamic-cache-config>
<transport name="http">
<transport-host>*</transport-host>
<transport-port>9080</transport-port>
<http-transport>
<connection-timeout>5</connection-timeout>
<backlog-connections>50</backlog-connections>
<keep-alive-timeout>5</keep-alive-timeout>
<maximum-keep-alive>25</maximum-keep-alive>
<maximum-req-keep-alive>100</maximum-req-keep-alive>
<ssl-enabled>false</ssl-enabled>
</http-transport>
</transport>
<thread-maximum-size>50</thread-maximum-size>
<thread-minimum-size>25</thread-minimum-size>
<thread-inactivity-timeout>10</thread-inactivity-timeout>
<thread-is-growable>true</thread-is-growable>
<session-manager>
<enable-security-integration>false</enable-security-integration>
<enable-ssl-tracking>false</enable-ssl-tracking>
<invalidation-schedule-first-hour>0</invalidation-schedule-first-hour>
<invalidation-schedule-second-hour>0</invalidation-schedule-second-hour>
<persistent-db2-row-size>0</persistent-db2-row-size>
<maximum-inmemory-session-count>1000</maximum-inmemory-session-count>
<write-contents>0</write-contents>
<write-frequency>0</write-frequency>
<write-interval>0</write-interval>
<enable-sessions>false</enable-sessions>
<enable-url-rewriting>false</enable-url-rewriting>
<enable-cookies>true</enable-cookies>
<enable-protocol-switch-rewriting>false</enable-protocol-switch-rewriting>
<cookie name="JSESSIONID">
<domain/>
<maximum>-1</maximum>
<path>/</path>
<secure>false</secure>
</cookie>
<tuning-invalidation-time>30</tuning-invalidation-time>
<persistent-sessions>false</persistent-sessions>
<data-source name="">
<default-user/>
<default-password/>
</data-source>
<using-multi-row>false</using-multi-row>
<allow-overflow>true</allow-overflow>
</session-manager>
</web-container>
<orb-config>
<bootstrap-host-name/>
<bootstrap-port>900</bootstrap-port>
<comm-trace-enabled>false</comm-trace-enabled>
<connection-cache-maximum>240</connection-cache-maximum>
<connection-cache-minimum>100</connection-cache-minimum>
<external-config-url/>
<force-tunnel>whenrequired</force-tunnel>
<listener-port>0</listener-port>
<locate-request-timeout>180</locate-request-timeout>
<local-host-name/>
<lsd-host-name/>
<no-local-copies>false</no-local-copies>
<request-retries-count>1</request-retries-count>
<request-retries-delay>0</request-retries-delay>
<request-timeout>180</request-timeout>
<thread-pool-size>20</thread-pool-size>
<tunnel-agent-url/>
<rmi-remote-code-base/>
<ssl-listener-port>0</ssl-listener-port>
</orb-config>
<custom-service-config-list>
<custom-service-config name="Automatic Generation of Plugin Configuration">
<description>If enabled, the plugin configuration
files will be regenerated when the application
server is started</description>
<classname>com.ibm.websphere.plugincfg.initializers.AEPluginCfgService</classname>
<classpath/>
<external-config-url/>
<enabled>false</enabled>
</custom-service-config>
</custom-service-config-list>
</application-server>
</node>
</websphere-sa-config>
Go to previous article: XMLConfig - Example of a full export Go to next article: XMLConfig grammar

 

 
Go to previous article: XMLConfig - Example of a full export Go to next article: XMLConfig grammar