Skip to main content

Network Devices - Offline Ticket Enabling

Summary

This client script aims to set the alert template "△ Custom - Ticket Creation - Offline Network Devices" on the network devices in bulk and also checks the Send Alert when Unit is Down EDF based on a global system property specifying which network device manufacturer(s) are requested.

Image

Sample Run

Image

User Parameter

NameExampleRequiredDescription
Set_Environment1Need to set to 1 for first-time implementationRunning the script with the user parameter Set_Environment as 1 will import System Properties and EDFs needed for the script.

Dependencies

CWM - Automate - Script - Ticket Creation - Offline Network Devices
△ Custom - Ticket Creation - Offline Network Devices

Variables

NameDescription
ManufacturerListThis stores the Manufacturer parameter value provided in the system property 'NetworkDevice_Manufacturer'. If it is not set, then it stores the value as "No Manufacturer Set".

System Properties

NameExampleRequiredDescription
NetworkDevice_ManufacturerMerakiUbiquitiTrue

Extra Data Fields

NameLevelTypeDefaultEditableDescription
Exclude from Offline Network Device TicketingClient-EDFFlag0YesCheck it if you would like to disable a client from Network Device's offline ticketing.
Exclude from Offline Network Device TicketingLocation-EDFFlag0YesCheck it if you would like to disable a location from Network Device's offline ticketing.
Exclude from Offline Network Device TicketingNetworkDevice-EDFFlag0YesCheck it if you would like to disable a Network Device's offline ticketing.
Automate Offline Network Device Ticketing EnabledNetworkDevice-EDFFlag0YesThis EDF was checked via a script after performing the offline ticket enabling and the alert template set to "△ Custom - Ticket Creation - Offline Network Devices".

Client-Level EDF:
Image

Location-Level EDF:
Image

Device-Level EDFs:
Image
Image

Implementation

  1. Import the contents

  2. Reload the system cache
    Image

  3. Configure the solution as follows:

    • Navigate to Automation --> Scripts within the CWA Control Center.
    • Navigate to system dashboard --> Config --> Properties
      • Fill in the NetworkDevice_Manufacturer system property as per partner requirements.
      • Important: Do not proceed with implementing this script unless the consultant provides the type of network devices the partner wants to sync. Contact the consultant to obtain this information.
      • By default, it remains empty
        Image
      • If the partner wants to set offline ticketing for all devices, put "ALL" in the NetworkDevice_Manufacturer system property as shown below:
        Image
      • If the partner wants to set offline ticketing for a particular manufacturer type of network device like Meraki, Ubiquiti, etc., fill in the system property as shown below. Separate each type with a pipe (|).
        Image
      • If the partner wants to remove the offline ticketing from the device script synced earlier, put "Disable" in the system property as shown below:
        Image
    • Navigate to system dashboard --> Management --> Scheduled Client Scripts
    • If the partner wants to exclude any particular device, location, or client from external sync, select the Exclude from Offline Network Device Ticketing EDF respectively on that device, location, or client.

Output

  • Script log