Modifying MBean attributes with the wsadmin tool

You can customize HCL Compass Web server by setting available MBean attributes with the WebSphere® Application Server command-line interface, wsadmin.

Important: Do not modify any MBean attributes unless the attributes are documented as modifiable with the [W] notation, which indicates write, or HCL Support instructs you to do so. Modifying read-only [R] or undocumented MBean attributes can affect system performance.

HCL Compass Web server must be running when you use the wsadmin tool.

The MBean attributes are categorized by the MBean in which they are stored. You can retrieve all parameters that are denoted by [R] for read. The modifiable parameters are denoted by [W] for write. You can access the attributes by using the IBM® WebSphere Application Server wsadmin tool with Jacl (Java™ Application Control Language) commands. The teamAdminUtils.jacl file provides examples of Jacl commands, syntax, and functions. You can also modify some of the HCL Compass Web server MBean attributes by using the Site Configuration window.

You can change the modifiable MBean parameters only while HCL Compass Web server is running. The changes take effect immediately without needing to restart the server processes. Changes that are made to MBean attributes that govern the start of backend Open Network Computing Remote Procedure Call (ONC RPC) server processes do not affect backend ONC RPC processes that are running. Only new backend ONC RPC server processes use the new settings.

Two MBeans are created when HCL Compass Web server starts: TeamServerMBean, which holds HCL Compass Web server configuration attributes, and CqServerFactoryMBean, which holds HCL Compass managed-connection-factory attributes.

The HCL Compass managed-connection factory is the HCL Compass Web server component responsible for starting one or more multithreaded HCL Compass ONC RPC backend server processes. Because each HCL Compass RPC process is multithreaded, it can process requests from many different credentials. The HCL Compass managed-connection factory automatically performs lifecycle management on each HCL Compass RPC process.

MBeans and MBean attributes

