R12.1-JA-2025June05

Define Global Variable

Define a global variable and use it to count the shutdown interfaces on the devices.

  1. Build an intent to check the interface state.
    1. Click Add Variable to define global variable directly.

      Information Note: You can also add global variable from the Variable Manager.

    2. Define command diagnosis to parse the interface name and interface state.

    3. When the interface is down, it will be counted to the intent variable all_down_interface.

  2. Use the intent variable all_down_interface defined above to define an intent diagnosis to output the count of shutdown interfaces.