Connecting to FAS via the CLI
- Navigate to the FAS's bin directory e.g.
cd <FAS_INSTALL_DIR>/bin
- Start the JBoss CLI GUI using command below, "ADDRESS" is the address of master host of the FAS cluster
./jboss-cli.sh --controller=<ADDRESS> --gui
View List of application managed by ACF
Navigate to profile-ha -> substem=config you will get option to list-app as shown below:
To “manage” an application
Discover the application’s name using the list-apps command (as above). Then add new app using add option as shown below:
To “unmanage” an application
Navigating to node repesenting app config to be unmanaged ans selecting remove option will unmanaged an application as shown below:
To view a list of properties exposed by the application
Navigate to application config node and you will find option to "describe", which will provide you with list of properties:
To validate a property
Navigate to application config node you will find option to validate, add property name and value as shown in CLI command below
/profile=ha/subsystem=config/application=<ApplicationName>/property=<PropertyName>:validate(value=<newValue>)
where the <PropertyName> is replaced with one of the properties returned from the describe() method above.
The outcome of the validation (success, or failed and a reason) will be returned in the response.
To add a property
Navigate to the application config node you will find option to add property on property=* node, as shown below:
To remove a property
Navigate to the property to be removed in app config and you wil find the option to remove as shown beow:
To save the changes
When all required changes have been made to the properties they can published; this pushes the changes to FAS server processes.
First, it is recommended that you validate the application as a whole, by selecting application and using validate command. Assuming that the application is still valid, publish the changes using publish command as shown below:
Comments
0 comments
Please sign in to leave a comment.