The HCL Compass Web server MBeans attributes, described next, are organized by MBean:
  • TeamServerMBean
    The TeamServerMBean holds attributes that are relevant to the overall HCL Compass Web server behavior. Attributes that are specific to controlling how the HCL Compass server factory works are stored in the CqServerFactoryMBean server factory.
    Table 1. TeamServerMBean attributes

    TeamServerMBean attributes

    MBean attribute Access control Description
    attachmentTempLocation [R,W] Specifies a directory for storing attachments. By default, attachments are stored deep within the WAS profile directory structure. However, Windows™ limits the length of pathnames to approximately 250 bytes. If the attachment filename is longer than approximately 150 bytes, HCL Compass may fail to store the attachment because the full pathname of the attachment in the default storage location will be longer than 250 bytes.
    cqFulltextSearchCacheSize [R,W] The number of record hits that are saved in HCL Compass core for a single full-text search. The default value is 0 (not set). A positive value overrides the default setting for HCL Compass core.
    cqFulltextSearchRecordHitLimit [R,W] The maximum number of record hits that are returned in one full-text search web-service call. The number also represents the number of hits that can be cached in the application server. The default value is 100.
    cqLoginSessionTimeout [R,W] The amount of time, in seconds, that a HCL Compass login session persists before it times out. The default value is 1800 seconds (30 minutes). Each HCL Compass session employs a database connection, so setting this value too high can consume resources for longer than necessary. Do not change the default value.
    cqLoginSessionWaitTimeout [R,W] The amount of time, in seconds, that a thread can wait to acquire the HCL Compass login session. The default value is 300 seconds.
    cqServerFactory [R] The object name for the HCL Compass J2C connection factory MBean.
    cqUserDBListSecureAccess [R,W] Indicates whether users can see the list of databases when they attempt to log on to HCL Compass Web with invalid credentials. The default value is FALSE, indicating that users can see the database list if they try to log on with invalid credentials. If the value is set to TRUE, user authentication is enabled, which prevents unauthorized users from seeing the database list.
    ejbBufferLimit [R,W] The maximum number of objects that are returned by an EJB call. The default value is 100.
    keepAliveInterval [R,W] If this value is greater than 0 seconds, the Web server issues a keepalive message between the client and the backend-server components at the specified periodic interval. This attribute is designed to ensure that long-running queries can complete without removing the underlying sockets. This value must be at least 10 seconds less than the socket-timeout values. The default value is 300 seconds (5 minutes).
    largeReadSocketTimeoutMultiplier [R,W] The multiplier to apply to the read-timeout value on the socket between the middle tier and the backend-server component for long-running operations.  The default value of 4 indicates that the read-socket-timeout value is four times the backend-server-factory default-read-socket-timeout value. This multiplier is applied only to certain operations. Do not change this value unless support instructs you to do so.
    maxCqSessionsPerUser [R,W] The maximum number of sessions that are created for each user in a single session. The default value is 2; the minimum value is 1.
    maxProcureServerAttempts [R,W] The maximum number of attempts to allow a backend ONC RPC server to be obtained before it returns an exception to the managed-connection pool. The default value is 6; this value must be greater-than-or-equal-to 2.
    mediumReadSocketTimeoutMultiplier [R,W] The multiplier to apply to the read-timeout value on the socket between the middle tier and the backend server component for certain long-running operations.  The default value of 2 indicates that the read-socket-timeout value is two times the backend-server-factory default-read-socket-timeout value.  This multiplier is applied only to certain operations. Do not change the value unless support instructs you to do so.
    numberOfActiveSessions [R] The number of active sessions the server is handling.
    numberOfHttpSessionsCreated [R] The number of sessions that are handled by this server.
    oncrpcBufferLimit [R,W] The maximum number of objects that are returned in a single ONC RPC call. The default value is 100.
    oncrpcInterruptLimit [R,W] The maximum number of objects that are returned for a user request. The default value is 1000.
    oncrpcServers [R] The object names for the running ONC RPC server MBeans.
    procureServerInterval [R,W] The amount of time (in seconds) that a request thread can wait to obtain a server before the request thread returns an exception to the managed-connection pool. The default value is 60 seconds.
    sessionObjectDefaultTimeout [R,W] The default length of time, in seconds, that an object stays in a session. The default value is 1800 seconds (30 minutes). This value must be greater-than-or-equal-to 0.
    sessionQueryObjectTimeout [R,W] The length of time that a login session persists before it times out if a new or modified query is not delivered. This value cannot be less than the cqLoginSessionTimeout value. The default value is 1800 seconds (30 minutes). This value overrides the value that is defined by sessionObjectDefaultTimeout.
    sessionRecordObjectTimeout [R,W] The length of time that a login session persists before it times out if a new or modified record is not delivered. This value cannot be less than the cqLoginSessionTimeout value. The default value is 10,800 seconds (3 hours). This value overrides the value that is defined by sessionObjectDefaultTimeout.
    sessionReaperThreadDelay [R,W] Time delay in seconds for the session reaper thread. Default value is 900 seconds (15 minutes). Range of values is 300 through 1800 seconds. You might want to decrease this value if virtual memory is in high demand. You might want to increase this value if too much CPU is being used.
    totalNumberOfOncrpcServers [R] The number of backend RPC servers that are running in all connection-factory instances.
    totalOncrpcCallCount [R] The number of ONC RPC calls made since the server was started.
    totalWebServiceCallCount [R] The number of web service calls made since the server was started.
    versionNumber [R]
  • CqServerFactoryMBean
    This attribute holds configuration values relevant to the HCL Compass managed-connection factory. The HCL Compass managed-connection factory starts and manages the HCL Compass ONC RPC backend processes that communicate with the HCL Compass core. The attributes in this MBean do not affect general HCL Compass behavior as do some of the HCL Compass attributes in the TeamServerMBean MBean. Rather, the attributes in this MBean control the behavior of the factory and manage the HCL Compass ONC RPC backend processes that it starts. Changes that are made to this MBean take effect immediately for newly started backend processes; you do not have to restart the server processes. Existing backend processes are not affected.
    Table 2. CqServerFactoryMBean attributes

    CqServerFactoryMBean attributes

    MBean attribute Access control Description
    activeHttpSessionThreshold [R,W] The number of active HTTP sessions on an active backend HCL Compass ONC RPC server. If this number is exceeded, it might cause this managed-connection factory to start another backend HCL Compass ONC RPC server. Default is 30.
    cqrpcAbandonedProcessCleanupEnabled [R,W] Indicates whether the HCL Compass Web server starts the cleanup procedure that terminates any abandoned HCL Compass RPC processes. The default is TRUE.
    cqrpcAbandonedProcessCleanupInterval [R,W] The periodic interval, in minutes, that HCL Compass Web server uses to start the cleanup procedure to terminate abandoned HCL Compass RPC processes. The default is 30 minutes. This value must be greater-than-or-equal-to 0. The interval works in the nearest power of 2. A value of 0 indicates that the interval is set to 2.
    maximumActiveServers [R,W] The maximum number of active backend HCL Compass ONC RPC servers that are allowed by this managed-connection factory. The default is 10.
    recycleServerHttpSessionLimi [R,W] The number of HTTP sessions that a backend HCL Compass ONC RPC server processes before the server is recycled by the managed-connection factory. The default is 200. A value of zero indicates that this limit is not checked.
    recycleServerLifetimeLimit [R,W] The maximum lifetime, in seconds, that a backend HCL Compass ONC RPC server can run before the server is recycled by the managed-connection factory. The default is 86,400 seconds (24 hours). A value of zero indicates that this limit is not checked.
    recycleServerOncrpcCallLimit [R,W] The maximum number of ONC RPC requests that a backend HCL Compass ONC RPC server processes before the server is recycled by the managed-connection factory. The default is 100,000. A value of zero indicates that this limit is not checked.
    recyclingPeriod [R,W] The length of time, in seconds, that a recycling backend HCL Compass ONC RPC server is allotted to complete session work before it is terminated by the managed-connection factory. The state of a recycling HCL Compass ONC RPC backend server is 2 (STOPPING). The default is 1800 seconds (30 minutes). This value must be greater than 0.
    remoteChartReportServerHostName [R,W] UNIX Linux The host name of a Windows HCL Compass Web server that is designated to process chart requests. Default value is (empty string/unset).
    remoteChartReportServerPort [R,W] UNIX Linux The port number of a Windows HCL Compass Web server that is designated to process chart requests. The default value is 0.
    serverWorkerThreadCount [R,W] The number of threads that a backend HCL Compass ONC RPC server uses for handling incoming requests. The default is 30.
  • OncrpcServerMBean
    For each ONC RPC backend process that is started by the HCL Compass managed-connection factory, an instance of the CqOncrpcServerMBean process is created. Each MBean contains the values that are defined in the base OncrpcServerMBean process. (The base OncrpcServerMBean is never instantiated.) Each MBean server process runs only while the process that it represents is running on the HCL Compass Web server. When the process terminates, the associated MBean process also terminates. Table 3 describes the base attributes that are in all MBean server processes.
    Table 3. OncrpcServerMBean attributes

    OncrpcServerMBean attributes

    MBean attribute Access control Description
    hostname [R] The name of the host on which the backend ONC RPC server is running.
    oncrpcCalls [R] The total number of ONC RPC calls that the backend ONC RPC server handles.
    port [R] The integer port number on which the backend ONC RPC server is listening.
    serverId [R] The unique ID for the backend ONC RPC server.
    serverStartTime [R] The timestamp that indicates when the backend ONC RPC server started. This value is the number of milliseconds since January 1, 1970, 00:00:00 Greenwich mean time (GMT).
    serverState [R] The current state of the backend ONC RPC server, represented with an integer (0=STOPPED, 1=RUNNING, 2=STOPPING, 3=DEAD).
    serverStoppingTime [R] The timestamp that indicates when the backend ONC RPC server went into the STOPPING (2) state. The value is the number of milliseconds since January 1, 1970, 00:00:00 Greenwich mean time (GMT).
    serverStopTime [R] The timestamp that indicates when the backend ONC RPC server went into the STOPPED (0) or DEAD (3) state. The value is the number of milliseconds since January 1, 1970, 00:00:00 Greenwich mean time (GMT).
    serverType [R] The type of the backend ONC RPC server: HCL Compass.
  • CqOncrpcServerMBean
    For each HCL Compass ONC RPC backend process that is started by the HCL Compass managed-connection factory, an instance of the CqOncrpcServerMBean MBean is created. This instance lives only while the HCL Compass ONC RPC backend process that it represents is running on the HCL Compass Web server. As soon as the process terminates, the MBean that represents the process also terminates.

    The CqOncrpcServerMBean process is an extension to the OncrpcServerMBean process. Each CqOncrpcServerMBean process contains all of the values that are defined by the OncrpcServerMBean process plus the attributes that are described in Table 4.

    Table 4. CqOncrpcServerMBean attributes

    CqOncrpcServerMBean attributes

    MBean attribute Access control Description
    activeHttpSessions [R] The number of active HTTP sessions that the backend HCL Compass ONC RPC server is handling.
    activeStatefulHttpSessions [R] The number of stateful HTTP sessions that the backend HCL Compass ONC RPC server is handling.
    recycleReasonCode [R] The reason code that indicates why the backend HCL Compass ONC RPC server is being recycled. This attribute is an integer value.
    1
    RECYCLE_TIME_LIMIT_EXCEEDED
    2
    ONCRPC_CALL_LIMIT_EXCEEDED
    3
    SESSION_LIMIT_EXCEEDED
    recycleServerHttpSessionLimit [R,W] The maximum number of sessions that the backend HCL Compass ONC RPC server can handle before it is recycled. The default value is set by using the recycleServerHttpSessionLimit attribute value in CqServerFactoryMBean. The value can be set only on a running ONC RPC backend server. All ONC RPC backend server processes are volatile. Setting this value on a running ONC RPC server might fail if the server is terminated by the managed-connection factory.
    totalHttpSessions [R] The number of HTTP sessions that the backend ONC RPC server supports.
    workerThreadCount [R] The number of threads that the backend ONC RPC server uses to process requests.

Examples

Using the wsadmin tool to retrieve and set MBean attributes

This example illustrates Jacl-based commands to start and use the wsadmin tool.

// This section provides sample commands to start and use the wsadmin tool.
// For illustrative purposes, an operating system command prompt is denoted by the
// hash character, "#", and the wsadmin command prompt is denoted by "wsadmin>". 
//
// There are HCL Compass Web server wsadmin tool scripts that provide several convenience 
// methods and functions.  By default, these scripts are located in the following
// directory:  
// On Windows:  
//      "C:\Program Files\HCL\Compass\CM\scripts" 
// 
//
// Open a command prompt and set your default directory to the location of
// the HCL Compass Web server wsadmin tool scripts.  For example: 
//
// On Windows:
# cd "C:\Program Files\HCL\Compass\CM\scripts"
//
// On the UNIX system and Linux:
# cd /opt/compass/common/CM/scripts
//
// Set the WAS_BIN environment variable to the location of the wsadmin tool 
// by using the syntax appropriate for your preferred shell.  For example:
//
// On Windows:
# set WAS_BIN="C:\Program Files\HCL\Compass\eWAS\bin" 

// On the UNIX system and Linux:
# WAS_BIN=/opt/compass/common/eWAS/bin

// Start the wsadmin tool by specifying the HCL Compass Web server profile name.  
// The default HCL Compass Web server profile name is 'cmprofile'.  For example:
//
// On Windows:
# %WAS_BIN%\wsadmin -profileName cmprofile

