12/1/2023 0 Comments Asa grep examples![]() `show vtp status | include Domain Name`Ģ0. `show interface status | include connected`ġ6. `show cdp neighbors | include Device ID`ġ0. `show ip ospf database | include 10.1.1.1`Ĩ. `show running-config | begin router bgp`Ħ. `show ip interface brief | exclude unassigned`ĥ. TPA-SWA#show version | include 3750.*VersionĪs you can see Regular Expressions are powerful and you can do so many things with them. So the line must have both 3750 AND Version. ROM: Bootstrap program is C3750E boot loaderīOOTLDR: C3750E Boot Loader (C3750X-HBOOT-M) Version 12.2(58r)SE1, RELEASE SOFTWARE (fc1)īOS-C3750-SERVER-B uptime is 1 week, 4 days, 19 hours, 58 minutes TPA-SWA#show version | include 3750|VersionĬisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 12.2(55)SE5, RELEASE SOFTWARE (fc1) So the line could have either 3750 OR Version. Search for either 3750 OR Version per line. Hardware is Gigabit Ethernet, address is 1c6a.7ad3.2181 (bia 1c6a.7ad3.2181)ĥ minute input rate 0 bits/sec, 0 packets/secĥ minute output rate 21000 bits/sec, 34 packets/secĠ input errors, 0 CRC, 0 frame, 0 overrun, 0 ignoredĠ input packets with dribble condition detectedĢ8125542 packets output, 2600335977 bytes, 0 underrunsĠ output errors, 0 collisions, 1 interface resets GigabitEthernet1/0/1 is up, line protocol is up (connected) Interface IP-Address OK? Method Status Protocolįind interfaces that have errors: TPA-SWA#sh int | inc (Ethernet)|(error)|(packet) Te2/1/1 up up Nexus 5548 Core Uplink to SW A Te1/0/2įind all IP Enable interfaces: TPA-SWA#show ip interf brief | e unassigned Te1/1/1 up up Nexus 5548 Core Uplink to SW A Te1/0/1 Ip route 172.19.200.0 255.255.255.0 172.18.200.1įind out where something is patched in or uplinked using their description: TPA-SWA#sh interfaces description | inc Nexus You can also do something like this: sh int status | inc ^Te.*connected GigabitEthernet3/0/22 unassigned YES unset up up GigabitEthernet2/0/47 unassigned YES unset up up GigabitEthernet2/0/23 unassigned YES unset up up GigabitEthernet2/0/21 unassigned YES unset up up GigabitEthernet2/0/15 unassigned YES unset up up GigabitEthernet2/0/2 unassigned YES unset up up GigabitEthernet1/1/1 unassigned YES unset up up ![]() ![]() GigabitEthernet1/0/48 unassigned YES unset up up GigabitEthernet1/0/47 unassigned YES unset up up GigabitEthernet1/0/37 unassigned YES unset up up GigabitEthernet1/0/26 unassigned YES unset up up GigabitEthernet1/0/24 unassigned YES unset up up GigabitEthernet1/0/23 unassigned YES unset up up GigabitEthernet1/0/14 unassigned YES unset up up Find all GigabitEthernet ports that are up/up: TPA-SWA#sh ip int br | in ^Giga.*up.*up ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |