Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use properties files to manage system configuration > Manage specific configuration objects using properties files


Work with server properties files

We can use properties files to change server properties.

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

Start wsadmin.sh.

To start wsadmin using the Jython language, run...

Use 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 the configuration.

Actions for server properties files. We 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 applyConfigProperties.

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 deleteConfigProperties.

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 applyConfigProperties.

    Run applyConfigProperties 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 deleteConfigProperties.
    AdminTask.deleteConfigProperties('[-propertiesFileName myObjectType.props -reportFileName report.txt]')
    


What to do next

Save the changes to the configuration.
Extract properties files using wsadmin.sh
Create server, cluster, application, or authorization group objects using properties files and wsadmin scripting
Delete server, cluster, application, or authorization group objects using properties files
Extract properties files to troubleshoot the environment using wsadmin.sh
Manage servers and nodes with scripting


Related


PropertiesBasedConfiguration command group using wsadmin.sh

+

Search Tips   |   Advanced Search