Inspection scripts

Updated at:

The network inspection feature of Cloud Managed Network collects data from your devices, including device status, configuration, and asset information. You can use built-in inspection items and templates or create custom ones. An inspection item defines the type of inspection and its execution schedule. An inspection script is associated with an inspection item and specifies the device vendor and model for the inspection. The execution template of the script determines the information to be collected.

Prerequisites

Procedure

  1. Log on to the Cloud Managed Network console.

  2. In the navigation pane on the left, click Network Inspection > Inspection Scripts.

  3. Click the Add button. In the dialog box that appears, set the following parameters.

    1. Inspection Item Name: Select an existing inspection item to associate with the script. To create a new inspection item, enter a name. The system automatically creates the item.

    2. Cron Expression: Enter the cron expression for the inspection item.

    3. Description: Enter a description for the inspection item.

    4. Vendor: Select the vendor of the device where the inspection script will be executed.

    5. Model: Select the device model from the selected vendor.

    6. Execution Template: A template that provides the structure for an executable inspection script.

    7. Trial Run Device: Select a device to test run the inspection script.

    8. Alerting Rule: Enter the alerting rule for the inspection results.

  4. Click Confirm to create the inspection script. You can then enable the script to start inspection tasks or disable it to stop them.

    1. To modify the cron expression for an inspection item, click Inspection Item Management.

    2. Click the Edit button to modify the inspection item.

      1. Inspection Item Name: The name of the inspection item.

      2. Description: The description of the inspection item.

      3. Cron Expression: The execution schedule for the inspection item.

    Note

    At the scheduled time for an inspection item, the system finds all devices that match the vendor and model specified in the inspection templates. The system then pushes the script template to each matching device for execution. An inspection task is created for each device, and the results are saved in the corresponding task.