// On the UNIX system and Linux:
# $WAS_BIN/wsadmin.sh -profileName cmprofile

// The following wsadmin command loads the HCL Compass Web server wsadmin convenience functions:
wsadmin> source teamAdminUtils.jacl

// The next command is an example of how to display some useful HCL Compass Web server commands. 
// The getTeamServer function is useful for establishing a pointer to the top level 
// TeamServerMBean, and will help get and set individual TeamServerMBean attributes.
//
wsadmin> info proc *Team*
    startTeamEAR stopTeamEAR getTeamServer

// The following command displays the available 'dump' commands for quick and 
// easy viewing of the MBean values:
wsadmin> info proc dump*

   dumpAllServers dumpAll dumpTeamServer dumpCcServers dumpCqServerFactory 
   dumpCcServerFactory dumpCqServers


// The next command uses the convenience command 'getTeamServer' to set up the 
// variable 't', which can then be used to access TeamServerMBean attributes:
wsadmin> set t [getTeamServer]

// Retrieve the TeamServerMBean attribute values using the variable 't':
wsadmin> $AdminControl getAttributes $t

{cqServerFactory WebSphere:cell=testhost2Node01Cell,version=6.1.0.0,spec=1.0,name=CqServerFactoryMBeanId,
    mbeanIdentifier=CqServerFactoryMBeanId,type=stp.management.CqServerFactoryMBean,node=testhost2Node01,
    process=server1}

