R12.1-JA-2025June05
Define Global Variable
Define a global variable and use it to count the shutdown interfaces on the devices.
- Build an intent to check the interface state.
- Click Add Variable to define global variable directly.
Note: You can also add global variable from the Variable Manager. - Define command diagnosis to parse the interface name and interface state.
- When the interface is down, it will be counted to the intent variable all_down_interface.
- Click Add Variable to define global variable directly.
- Use the intent variable all_down_interface defined above to define an intent diagnosis to output the count of shutdown interfaces.