Managing configurations with scripting

Why and when to perform this task

Configuration management scripts use the AdminConfig object to access the repository where configuration information is stored. You can use the AdminConfig object to list configuration objects and their attributes, create configuration objects, modify configuration objects, remove configuration objects, and obtain help.

Steps for this task

  1. Decide how you want to execute the script. If you want to run the script immediately from the command line, enter it surrounded by quotes as a parameter to the wsadmin -c command. To save the script for repeated use, compose it in a file and execute it with the wsadmin -f command. If you want to compose and run the script interactively, issue the wsadmin command without the -c or -f flags. For more information about executing scripts, see Launching scripting clients
  2. Write an AdminConfig script command statement to perform a management task, for example:

    $AdminConfig command

  3. Save the configuration changes with the following command:

    Using Jacl:

    $AdminConfig save

    Use the reset command of the AdminConfig object to undo changes that you made to your workspace since your last save.

Related concepts
Jacl
Related reference
Creating configuration objects using the wsadmin tool
Specifying configuration objects using the wsadmin tool
Configuration management examples with wsadmin
AdminConfig object for scripted administration



Searchable topic ID:   txml_adminconfig
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/txml_adminconfig.html

Library | Support | Terms of Use | Feedback