這個影片的重點,在於使用正則表達式(Regular Expression)來過濾命令的輸出內容。
影片的內容,不知道對您是否有幫助?歡迎您在文章下方的留言區,或者是YouTube上面,留言讓我知道。
![]() |
| 2012年6月30日的閏秒時鐘截圖。 原始檔案:Wikipedia,Time.gov - official US government work (NIST division)製作 |
... Therefore, I have a list of a few things that should not appear in a clean network:
1. Configuration not saved
2. Router interface down
3. Switch Trunk interface down
4. HSRP/VRRP/GLBP group with only one router
Bits per sec : 9600 Data bits : 8 Parity : none Stop bits : 1 Flow control : none
R1#telnet 1.1.1.1 19 Trying 1.1.1.1, 19 ... Open !"#$%&'()*+,-./0123456789:
Router#show run Building configuration...
Router#show run | include bgp router bgp 1 bgp log-neighbor-changes Router#show run | section bgp router bgp 1 no synchronization bgp log-neighbor-changes network 1.0.0.0 neighbor 2.2.2.2 remote-as 2 no auto-summary Router#show run | begin bgp router bgp 1 no synchronization bgp log-neighbor-changes network 1.0.0.0 neighbor 2.2.2.2 remote-as 2 no auto-summary ! ! ! ip http server no ip http secure-server ! --More--
! Copy Begin
term len 0
show version
show diag
show inventory
show module
show diagbus
show idprom all
! Copy End
33 2 1 0 33 2 1 0
1098765.43210987.65432109.876543210 1098765.43210987.65432109.876543210
00000000.00000000.00000000.00000000, mask 10000000.00000000.00000000.00000000
10000000.00000000.00000000.00000000, mask 10000000.00000000.00000000.00000000
TELNET -F log-file.txt 192.168.1.1
enable
terminal length 0
show run
show start