om_ability_policy.sh
Function
This command is used to set capabilities.
When performing operations on the WebUI, you can use only enabled capabilities. If the corresponding capability is not enabled, run a command to enable it, and restart the service to make configurations take effect.
Capability Description
The capability for containerized application management is enabled by default. If you want to perform other configurations, perform the operations described in this section.
Syntax
- Run the cd /usr/local/mindx/MindXOM/tools command to go to the directory where the script file is stored.
- Run the following commands as required:
- ./om_ability_policy.sh disable_all --on: disables all capabilities.
- ./om_ability_policy.sh allow op: enable a capability. For details about the optional parameters, see Table 1.
- ./om_ability_policy.sh -h (--h, -help, or --help): displays the help information about the main command.
- ./om_ability_policy.sh disable_all -h (or --help): displays the help information about the disable_all subcommand.
- ./om_ability_policy.sh allow -h (or --help): displays the help information about the allow subcommand.
Usage Guidelines
None
Example
Run the cd /usr/local/mindx/MindXOM/tools command to go to the directory where the script file is stored.
- Example 1: Disable all capabilities.
$ Euler1:/usr/local/mindx/MindXOM/tools # ./om_ability_policy.sh disable_all --on
Command output:Write to config file success { "disable_all": true, "allow": { "mef_config": false } }Run the reboot command for the configuration to take effect.
- Example 2: Enable the capability for containerized application management.
Euler1:/usr/local/mindx/MindXOM/tools # ./om_ability_policy.sh allow --mef_config
Command output:Write to config file success { "disable_all": false, "allow": { "mef_config": true } }Run the reboot command for the configuration to take effect.
Parent topic: Command Reference