Basic Output
Basic output
The Basic output node provides built-in functions to analyze and display table data, such as highlight devices with particular configurations on a map, drawing devices on a map, creating an alert when a predefined condition was met, creating CSV report, and setting device properties.
Example: Drawing notes to neighbor interfaces to show mismatched MTU
The Basic output node consists of two parts:
- Condition — used to define conditions to trigger subsequent actions.
- Action — used to define the actions to take when the conditions are satisfied.
Defining conditions
- Point to the table that you want to analyze the variables.
- Click the
icon and extend a Basic node from the table.
- At the Output node, click New Condition. The Define Condition dialog opens.
Tip: The system creates a True condition by default, which means always executing the subsequent actions. If multiple conditions exist, the default condition is only executed when all other conditions are not satisfied. - Enter a meaningful condition name.
- Select a variable and operator from the drop-down lists, then enter the value.
- Repeat to add more conditions. You can use a Boolean expression to set the relationship between the added conditions, such as A and B, and A or B.
- Click OK.
Defining actions
- At the Basic output node, specify the execution logic to poll the table rows. The Qapp automatically selects an execution logic according to table data type by default.
- Execute by rows — execute the basic output node by table rows. For interface-level data or multiple-instance data, this option is selected.
- Execute once — execute the basic output only once. For single-instance data or device-level data in an attribute table, this option is selected.
- Select an action. Point to the Output node, click the
icon, select a condition, and select an action from the Action Node list.
Tip: You can add multiple actions in a Canvas, and these actions will be executed based on the sequence order that you add the actions.
- Alert
Generate alerts about a device or device interface when the device or interface metrics meet the predefined condition. There are two types of alerts. - Device Alert
Used to define an alert about a device.
- Select the Device Alert check box.
- Select the device variable ($_device by default) from the Select Device drop-down menu.
- Enter a name in the Alert Name field.
- Select the alert level and enter the alert content in the Alert field. The alert content supports the call of variables. To call a variable, enter $ and all variables available prompt in a list.
Action Definition Sample:
Output Result Sample:
- Interface Alert
Used to define alerts about device interfaces.
- Select the Interface Alert check box.
- Select the device variable ($_device by default) from the Select Device drop-down menu and select the interface variable.
- Enter a name in the Alert Name field.
- Select the alert level and enter the alert content in the Alert field. The alert content supports the call of variables. To call a variable, enter $ and all variables available prompt in a list.
Message
Print customized messages when the predefined conditions are met.
- Enter a name for the Message node. By default, the name is Message1.
- Enter a description of the node in the Description field.
- Select the message level and enter the message in the Message field.
Message Definition Sample:
Message Output Sample
- Highlight MapHighlight devices, device interfaces or neighbor devices on a map when the predefined conditions are met.There are three types of highlights:
- Highlight devices
Used to highlight devices on a map.
- Check the Highlight Device check box.
- Select the device variable ($_device by default) from the Device drop-down menu.
- Enter a legend name for the highlight in the Legend field, such as OSPF. The legend field supports variables. Enter $ to pop up all variables available in a list.
Message Definition Sample:
Message Output SampleNote: The Highlight Map function only works on devices on a map, so make sure that the target devices you will highlight are on the map at runtime.
- Draw Note
Generate notes attached to devices or interfaces on a map. There are three types of notes: - Map Note
Used to add a note to a map.
- Check the Map Note check box.
- Enter a title for the note content.
- Enter the note content in the Content field.
Note Definition Sample:
Note Output Sample: - Click Advanced to configure more parameters.
Parameter Description Font Size Specify the font size. The default value is 14. Align Specify the alignment direction. The default option is Left. Forecolor Specify the forecolor for the note box. Background Color Specify the background for the note box. Border Color Specify the border color for the note box. Note Type Specify how to display new map notes for recurring execution.
- Append — retain the existing notes and append new notes behind.
- Overwrite — remove the existing notes and display the new notes only.
- History — retain the first note only (remove others) and append new notes behind.
Note View Select whether to expand or collapse the note on the map.
- Draw Device
Draw devices or interfaces on a map. - Draw Device Group
Used to draw a device on a map.
- Check the Draw Device check box.
- Select the device variable ($_device by default) from the Device drop-down menu.
- Select a topology type based on your actual device layer.
- Select whether to enable the auto link on the map. If enabled, two devices will be automatically linked together when they are neighbors.
- Draw Interface
Used to draw device interfaces on a map.
- Check the Draw Interface check box.
- Select the device variable ($_device by default) from the Device drop-down menu.
- Select the device variable ($_intf by default) from the Interface drop-down menu.
Draw Hop
Used to draw a device and its next hop.
- Check the Draw Hop check box.
- Select the source device ($_device by default) from the Source Device drop-down menu.
- Select the destination device (or next-hop device) from the Destination Device drop-down menu.
- Enter a text to be displayed on the link in the Annotation field.
- Device Property
Populate the value of a device or interface property in the Device Details pane. - Device property
Populate the value of a device or interface property in the Device Details pane.
- Device property
Populate device-level property value.
- Check the Device Property check box.
- Select the device variable ($_device by default) from the Device drop-down menu.
- Click Add and select your interested device property
Property Definition Sample:
Property Output Sample:
- Interface Property
Populate interface property value.
- Check the Device Property check box.
- Select the device variable ($_device by default) from the Device drop-down menu.
- Select the interface variable ($_intf by default) from the Interface drop-down menu and select the interface type.
- Click Add and select your interested interface property.
- Module Property
Populate module property value.
- Check the Module Property check box.
- Select the device variable ($_device by default) from the Device drop-down menu.
- Select the module variable from the Module drop-down menu.
- Click Add and select your interested module property.
- Export Report
Export variables to CSV file.
Click the CSV Export node and configure the settings:- Select the variables that you want to export from the Export Variables drop-down menu.
- Enter a name for the exported report file.
Report Definition Sample:
Report Output Sample: