Part of a consultants/engineers job unfortunately is to configure things which can be quite repetitive in nature, every time I find something that needs to be done twice I will create a script in whatever language best fits the purpose. It’s also a great way to ensure that you don’t make silly mistakes, other than trying to make your workflow better.
However, when I am configuring Cisco Wireless LAN Controllers with ACL’s I have found another tool, Sublime Text. Sublime Text has a feature called snippets, which basically allow you define custom blocks of code (boiler plate) and use tab completion to complete relevant fields. I won’t spend too much time discussing how it works, as the following blog article explains how it works extremely well: https://web-design-weekly.com/2012/07/03/snippets-in-sublime-text-2/
So the sublime snippets I have to share are:
- Cisco-AireOS-ACL.sublime-snippet – Boiler plate CLI syntax for a simple WLC ACL
- Cisco-AireOS-ISE_POSTURE_REDIRECT_ACL.sublime-snippet – Boiler plate CLI syntax for WLC ACL with ISE POSTURE DISCOVERY Services
- Cisco-AireOS-ISE_POSTURE_REDIRECT_FLEX-ACL.sublime-snippet – Boiler plate CLI syntax for WLC Flex ACL with ISE POSTURE DISCOVERY Services
- Cisco-AireOS-ISE_WEB_AUTH_ACL.sublime-snippet – Boiler plate CLI syntax for WLC ACL with ISE Guest Services
- Cisco-AireOS-WLAN-ISE-dot1x.sublime-snippet – Boiler plate CLI syntax for WLC SSID and settings with dot1x ISE authentication
Remember you will need to download Sublime Text and place the snippets in the following directories:
- OSX: ~/Library/Application Support/Sublime Text 2/Packages/User
- Windows: %APPDATA%\Sublime Text 2
- Linux: ~/.Sublime Text 2
Hope you all find this useful and can use to advantage for creating ACL’s that are consistent every time.