ACLI Day

There are powerful terminal emulators out there and it is important to find one that suits your way of working.

I’ve decided to use ACLI more regularly to organise my work especially when I have to login to many devices in one day. I find the ACLI tool created by one of my X work colleagues at Avaya is a powerful and free tool for managing switches. The advance grep functionality is amazing and allows me to nail in on specific entries from MAC tables to IP routing tables with a simple one line show command. Or pull out the VLAN configuration for multiple VLANs from the running config which also gets other VLAN specific configuration outside of the VLAN interface.

VSP-1:1(config-if)#% show run -bi ||vlan 500,501
config terminal
vlan create 500 type port-mstprstp 0
vlan members 500 1/5 portmember
interface Vlan 500
ip address 172.19.21.2 255.255.255.128 2
exit
vlan create 501 type port-mstprstp 0
vlan members 501 1/6 portmember
interface Vlan 501
ip address 172.19.21.130 255.255.255.128 3
exit
interface GigabitEthernet 1/5
default-vlan-id 500
exit
end

Options: -b no comments; -i indent; || context aware grep (keeps banner and summary in show commands); !! negate

Can paste a list of command lines into the command line and if one produces an error (maybe because it exists already) then check with @resume buffer command. To continue pasting the contents of the buffer type @resume. Carry on until the buffer is empty.

Search IP routing table for all routes beginning 172.19.21 with next-hop 172.19.21.2.

VSP-1:1(config)#% show ip route ||172.19.21||172.19.21.2
************************************************************************************
Command Execution Time: Sun Apr 07 17:32:18 2024 UTC
************************************************************************************
======================================================================
IP Route – GlobalRouter
======================================================================
NH INTER
DST MASK NEXT VRF/ISID COST FACE PROT AGE TYPE PRF
———————————————————————————————————-
172.19.21.0 255.255.255.128 172.19.21.2 – 1 500 LOC 0 DB 0

2 out of 2 Total Num of Route Entries, 2 Total Num of Dest Networks displayed.
acli.pl: Displayed Record Count = 1
————————————————————————————————————

There are other features of ACLI which can help with sourcing scripts, alias commands that allow shortened custom commands, the ability to compare command output across multiple linked tabs plus so much more.

https://github.com/lgastevens/ACLI-terminal

2 thoughts on “ACLI Day

Leave a reply to avayarob Cancel reply