Working with server properties files

You can use properties files to change server properties.

Before you begin

Determine the changes that you want to make to your server configuration or its configuration objects.

Start the wsadmin scripting tool. To start wsadmin using the Jython language, run the wsadmin -lang jython command from the bin directory of the server profile.

About this task

Using a properties file, you can create, modify, or delete a server object and its configuration properties.

Run administrative commands using wsadmin to create or change a properties file for a server, validate the properties, and apply them to your configuration.

Table 1. Actions for server properties files. You can create, modify, and delete server properties.
Action Procedure
create
  1. Run the createPropertiesFileTemplates command to create a server template.
  2. Edit the template create sections and set SKIP=false.
  3. Run the applyConfigProperties command.
modify Follow create and delete steps.
delete
  1. Run the createPropertiesFileTemplates command to create a server template.
  2. Edit the template delete sections and set SKIP=false.
  3. Run the deleteConfigProperties command.

Optionally, you can use interactive mode with the commands:

AdminTask.command_name('-interactive')

Procedure

  1. Run the createPropertiesFileTemplates command to create a server template.
  2. Open the properties file in an editor.
  3. To create server properties, edit the template create sections, set SKIP=false, and run the applyConfigProperties command.

    Running the applyConfigProperties command applies the properties file to the configuration. In this Jython example, the optional -reportFileName parameter produces a report named report.txt:

    AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt'])
  4. To delete server properties, edit the template delete sections, set SKIP=false, and run the deleteConfigProperties command.
    AdminTask.deleteConfigProperties('[-propertiesFileName myObjectType.props -reportFileName report.txt]') 

What to do next

Save the changes to your configuration.

Task topic    

Terms and conditions for information centers | Feedback

Last updated: April 18, 2014 05:01 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-iseries&topic=txml_config_prop_server
File name: txml_config_prop_server.html