The Syntax for Defining Action Input
The action input for each recommended automation is script-based. When you define a recommended automation in a data view template, the system will generate a JSON script to visualize the default or pre-defined input of the action. To ensure actions can run precisely to meet your expectations, you can customize input parameters in the script, such as data source for data retrieval, thresholds for alerts, and so on.
The built-in syntax can be used to define inputs for the following actions:
- Data View Template
- Qapp
- Gapp
- Execute CLI Command
- Compare Data
- Verify Application
- SPOG URL
- View Device Data
- Ping
- Traceroute
- Path
- Overall Health View
Data View Template
The "Data View Template" action is used to apply a data view template to a map. Once applied, the action will be documented in a runbook.
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for a Data View Template.
Parameter | Type | Description | Option Values |
data_source | Object | An object created by NetBrain to contain all settings related to the data source for this Data View Template. | N/A |
type | Number | The source to retrieve data. |
By default, the value defined in this Data View Template is used. |
frequency | Object | An object created by NetBrain to contain all frequency settings for this Data View Template. Note: This object and its included parameters are only required when the type is set to 2. | N/A |
interval | Number | The interval to retrieve data. Unit: minutes. | An integer or a decimal (rounding to two decimal places), larger than 0 and less than or equal to 3600. By default, the value defined in this Data View Template is used. |
times | Number | The number of times for data retrieval. | "Null" or an integer between 1 and 1000. By default, the value defined in this Data View Template is used. |
input_variables | Object | Include parameters for input variables that are pre-defined in this Data View Template. Note: This object is only available when input variables are pre-defined in this Data View Template. | N/A |
Qapp/Overall Health Monitor
The "Qapp" or "Overall Health Monitor" action is used to run a Qapp on a map. The action node will be documented in a runbook.
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for a Qapp, including the Overall Health Monitor Qapp.
Parameter | Type | Description | Option Values |
data_source | Object | An object created by NetBrain, containing all settings related to the data source. | N/A |
type | Number | The source to retrieve data. |
By default, the value defined in this Qapp is used. |
frequency | Object | An object created by NetBrain to contain all frequency settings for this Qapp. Note: This object and its included parameters are only required when the type is set to 2. | N/A |
interval | Number | The interval to retrieve data. Unit: minutes. | An integer or a decimal (rounding to two decimal places), larger than 0 and less than or equal to 3600. By default, the value defined in this Qapp is used. |
times | Number | The number of times for data retrieval. | "Null" or an integer between 1 and 1000. By default, the value defined in this Qapp is used. |
threshold | Object | Include parameters for thresholds that are pre-defined in this Qapp. Note: This object is only available when thresholds are pre-defined in this Qapp. | N/A |
input_variables | Object | Include parameters for input variables that are pre-defined in this Qapp. Note: This object is only available when input variables are pre-defined in this Qapp. | N/A |
Gapp
The "Gapp" action is used to run a Gapp on a map. The action node will be documented in a runbook.
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for a Gapp.
Parameter | Type | Description | Option Values |
data_source | Object | An object created by NetBrain, containing all settings related to the data source. | N/A |
type | Number | The source to retrieve data. |
By default, the value is 1. |
frequency | Object | An object created by NetBrain to contain all frequency settings for this Gapp. Note: This parameter is only required when the type is set to 2. | N/A |
interval | Number | The interval to retrieve data. Unit: minutes. | An integer or a decimal (rounding to two decimal places), larger than 0 and less than or equal to 3600. By default, the value is 2. |
times | Number | The number of times for data retrieval. | "Null" or an integer between 1 and 1000. Tip: "Null" means "unlimited". |
qapp_nodes | Array<Object> | An object created by NetBrain to contain the information about each Qapp referenced in this Gapp. Note: This object is only required when a Qapp contains thresholds or input variables. | N/A |
qapp_nodes_id | String | The unique Qapp ID in this Gapp. | Note: Keep the default value as it is. |
qapp_path | String | The location of this Qapp file. | Note: Keep the default value as it is. |
threshold | Object | An object created by NetBrain to contain all threshold settings for this Gapp. Note: This object is only available when thresholds are pre-defined in this Gapp. | N/A |
input_variables | Object | An object created by NetBrain to contain all input settings for this Gapp. Note: This object is only available when input variables are pre-defined in this Gapp. | N/A |
Execute CLI Commands
The "Execute CLI Commands" action is used to issue CLI commands to devices on a map. The action node will be documented in a runbook.
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for executing CLI commands.
Parameter | Type | Description |
commands | Array<String> | Commands to be executed. |
templates | Array<String> | The location of referenced command templates. Note: The referenced command templates must exist in the system. |
Compare Data
The "Compare Data" action compares various data between two data sets. The action node will be documented in a runbook.
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for comparing device data.
Parameter | Type | Description | Option Values |
data_set1 | Number | The data source for dataset1. |
The default value is 0. |
data_set2 | Number | The data source for dataset2. |
The default value is 1. |
compare_data | Array<String> | Include the data types for comparison. |
|
Verify Application
The "Verify Application" action is used to verify applications and paths. The action node will be documented in a runbook.
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for verifying applications.
Parameter | Type | Description | Option Values |
data_source | Number | The source to retrieve data. |
The default value is 1. |
top_relevant_application | Number | The count of the most relevant applications based on application weight. | An integer between 1 and 100. The default value is 3. |
top_path_of_application | Number | The count of the most relevant paths in each application based on path weight. | An integer between 1 and 100. The default value is 3. |
use_config_in_current_baseline | Bool | Determines whether to use the configuration file in the current baseline. | The default value is true. |
l3_active_path | Bool | Determines whether to calculate L3 Active Path. | The default value is false. |
use_cli_with_arguments | Bool | Determines whether to use CLI commands with arguments. | The default value is false. |
calculate_when_deny_by_acl | Bool | Determines whether to continue calculating path with ACL deny. | The default value is false. |
calculate_when_deny_by_policy | Bool | Determines whether to continue calculating path with policy deny. | The default value is false. |
path_fix_up | Bool | Determines whether to enable Path fix-up rules. | The default value is true. |
SPOG URL
The "SPOG URL" action is used to generate an URL displayed on a data view position to redirect to the third-party systems.
![]() |
Note: This recommended automation is only available at the device level. |
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for SPOG URL.
Parameter | Type | Description | Option Values |
customized_variables | Object | A placeholder in SPOG URL to feed different values for different data units. Note: This object is only available when at least one customized variable is pre-defined in this SPOG URL. | N/A |
link_on_columns | Array<String> | The name of a table column where the SPOG URL will be displayed. | N/A |
View Device Data
The "View Device Data" action is used to launch the view of device data, including configurations and various data tables.
![]() |
Note: This recommended automation is only available at the device level. |
Code |
{ |
The following parameter can be used in the JSON string to define the input for viewing configuration files.
Parameter | Type | Description | Option Values |
filter | String | A configuration filter. | Non-empty string. The default value is Full Configuration. |
JSON Example for Route Table, ARP Table, BGP-Advertised Route Table, NCT Table:
Code |
{ |
The following parameter can be used in the JSON string to define the input for viewing data tables.
![]() |
Note: Input syntax does not apply to MAC Table and NDP Table. |
Parameter | Type | Description | Option Values |
sub_name | String | The sub name of the table. | Any string (empty string is allowed).
|
Ping
The "Ping" action is used to ping a destination device from a source device. This action will be documented in a runbook.
![]() |
Note: This recommended automation is only available at the device level. |
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for Ping.
Parameter | Type | Description | Option Values |
source.type | Number | The type of the source device. |
The default value is 0. |
source.device | String | The device/DNS name, or IP address of the source device when source.type is set to 1. Note: If source.type is set to 0, the configured value of source.device will be ignored and Front Server will be auto-selected. | Either a non-empty string or "$this". The default value is $this, which represents the current device. |
source.interface | String | The interface name or IP address of the source device when source.type is set to 1. Note: If source.type is set to 0, the configured value of source.interface will be ignored. | An interface name or an interface IP address. It also supports a combination of interface name and IP address (separated by space). The default value is null, which represents auto-selected. |
destination.device | String | The device/DNS name, or IP address of the destination device. | Either a non-empty string or "$this". The default value is $this, which represents the current device. |
destination.interface | String | The interface name or IP address of the destination device. | An interface name or an interface IP address. It also supports a combination of interface name and IP address (separated by space). The default value is null, which represents Management IP. |
timeout | Number | The timeout threshold for no reply. | An integer between 0 and 3600. The default value is 2 seconds. |
packet_size | Number | The packet size for the echo. | An integer between 36 and 18024. The default value is 64 bytes. |
packet_count | Number | The packet count for the echo. | An integer between 1 and 1024. The default value is 5. |
no_fragment | Bool | Judge whether no fragment is required. | The default value is false. |
Traceroute
The "Traceroute" action is used to trace routes from a source device to a destination device. This action will be documented in a runbook.
![]() |
Note: This recommended automation is only available at the device level. |
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for Traceroute.
Parameter | Type | Description | Option Values |
source.type | Number | The type of the source device. |
The default value is 0. |
source.device | String | The device/DNS name, or IP address of the source device when source.type is set to 1. Note: If source.type is set to 0, the configured value of source.device will be ignored and Front Server will be auto-selected. | Either a non-empty string or "$this". The default value is $this, which represents the current device. |
source.interface | String | The interface name or IP address of the source device when source.type is set to 1. Note: If source.type is set to 0, the configured value of source.interface will be ignored. | An interface name or interface IP address. It also supports a combination of interface name and IP address (separated by space). The default value is null, which represents auto-selected. |
destination.device | String | The device/DNS name, or IP address of the destination device. | Either a non-empty string or "$this". The default value is $this, which represents the current device. |
destination.interface | String | The interface name or IP address of the destination device. | An interface name or an interface IP address. It also supports a combination of interface name and IP address (separated by space). The default value is null, which represents Management IP. |
timeout | Number | The timeout threshold for no reply. | An integer between 1 and 3600. The default value is 3 seconds. |
max_hops | Number | The maximum number of hops. | An integer between 1 and 100. The default value is 30. |
Calculate Path
The "Calculate Path" action is used to calculate a traffic path from a source device to a destination device. This action will be documented in a runbook.
![]() |
Note: This recommended automation is only available at the device level. |
JSON Example:
Code |
{ |
The following parameters can be used in the JSON string to define the input for path calculation.
Parameter | Type | Description | Option Values |
protocol | String | The designated protocol for path calculation. | The default value is IPv4. |
source.device | String | The device/DNS name, or IP address of source device. | A non-empty string or "$this". The default value is $this, which represents the current device. |
source.port | Number | The port number of the source device. Note: This parameter is only required when the designated protocol requires a port number. | An integer between 0 and 65535. The default value is 0. |
destination.device | String | The device/DNS name, or IP address of the destination device. | A non-empty string or "$this". The default value is $this, which represents the current device. |
destination.port | Number | The port number of the destination device. Note: This parameter is only required when the designated protocol requires a port number. | An integer between 0 and 65535. The default value is 0. |
direction | Number | The direction for path calculation. |
The default value is 1. |
data_source | Number | The source to retrieve data. |
The default value is 1. |
use_config_in_current_baseline | Bool | Judge whether to use the configuration file in the current baseline. | The default value is true. |
l3_active_path | Bool | Judge whether to calculate L3 Active Path. | The default value is false. |
use_cli_with_arguments | Bool | Judge whether to use CLI commands with arguments. | The default value is false. |
calculate_when_deny_by_acl | Bool | Judge whether to continue calculating path with ACL deny. | The default value is false. |
calculate_when_deny_by_policy | Bool | Judge whether to continue calculating path with policy deny. | The default value is false. |
path_fix_up | Bool | Judge whether to enable Path fix-up rules. | The default value is true. |
Overall Health View
The "Overall Health View" action is used to display overall health info. This action will be documented in a runbook.
![]() |
Note: This recommended automation is only available at the device level. |
JSON Example:
Code |
Overall Health View: |
The following parameters can be used in the JSON string to define the input for the Overall Health View action.
Parameter | Type | Description | Option Values |
data_source | Object | An object created by NetBrain to contain all settings related to the data source for this Overall Health View. | N/A |
type | Number | The source to retrieve data. |
By default, the value defined in this Overall Health View is used. |
frequency | Object | An object created by NetBrain to contain all frequency settings for this Overall Health View. Note: This object and its included parameters are only required when the type is set to 2. | N/A |
interval | Number | The interval to retrieve data. Unit: minutes. | An integer or a decimal (rounding to two decimal places), larger than 0 and less than or equal to 3600. By default, the value defined in this Overall Health View is used. |
times | Number | The number of times for data retrieval. | "Null" or an integer between 1 and 1000. By default, the value defined in this Overall Health View is used. |