Skip to content

Commit 7af9f67

Browse files
authored
Update huawei_vrp_display_interface.textfsm (#1608)
1 parent 32b223d commit 7af9f67

3 files changed

Lines changed: 347 additions & 0 deletions

File tree

ntc_templates/templates/huawei_vrp_display_interface.textfsm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Start
2828
^${PORT_TYPE}\s+Port,\s*The\s+Maximum\s+Transmit\s+Unit\s+is\s+${MTU}
2929
^${PORT_TYPE}\s+Port,(\s+PVID\s+:\s*${PVID},)?(\s*[^,]+,){1,}(\s+The\s+Maximum\s+(Frame\s+Length|Transmit\s+Unit)\s+is\s+${MTU})?
3030
^PVID\s*:\s+${PVID},(\s*[^,]+,){0,}\s+The\s+Maximum\s+Frame\s+Length\s+is\s+${MTU}
31+
^Internet\s+Address\s+is\s+allocated\s+by\s+DHCP,\s+${INTERNET_ADDRESS}\s*$$
3132
^Internet\s+Address\s+is\s+negotiated,\s+${INTERNET_ADDRESS}\s*$$
3233
^Internet\s+Address\s+is\s+${INTERNET_ADDRESS}\s*$$
3334
^.*,\s+Hardware\s+address\s+is\s+${HARDWARE_ADDRESS}\s*$$
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
GigabitEthernet0/0/0 current state : UP
2+
Line protocol current state : UP
3+
Last line protocol up time : 2024-02-08 16:30:21
4+
Description:WAN
5+
Route Port,The Maximum Transmit Unit is 1500
6+
Internet Address is allocated by DHCP, 192.168.77.54/24
7+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 5000-001c-0000
8+
Last physical up time : 2024-02-08 16:30:16
9+
Last physical down time : 2024-02-08 16:30:03
10+
Current system time: 2024-02-08 16:38:46
11+
Last 300 seconds input rate 40 bits/sec, 0 packets/sec
12+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
13+
Input peak rate 552 bits/sec,Record time: 2024-02-08 16:30:36
14+
Output peak rate 832 bits/sec,Record time: 2024-02-08 16:30:36
15+
16+
Input: 24 packets, 4936 bytes
17+
Discard: 0, Total Error: 0
18+
19+
Output: 8 packets, 1012 bytes
20+
Discard: 0, Total Error: 0
21+
22+
Input bandwidth utilization threshold : 100.00%
23+
Output bandwidth utilization threshold: 100.00%
24+
Input bandwidth utilization : --
25+
Output bandwidth utilization : --
26+
27+
GigabitEthernet0/0/1 current state : UP
28+
Line protocol current state : UP
29+
Last line protocol up time : 2024-02-08 16:30:16
30+
Description:LAN
31+
Route Port,The Maximum Transmit Unit is 1500
32+
Internet Address is 10.1.1.2/30
33+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 5000-001c-0001
34+
Last physical up time : 2024-02-08 16:30:16
35+
Last physical down time : 2024-02-08 16:30:03
36+
Current system time: 2024-02-08 16:38:47
37+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
38+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
39+
Input peak rate 0 bits/sec,Record time: -
40+
Output peak rate 48 bits/sec,Record time: 2024-02-08 16:30:36
41+
42+
Input: 0 packets, 0 bytes
43+
Discard: 0, Total Error: 0
44+
45+
Output: 1 packets, 56 bytes
46+
Discard: 0, Total Error: 0
47+
48+
Input bandwidth utilization threshold : 100.00%
49+
Output bandwidth utilization threshold: 100.00%
50+
Input bandwidth utilization : --
51+
Output bandwidth utilization : --
52+
53+
GigabitEthernet0/0/2 current state : UP
54+
Line protocol current state : DOWN
55+
Description:HUAWEI, AR Series, GigabitEthernet0/0/2 Interface
56+
Route Port,The Maximum Transmit Unit is 1500
57+
Internet protocol processing : disabled
58+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 5000-001c-0002
59+
Last physical up time : 2024-02-08 16:30:16
60+
Last physical down time : 2024-02-08 16:30:03
61+
Current system time: 2024-02-08 16:38:50
62+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
63+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
64+
Input peak rate 0 bits/sec,Record time: -
65+
Output peak rate 0 bits/sec,Record time: -
66+
67+
Input: 0 packets, 0 bytes
68+
Discard: 0, Total Error: 0
69+
70+
Output: 0 packets, 0 bytes
71+
Discard: 0, Total Error: 0
72+
73+
Input bandwidth utilization threshold : 100.00%
74+
Output bandwidth utilization threshold: 100.00%
75+
Input bandwidth utilization : --
76+
Output bandwidth utilization : --
77+
78+
GigabitEthernet0/0/3 current state : UP
79+
Line protocol current state : DOWN
80+
Description:HUAWEI, AR Series, GigabitEthernet0/0/3 Interface
81+
Route Port,The Maximum Transmit Unit is 1500
82+
Internet protocol processing : disabled
83+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 5000-001c-0003
84+
Last physical up time : 2024-02-08 16:30:16
85+
Last physical down time : 2024-02-08 16:30:03
86+
Current system time: 2024-02-08 16:38:51
87+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
88+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
89+
Input peak rate 0 bits/sec,Record time: -
90+
Output peak rate 0 bits/sec,Record time: -
91+
92+
Input: 0 packets, 0 bytes
93+
Discard: 0, Total Error: 0
94+
95+
Output: 0 packets, 0 bytes
96+
Discard: 0, Total Error: 0
97+
98+
Input bandwidth utilization threshold : 100.00%
99+
Output bandwidth utilization threshold: 100.00%
100+
Input bandwidth utilization : --
101+
Output bandwidth utilization : --
102+
103+
GigabitEthernet0/0/4 current state : UP
104+
Line protocol current state : DOWN
105+
Description:HUAWEI, AR Series, GigabitEthernet0/0/4 Interface
106+
Route Port,The Maximum Transmit Unit is 1500
107+
Internet protocol processing : disabled
108+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 5000-001c-0004
109+
Last physical up time : 2024-02-08 16:30:16
110+
Last physical down time : 2024-02-08 16:30:03
111+
Current system time: 2024-02-08 16:38:51
112+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
113+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
114+
Input peak rate 0 bits/sec,Record time: -
115+
Output peak rate 0 bits/sec,Record time: -
116+
117+
Input: 0 packets, 0 bytes
118+
Discard: 0, Total Error: 0
119+
120+
Output: 0 packets, 0 bytes
121+
Discard: 0, Total Error: 0
122+
123+
Input bandwidth utilization threshold : 100.00%
124+
Output bandwidth utilization threshold: 100.00%
125+
Input bandwidth utilization : --
126+
Output bandwidth utilization : --
127+
128+
GigabitEthernet0/0/5 current state : UP
129+
Line protocol current state : DOWN
130+
Description:HUAWEI, AR Series, GigabitEthernet0/0/5 Interface
131+
Route Port,The Maximum Transmit Unit is 1500
132+
Internet protocol processing : disabled
133+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 5000-001c-0005
134+
Last physical up time : 2024-02-08 16:30:16
135+
Last physical down time : 2024-02-08 16:30:03
136+
Current system time: 2024-02-08 16:38:51
137+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
138+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
139+
Input peak rate 0 bits/sec,Record time: -
140+
Output peak rate 0 bits/sec,Record time: -
141+
142+
Input: 0 packets, 0 bytes
143+
Discard: 0, Total Error: 0
144+
145+
Output: 0 packets, 0 bytes
146+
Discard: 0, Total Error: 0
147+
148+
Input bandwidth utilization threshold : 100.00%
149+
Output bandwidth utilization threshold: 100.00%
150+
Input bandwidth utilization : --
151+
Output bandwidth utilization : --
152+
153+
GigabitEthernet0/0/6 current state : UP
154+
Line protocol current state : DOWN
155+
Description:VirtualPort
156+
Route Port,The Maximum Transmit Unit is 1500
157+
Internet protocol processing : disabled
158+
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc03-02ee
159+
Last physical up time : 2024-02-08 16:30:16
160+
Last physical down time : 2024-02-08 16:30:03
161+
Current system time: 2024-02-08 16:38:51
162+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
163+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
164+
Input peak rate 0 bits/sec,Record time: -
165+
Output peak rate 0 bits/sec,Record time: -
166+
167+
Input: 0 packets, 0 bytes
168+
Discard: 0, Total Error: 0
169+
170+
Output: 0 packets, 0 bytes
171+
Discard: 0, Total Error: 0
172+
173+
Input bandwidth utilization threshold : 100.00%
174+
Output bandwidth utilization threshold: 100.00%
175+
Input bandwidth utilization : --
176+
Output bandwidth utilization : --
177+
178+
NULL0 current state : UP
179+
Line protocol current state : UP (spoofing)
180+
Description:HUAWEI, AR Series, NULL0 Interface
181+
Route Port,The Maximum Transmit Unit is 1500
182+
Internet protocol processing : disabled
183+
Physical is NULL DEV
184+
Current system time: 2024-02-08 16:38:51
185+
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
186+
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
187+
Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
188+
Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
189+
Input: 0 bytes
190+
Output:0 bytes
191+
Input bandwidth utilization : 0%
192+
Output bandwidth utilization : 0%
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
---
2+
parsed_sample:
3+
- aggregated_interfaces: []
4+
current_system_time: "2024-02-08 16:38:46"
5+
duplex: ""
6+
hardware_address: "5000-001c-0000"
7+
interface: "GigabitEthernet0/0/0"
8+
interface_description: "WAN"
9+
internet_address: "192.168.77.54/24"
10+
internet_protocol: ""
11+
last_physical_down_time: "2024-02-08 16:30:03"
12+
last_physical_up_time: "2024-02-08 16:30:16"
13+
link_status: "UP"
14+
loopback: ""
15+
mtu: "1500"
16+
negotiation: ""
17+
port_mode: ""
18+
port_type: "Route"
19+
protocol_status: "UP"
20+
pvid: ""
21+
speed: ""
22+
- aggregated_interfaces: []
23+
current_system_time: "2024-02-08 16:38:47"
24+
duplex: ""
25+
hardware_address: "5000-001c-0001"
26+
interface: "GigabitEthernet0/0/1"
27+
interface_description: "LAN"
28+
internet_address: "10.1.1.2/30"
29+
internet_protocol: ""
30+
last_physical_down_time: "2024-02-08 16:30:03"
31+
last_physical_up_time: "2024-02-08 16:30:16"
32+
link_status: "UP"
33+
loopback: ""
34+
mtu: "1500"
35+
negotiation: ""
36+
port_mode: ""
37+
port_type: "Route"
38+
protocol_status: "UP"
39+
pvid: ""
40+
speed: ""
41+
- aggregated_interfaces: []
42+
current_system_time: "2024-02-08 16:38:50"
43+
duplex: ""
44+
hardware_address: "5000-001c-0002"
45+
interface: "GigabitEthernet0/0/2"
46+
interface_description: "HUAWEI, AR Series, GigabitEthernet0/0/2 Interface"
47+
internet_address: ""
48+
internet_protocol: "disabled"
49+
last_physical_down_time: "2024-02-08 16:30:03"
50+
last_physical_up_time: "2024-02-08 16:30:16"
51+
link_status: "UP"
52+
loopback: ""
53+
mtu: "1500"
54+
negotiation: ""
55+
port_mode: ""
56+
port_type: "Route"
57+
protocol_status: "DOWN"
58+
pvid: ""
59+
speed: ""
60+
- aggregated_interfaces: []
61+
current_system_time: "2024-02-08 16:38:51"
62+
duplex: ""
63+
hardware_address: "5000-001c-0003"
64+
interface: "GigabitEthernet0/0/3"
65+
interface_description: "HUAWEI, AR Series, GigabitEthernet0/0/3 Interface"
66+
internet_address: ""
67+
internet_protocol: "disabled"
68+
last_physical_down_time: "2024-02-08 16:30:03"
69+
last_physical_up_time: "2024-02-08 16:30:16"
70+
link_status: "UP"
71+
loopback: ""
72+
mtu: "1500"
73+
negotiation: ""
74+
port_mode: ""
75+
port_type: "Route"
76+
protocol_status: "DOWN"
77+
pvid: ""
78+
speed: ""
79+
- aggregated_interfaces: []
80+
current_system_time: "2024-02-08 16:38:51"
81+
duplex: ""
82+
hardware_address: "5000-001c-0004"
83+
interface: "GigabitEthernet0/0/4"
84+
interface_description: "HUAWEI, AR Series, GigabitEthernet0/0/4 Interface"
85+
internet_address: ""
86+
internet_protocol: "disabled"
87+
last_physical_down_time: "2024-02-08 16:30:03"
88+
last_physical_up_time: "2024-02-08 16:30:16"
89+
link_status: "UP"
90+
loopback: ""
91+
mtu: "1500"
92+
negotiation: ""
93+
port_mode: ""
94+
port_type: "Route"
95+
protocol_status: "DOWN"
96+
pvid: ""
97+
speed: ""
98+
- aggregated_interfaces: []
99+
current_system_time: "2024-02-08 16:38:51"
100+
duplex: ""
101+
hardware_address: "5000-001c-0005"
102+
interface: "GigabitEthernet0/0/5"
103+
interface_description: "HUAWEI, AR Series, GigabitEthernet0/0/5 Interface"
104+
internet_address: ""
105+
internet_protocol: "disabled"
106+
last_physical_down_time: "2024-02-08 16:30:03"
107+
last_physical_up_time: "2024-02-08 16:30:16"
108+
link_status: "UP"
109+
loopback: ""
110+
mtu: "1500"
111+
negotiation: ""
112+
port_mode: ""
113+
port_type: "Route"
114+
protocol_status: "DOWN"
115+
pvid: ""
116+
speed: ""
117+
- aggregated_interfaces: []
118+
current_system_time: "2024-02-08 16:38:51"
119+
duplex: ""
120+
hardware_address: "00e0-fc03-02ee"
121+
interface: "GigabitEthernet0/0/6"
122+
interface_description: "VirtualPort"
123+
internet_address: ""
124+
internet_protocol: "disabled"
125+
last_physical_down_time: "2024-02-08 16:30:03"
126+
last_physical_up_time: "2024-02-08 16:30:16"
127+
link_status: "UP"
128+
loopback: ""
129+
mtu: "1500"
130+
negotiation: ""
131+
port_mode: ""
132+
port_type: "Route"
133+
protocol_status: "DOWN"
134+
pvid: ""
135+
speed: ""
136+
- aggregated_interfaces: []
137+
current_system_time: "2024-02-08 16:38:51"
138+
duplex: ""
139+
hardware_address: ""
140+
interface: "NULL0"
141+
interface_description: "HUAWEI, AR Series, NULL0 Interface"
142+
internet_address: ""
143+
internet_protocol: "disabled"
144+
last_physical_down_time: ""
145+
last_physical_up_time: ""
146+
link_status: "UP"
147+
loopback: ""
148+
mtu: "1500"
149+
negotiation: ""
150+
port_mode: ""
151+
port_type: "Route"
152+
protocol_status: "UP (spoofing)"
153+
pvid: ""
154+
speed: ""

0 commit comments

Comments
 (0)