Custom Fault Entity Interface
ascend-fd entity <Subcommand>Provides functions related to custom fault entities, including adding, modifying, querying, or deleting custom fault entities, and validating the custom fault entity file custom-ascend-kg-config.json.
Table 1 Subcommand parameters
| Parameter | Abbreviation | Required | Value Type | Description |
|---|---|---|---|---|
--update | -u | Required. --update, --delete, --show, and --check are mutually exclusive, meaning only one can and must be specified. | String | Adds or modifies custom fault entity information in JSON file format. For details about the parameters in the JSON file, see Table 1 Parameters. |
--delete | -d | Required. --update, --delete, --show, and --check are mutually exclusive, meaning only one can and must be specified. | String | Deletes the custom fault entity information corresponding to the specified fault codes. Separate multiple fault codes with spaces. |
--show | -s | Required. --update, --delete, --show, and --check are mutually exclusive, meaning only one can and must be specified. | String | Views custom fault entity information by fault code, with multiple fault codes separated by spaces. If no fault code is specified, all custom fault entity information is queried. |
--check | -c | Required. --update, --delete, --show, and --check are mutually exclusive, meaning only one can and must be specified. | String | Checks the validity of the custom-ascend-kg-config.json file, primarily verifying the validity of the field attributes of each custom fault entity. |
--item | None | Optional | String | Views partial information of a custom fault entity. Separate multiple values with spaces. If no value is specified, the information of the following three values is displayed.
Must be used with the |
--force | -f | Optional | Bool | When this parameter is specified to delete a custom fault entity, no confirmation prompt will appear on the interface. Must be used with the |
--help | -h | Optional | - | Queries usage instructions. |
Example: Add a custom fault entity through a JSON file.
ascend-fd entity -u test_base.json
Updated entity successfully.