Does anyone know how to search command output based on more than one condition? eg. sh ip route | inc 10.10. | exc ATM ? Of course the eg. doesn't work. Just need to know how to issue conditional searches. Can regexp be used?
Obviously it depends on your IOS to some extent. The main problem seems to be that there is not negation character for a string in the Cisco regular expressions on the IOS (you can negate a single character but that is not much use here) so it is diffcult to say include and then exclude in a regular expression.
The best i seem to be able to do is something like the following:-
DC-BBP-F00-DS1#sh ip ro | include 10.231.198
C 10.231.198.0/25 is directly connected, Vlan61
C 10.231.198.224/28 is directly connected, Vlan70
C 10.231.198.240/28 is directly connected, Vlan71
To exclude Vlan61 from the output you would need to list all the other interfaces ie.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...