Running administrative commands using properties files
Use the wsadmin tool to run an existing administrative command using properties file based configuration. The command must not contain a parameter that uses a complex data type. Supported parameter types are basic types such as String, Long, Integer, Float, Double, Boolean, Character, Short, Byte, URL, and ObjectName, and complex types such as Array of basic types, Properties, DownLoadFile, and UpLoadFile.
Before you begin
Determine the administrative command that you want to run. Ensure that all parameters in the command use only a supported data type.
About this task
You can extract the properties that are required to run a command using the createPropertiesFileTemplates command. Specify GenericType for the configType parameter and a commandName option.
After extracting a properties file for a command, edit the properties file as needed, and then validate and apply the properties file.
AdminTask.command_name('-interactive')
Evitar Problemas: Commands identified
in the properties file are run twice (as a default) when you use
the applyConfigProperties command. The first
command run occurs during validation and a second command run occurs
if the validation is successful.Some commands cannot run twice successfully, such as commands that immediately update passwords. This condition causes an error in running the commands twice. You can avoid this error possibility by running the applyConfigProperties command and using the -validate false option.
gotchaProcedure
Results
The administrative command runs and applies the properties file.
What to do next
Save the changes to your configuration.
Tópico de Tarefa