{oncrpcBufferLimit 100}
{cqLoginSessionWaitTimeout 300}
{oncrpcInterruptLimit 1000}
{sessionReaperThreadDelay 900}
{sessionQueryObjectTimeout 1800}
{oncrpcServers {
{cqLoginSessionTimeout 1800}
{cqFulltextSearchRecordHitLimit 100}
{ejbBufferLimit 100}
{sessionRecordObjectTimeout 10800}
{cqFulltextSearchPageSize 25}
{numberOfActiveSessions 0}
{sessionObjectDefaultTimeout 1800}
{maxProcureServerAttempts 6}
{cqFulltextSearchCacheSize 1000}
{maxCqSessionsPerUser 2}
{totalNumberOfOncrpcServers 0}
{numberOfHttpSessionsCreated 0}
{procureServerInterval 60}



// Following is a more convenient way to retrieve all of the TeamServerMBean attributes:
wsadmin> dumpTeamServer

TeamServerMBean Attributes:
====================

{cqServerFactory WebSphere:cell=testhost2Node01Cell,version=6.1.0.0,spec=1.0,name=CqServerFactoryMBeanId,
    mbeanIdentifier=CqServerFactoryMBeanId,type=stp.management.CqServerFactoryMBean,node=testhost2Node01,
    process=server1}


// Other 'get' convenience commands include: getCqServerFactory, getTeamServer 
// and getOncrpcServers.


// The next command sets up the variable 'cq' for accessing the CqServerFactoryMBean
// attributes. Note that the variable 't' defined in a previous command is used to 
// obtain a pointer to the TeamServerMBean's cqServerFactory attribute value; the 
// variable 'cq' can then be used to access the attributes in the CqServerFactoryMBean:
wsadmin> set cq [$AdminControl getAttribute $t cqServerFactory]

// Following is a more convenient way to set up the variable 'cq':
wsadmin>set cq [getCqServerFactory]

// The next command retrieves the CqServerFactoryMBean attribute values using the
// 'cq' variable defined previously:
wsadmin> $AdminControl getAttributes $cq
. . . 

// The following command sets up the variable 'os' to use for accessing the list of 
// ONCRPC server MBeans, each of which represents a specific ONCRPC backend server.  
// The command uses one of the convenience methods defined in the teamAdminUtils.jacl 
// script that was 'sourced' at the beginning of this session:
wsadmin> set os [$AdminControl invoke $t getOncrpcServers]
        .   .   .   

        // A list of the running oncrpc backend servers is displayed. The first 
        // oncrpc server is at index 0 (zero), the second is at index 1, and so on...


// The next command sets up the variable 'o' for accessing the first oncrpc server MBean 
// displayed in the output from the previous command.  This level of MBean attribute 
// access (that is, specific oncrpc server MBeans) is tricky because the backend oncrpc
// server processes are transient and might be dismissed before you can access them.
wsadmin> set o [getOnc 0]      // '0' is the index number of the first backend server
                               //  listed in the output of the previous command. 

// The following command retrieves the MBean attribute values for the CQ oncrpc server 
// defined by the variable 'o':
wsadmin> $AdminControl getAttributes $o
        {workerThreadCount 16}
        {serverState 1}
        {activeStatefulHttpSessions 0}
        {port 3431}
        {oncrpcCalls 7}
        {recycleServerHttpSessionLimit 500}
        {serverId {HCL Compass - 0
        {serverType HCL Compass}
        {hostname testhost2}
        {activeHttpSessions 0}
        {totalHttpSessions 1}


// The next commands set and then get the recycleServerHttpSessionLimit attribute 
// in the CQ oncrpc server defined previously by the variable 'o':
wsadmin> $AdminControl setAttribute $o recycleServerHttpSessionLimit 501

wsadmin> $AdminControl getAttribute $o recycleServerHttpSessionLimit
     501


// The remaining commands show a few more oncrpc server MBean accesses and their output.
// Remember that the list of ONCRPC servers is transient; using the dump commands such
// as dumpCqServers or dumpAllServers is much more convenient:

wsadmin> listOnc
       "WebSphere:cell=testhost2Node02Cell,version=6.1.0.0,spec=1.0,
       name=Compass - 11,mbeanIdentifier=Compass - 11,
       type=stp.management.CqOncrpcServerMBean,node=testhost2Node02,
       process=server1"
       

// Here are examples of what you see when using the convenience dump commands:
wsadmin> dumpAllServers

ONCRPC Server: Compass - 0
============
{workerThreadCount 10}
{serverState 1}
{activeStatefulHttpSessions 0}
{port 3693}
{oncrpcCalls 1}
{recycleServerHttpSessionLimit 500}
{serverStartTime 1215633895763}
{serverId {HCL Compass - 0
{recycleReasonCode 0}
{serverType HCL Compass}
{hostname testhost2}
{activeHttpSessions 0}
{totalHttpSessions 0}


wsadmin> dumpCqServers
CQRPC Server: HCL Compass - 0
===========
{workerThreadCount 10}
{serverState 1}
{activeStatefulHttpSessions 0}
{port 3693}
{oncrpcCalls 1}
{recycleServerHttpSessionLimit 500}
{serverStartTime 1215633895763}
{serverId {HCL Compass - 0
{recycleReasonCode 0}
{serverType HCL Compass}
{hostname duke2}
{activeHttpSessions 0}
{totalHttpSessions 0}


wsadmin> dumpCqServerFactory
CqServerFactoryMBean Attributes:
==========================
{serverWorkerThreadCount 10}
{recycleServerLifetimeLimit 14400}
{recyclingPeriod 3600}
{recycleServerOncrpcCallLimit 500000}
{recycleServerHttpSessionLimit 500}
{maximumActiveServers 4}
{activeHttpSessionThreshold 40}


wsadmin> dumpAll
     // The output of this command is a dump of all of the MBean attribute values, including
     // all of the currently running backend ONCRPC server processes.

Using the wsadmin tool to import and export MBean attributes

Use the wsadmin tool with the HCL Compass Web server import and export convenience commands to import and export, respectively, the MBean attributes. These commands enable retrieving and updating MBean attribute values, and provide a simple way to capture specific configurations. If the HCL Compass Web server is not functioning properly, you can import a previously captured, known-to-work configuration in real time.

You can edit the properties files by using a text editor, and then import and export these files in real time. You can comment out any entries in the properties files that you do not have to import. Be sure to follow the naming conventions for the MBean names and attribute names. To clear a string value when you use the importFile command, specify or leave the value blank in the properties file that you import. Do not leave numeric values blank.

// This wsadmin command loads all of the convenience commands and methods,
// including the importFile and exportToFile commands.  These commands 
// enable retrieving and updating MBean attribute values, and a simple 
// way to capture specific configurations.  If the HCL Compass Web server
// (referred to in previous releases as CM Server) is not functioning
// properly, then you can import a previously captured configuration in
// real time. 
wsadmin> source teamAdminUtils.jacl

// Use the exportToFile command if you want to capture a snapshot of 
// the TeamServerMBean and CqServerFactoryMBean MBeans.  Specify the 
// full path name in which to store the file.  You can edit the resulting
// properties file by using a text editor, and import the file by using
// the importFile command.
// Important: You must use forward slashes in the path name for these commands.
wsadmin> exportToFile C:/temp/CmServer.properties

File "C:/temp/CmServer.properties" does not exist, proceeding with export...
Retrieving MBeans...
Exporting TeamServerMBean.sessionReaperThreadDelay...
Exporting TeamServerMBean.cqLoginSessionTimeout...
Exporting TeamServerMBean.cqLoginSessionWaitTimeout...
Exporting TeamServerMBean.sessionObjectDefaultTimeout...
Exporting TeamServerMBean.sessionQueryObjectTimeout...
Exporting TeamServerMBean.sessionRecordObjectTimeout...
Exporting TeamServerMBean.oncrpcBufferLimit...
Exporting TeamServerMBean.oncrpcInterruptLimit...
Exporting TeamServerMBean.ejbBufferLimit...
Exporting TeamServerMBean.cqFulltextSearchPageSize...
Exporting TeamServerMBean.cqFulltextSearchCacheSize...
Exporting TeamServerMBean.cqFulltextSearchRecordHitLimit...
Exporting TeamServerMBean.procureServerInterval...
Exporting TeamServerMBean.maxProcureServerAttempts...
Exporting TeamServerMBean.maxCqSessionsPerUser...
Exporting CqServerFactoryMBean.serverWorkerThreadCount...
Exporting CqServerFactoryMBean.activeHttpSessionThreshold...
Exporting CqServerFactoryMBean.maximumActiveServers...
Exporting CqServerFactoryMBean.recycleServerHttpSessionLimit...
Exporting CqServerFactoryMBean.recycleServerLifetimeLimit...
Exporting CqServerFactoryMBean.recycleServerOncrpcCallLimit...
Exporting CqServerFactoryMBean.recyclingPeriod...

wsadmin> importFile C:/temp/CmServer.properties

File "C:/temp/CmServer.properties" found, proceeding with import...
Importing value '900' into property sessionReaperThreadDelay in MBean TeamServerMBean
    Old value=900
    New value=900
Importing value '1803' into property cqLoginSessionTimeout in MBean TeamServerMBean
    Old value=1803
    New value=1803
Importing value '300' into property cqLoginSessionWaitTimeout in MBean TeamServerMBean
    Old value=300
    New value=300
Importing value '1800' into property sessionObjectDefaultTimeout in MBean TeamServerMBean
    Old value=1800
    New value=1800
   . . .

// If you try to export to a file that already exists, a time stamp is appended to the
// file name that you specify in the command:
wsadmin> exportToFile C:/temp/CmServer.properties

File "C:/temp/CmServer.properties" already exists; appending date to file name.
exportFilePath is now: C:/temp/CmServer.properties_2008-07-09_16-27-11
Retrieving MBeans...
Exporting TeamServerMBean.sessionReaperThreadDelay...

// Here is what a typical exported file looks like:
C:\> type c:\temp\CmServer.properties
# Export of HCL Compass Web server MBean attributes, created: 2008-07-09_16-22-29
#
#
# TeamServerMBean writable attributes
#
TeamServerMBean.sessionReaperThreadDelay=900
TeamServerMBean.cqLoginSessionTimeout=1803
TeamServerMBean.cqLoginSessionWaitTimeout=300
TeamServerMBean.sessionObjectDefaultTimeout=1800
TeamServerMBean.sessionQueryObjectTimeout=1803
TeamServerMBean.sessionRecordObjectTimeout=10800
TeamServerMBean.oncrpcBufferLimit=100
TeamServerMBean.oncrpcInterruptLimit=1000
TeamServerMBean.ejbBufferLimit=100
TeamServerMBean.cqFulltextSearchPageSize=25
TeamServerMBean.cqFulltextSearchCacheSize=1000
TeamServerMBean.cqFulltextSearchRecordHitLimit=100
TeamServerMBean.procureServerInterval=60
TeamServerMBean.maxProcureServerAttempts=6
TeamServerMBean.maxCqSessionsPerUser=2
#
# CqServerFactoryMBean writable attributes
#
CqServerFactoryMBean.serverWorkerThreadCount=10
CqServerFactoryMBean.activeHttpSessionThreshold=40
CqServerFactoryMBean.maximumActiveServers=4
CqServerFactoryMBean.recycleServerHttpSessionLimit=500
CqServerFactoryMBean.recycleServerLifetimeLimit=14400
CqServerFactoryMBean.recycleServerOncrpcCallLimit=500000
CqServerFactoryMBean.recyclingPeriod=3600