CCNP TSHOOT Learning Guide/Chapter 3
From Teknologisk videncenter
Contents
Symbols generated in Ping outputs
Symbol | Explanation |
---|---|
! | Indicate a Reply |
. | Timeout |
U | Destination Unreachable |
Q | Source Quench (Destination too busy) |
M | Could not Fragment |
? | Unknown Packet type |
& | Packet Lifetime Exceeded |
Performing packetcaptures
SPAN Config
SW1(config)# <input>monitor session 1 source fastethernet 0/7</input>
SW1(config)# <input>monitor session 1 destination fastethernet 0/8</input>
SW1(config)# <input>end</input>
SW1# <input>show monitor</input>
Session 1
---------
Type : Local Session
Source Ports :
Both : fa0/7
Destination Ports :
Encapsulation : Native
Ingress : Disabled
RSPAN Config
Traffic Source
Monitor traffic on fa0/7 and send to VLAN 20 out of trunk gi0/3
SW1(config)# <input>vlan 20</input>
SW1(config-vlan)# <input>name RSPAN</input>
SW1(config-vlan)# <input>remote-span</input>
SW1(config-vlan)# <input>exit</input>
SW1(config)# <input>monitor session 1 source fastethernet 0/7</input>
SW1(config)# <input>monitor session 1 destination remote vlan 20 reflector-port gi0/3</input>
SW1(config)# <input>end</input>
SW1# <input>show monitor</input>
Session 1
---------
Type : Remote Source Session
Source Ports :
Both : fa0/7
Reflector Port : Gi0/3
Dest RSPAN VLAN : 20
Traffic Destination
Receive traffic on on trunk to remote-span VLAN 20 and send to fa0/12SW1(config)# <input>vlan 20</input>
SW1(config-vlan)# <input>name RSPAN</input>
SW1(config-vlan)# <input>remote-span</input>
SW1(config-vlan)# <input>exit</input>
SW1(config)# <input>monitor session 1 source remote vlan 20</input>
SW1(config)# <input>monitor session 1 destination interface fa0/12</input>
SW1(config)# <input>end</input>
SW1# <input>show monitor</input>
Session 1
---------
Type : Remote Destination Session
Source RSPAN VLAN : 20
Destination ports : fa0/12
Filtering output
Pipeline features
Include statement
Looking at the output below with more than 200 processes running. Its hard to sort out information.
T1#<input>show processes cpu</input>
CPU utilization for five seconds: 5%/0%; one minute: 5%; five minutes: 5%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
1 0 17 0 0.00% 0.00% 0.00% 0 Chunk Manager
2 184 498119 0 0.00% 0.00% 0.00% 0 Load Meter
3 57 249719 0 0.00% 0.00% 0.00% 0 OSPF Hello
4 2036075 295159 6898 0.00% 0.06% 0.05% 0 Check heaps
5 8 4 2000 0.00% 0.00% 0.00% 0 Pool Manager
6 0 2 0 0.00% 0.00% 0.00% 0 Timers
7 642424 3138677 204 0.00% 0.05% 0.00% 0 ARP Input
<notice>...OUTPUT OMITTED...</notice>
201 0 37 0 0.00% 0.00% 0.00% 0 PDU DISPATCHER
202 34 37 918 0.00% 0.00% 0.00% 0 SNMP ENGINE
203 0 1 0 0.00% 0.00% 0.00% 0 SNMP ConfCopyPro
204 7082 19564 361 0.00% 0.00% 0.00% 0 SNMP Traps
205 98261 2959809 33 0.00% 0.00% 0.00% 0 NTP
206 0 17 0 0.00% 0.00% 0.00% 0 hulc cfg mgr mas
207 16502 82 201243 0.00% 0.00% 0.00% 0 hulc running con
If you now what your searching for. Use include - ala. Unix grep to sort lines including text.
T1#<input>show processes cpu | include Check heaps</input>
4 2036226 295180 6898 0.15% 0.06% 0.05% 0 Check heaps
exclude statement
To many uninteresting lines in the output below.
T1#<input>show interfaces status</input>
Port Name Status Vlan Duplex Speed Type
Gi0/1 link to room 111 connected trunk full 1000 10/100/1000BaseTX
Gi0/2 disabled 1 auto auto 10/100/1000BaseTX
Gi0/3 disabled 1 auto auto 10/100/1000BaseTX
Gi0/4 disabled 1 auto auto 10/100/1000BaseTX
Gi0/5 disabled 1 auto auto 10/100/1000BaseTX
Gi0/6 disabled 1 auto auto 10/100/1000BaseTX
Gi0/7 disabled 1 auto auto 10/100/1000BaseTX
Gi0/8 link to room 112 connected trunk full 1000 10/100/1000BaseTX
Gi0/9 link to room 113 connected trunk full 1000 10/100/1000BaseTX
Gi0/10 disabled 1 auto auto 10/100/1000BaseTX
Gi0/11 disabled 1 auto auto 10/100/1000BaseTX
Gi0/12 disabled 1 auto auto 10/100/1000BaseTX
Only show lines not containing disabled
T1#<input>show interfaces status | exclude disabled</input>
Port Name Status Vlan Duplex Speed Type
Gi0/1 link to room 111 connected trunk full 1000 10/100/1000BaseTX
Gi0/8 link to room 112 connected trunk full 1000 10/100/1000BaseTX
Gi0/9 link to room 113 connected trunk full 1000 10/100/1000BaseTX
begin statement
If you know what your'e looking for, you can start the listing there.
T1#<input>sh run | begin router</input>
router ospf 1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
default-information originate
!
Section statement
From IOS version 12.3(2T)
- show run | section router ospf
Regular Expressions
- show processes cpu ! include ^CPU|IP Input
Redirect/append and tee
- show tech-support | redirect tftp://192.168.1.2/show-tech.txt
- show tech-support | append tftp://192.168.1.2/show-tech.txt
- show tech-support | tee tftp://192.168.1.2/show-tech.txt
Show ip Route
- show ip route 172.16.4.0 longer-prefixes