Cisco ACI Leaf的show命令匹配多个条件方法egrep
传统NXOS上可以通过管道符过滤2个或的条件
举例:过滤Ethernet.*is 或CRC
N9508# show int e1/1 | include Ethernet.*is|CRC
Ethernet1/1 is up
0 runts 0 giants 0 CRC 0 no buffer
但是在ACI Leaf上报错
Leaf # show int e1/1 | include Ethernet.*is|CRC
bash: CRC: command not found
解决方法
通过egrep方式
leaf101# show interface | egrep "Ethernet1|CRC"
Ethernet1/1 is up (out-of-service)
0 runts 0 giants 0 CRC 0 Stomped CRC 0 no buffer
Ethernet1/2 is up (out-of-service)
0 runts 0 giants 0 CRC 0 Stomped CRC 0 no buffer
Ethernet1/3 is up (out-of-service)
0 runts 0 giants 0 CRC 0 Stomped CRC 0 no buffer

浙公网安备 33010602011771号