Skip to content

Commit baf0de7

Browse files
authored
Fix interface output nuances for FPR ASA (#2224)
1 parent a323cca commit baf0de7

File tree

3 files changed

+265
-3
lines changed

3 files changed

+265
-3
lines changed

ntc_templates/templates/cisco_asa_show_interface.textfsm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Value INTERFACE_ZONE (.+?)
33
Value LINK_STATUS (.+?)
44
Value PROTOCOL_STATUS (.*)
55
Value HARDWARE_TYPE (Virtual Tunnel|EtherChannel/LACP|[\w ]+)
6-
Value BANDWIDTH (\d+\s+\w+)
6+
Value BANDWIDTH ([^,]+)
77
Value DELAY (\d+\s+\w+)
8-
Value DUPLEX (\w+\-\w+)
9-
Value SPEED (\d+\w+\s\w+)
8+
Value DUPLEX (\w+(?:-\w+)?)
9+
Value SPEED (\d+\w+\s?\w+)
1010
Value DESCRIPTION (.*)
1111
Value BONDED_PORT (.+?)
1212
Value BONDED_PORT_MEMBERS (.*)
@@ -42,6 +42,7 @@ Start
4242
^.*\(${DUPLEX}\),\s+\d+\s+Mbps\(${SPEED}\)
4343
^.*\(${DUPLEX}\),\s+\(${SPEED}\)
4444
^.*Duplex,\s+Auto-Speed
45+
^.*Full-Duplex,\s+1000\s+Mbps
4546
^.*Description:\s+${DESCRIPTION}
4647
^.*VLAN\s+identifier\s+(${VLAN_ID}|(?:none))
4748
^.*MAC\s+address\s+${MAC_ADDRESS},\s+MTU\s+${MTU}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
Interface Vlan1 "", is down, line protocol is down
2+
Hardware is EtherSVI, BW 100 Mbps, DLY 100 usec
3+
Available but not configured via nameif
4+
Interface Ethernet1/1 "oob", is up, line protocol is up
5+
Hardware is EtherSVI, BW 1000 Mbps, DLY 10 usec
6+
Full-Duplex(fullDuplex), 1000 Mbps(1gbps)
7+
Description: UPLINK > SW1 - Gi1/0/47
8+
MAC address dc05.3909.4648, MTU 1500
9+
IP address 10.9.224.41, subnet mask 255.255.255.252
10+
213367 packets input, 134863056 bytes, 0 no buffer
11+
Received 0 broadcasts, 0 runts, 0 giants
12+
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
13+
0 pause input, 0 resume input
14+
448915 packets output, 36318489 bytes, 0 underruns
15+
0 pause output, 0 resume output
16+
0 output errors, 0 collisions, 0 interface resets
17+
0 late collisions, 0 deferred
18+
0 input reset drops, 0 output reset drops
19+
Traffic Statistics for "oob":
20+
192184 packets input, 128239736 bytes
21+
449279 packets output, 28229676 bytes
22+
38 packets dropped
23+
1 minute input rate 30 pkts/sec, 29499 bytes/sec
24+
1 minute output rate 12 pkts/sec, 754 bytes/sec
25+
1 minute drop rate, 0 pkts/sec
26+
5 minute input rate 34 pkts/sec, 31541 bytes/sec
27+
5 minute output rate 15 pkts/sec, 996 bytes/sec
28+
5 minute drop rate, 0 pkts/sec
29+
Interface Ethernet1/2 "", is admin down, line protocol is down
30+
Hardware is EtherSVI, BW 1000 Mbps, DLY 10 usec
31+
Full-Duplex, 1000 Mbps
32+
Description: UPLINK > SW2
33+
Available but not configured via nameif
34+
MAC address dc05.3909.4649, MTU not set
35+
IP address unassigned
36+
0 packets input, 0 bytes, 0 no buffer
37+
Received 0 broadcasts, 0 runts, 0 giants
38+
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
39+
0 pause input, 0 resume input
40+
0 packets output, 0 bytes, 0 underruns
41+
0 pause output, 0 resume output
42+
0 output errors, 0 collisions, 0 interface resets
43+
0 late collisions, 0 deferred
44+
0 input reset drops, 0 output reset drops
45+
Interface Ethernet1/8 "DC3_GRY_HANDOFF", is up, line protocol is up
46+
Hardware is EtherSVI, BW 1000 Mbps, DLY 10 usec
47+
Full-Duplex(fullDuplex), 1000 Mbps(1gbps)
48+
Description: UPLINK > SW2 Eth1/40
49+
MAC address dc05.3909.464f, MTU 1500
50+
IP address 10.9.224.51, subnet mask 255.255.255.254
51+
281075 packets input, 33692992 bytes, 0 no buffer
52+
Received 1 broadcasts, 0 runts, 0 giants
53+
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
54+
0 pause input, 0 resume input
55+
379379 packets output, 53834629 bytes, 0 underruns
56+
0 pause output, 0 resume output
57+
0 output errors, 0 collisions, 0 interface resets
58+
0 late collisions, 0 deferred
59+
0 input reset drops, 0 output reset drops
60+
Traffic Statistics for "DC3_GRY_HANDOFF":
61+
228276 packets input, 13410966 bytes
62+
263567 packets output, 17891913 bytes
63+
27 packets dropped
64+
1 minute input rate 4 pkts/sec, 327 bytes/sec
65+
1 minute output rate 6 pkts/sec, 513 bytes/sec
66+
1 minute drop rate, 0 pkts/sec
67+
5 minute input rate 7 pkts/sec, 566 bytes/sec
68+
5 minute output rate 10 pkts/sec, 1145 bytes/sec
69+
5 minute drop rate, 0 pkts/sec
70+
Interface Management1/1 "management", is up, line protocol is up
71+
Hardware is en_vtun rev00, BW Unknown Speed-Capability, DLY 1000 usec
72+
Auto-Duplex(Full-duplex), Auto-Speed(1000 Mbps)
73+
Input flow control is unsupported, output flow control is unsupported
74+
MAC address dc05.3909.4601, MTU 1500
75+
IP address 10.9.227.2, subnet mask 255.255.255.0
76+
3084 packets input, 212680 bytes, 0 no buffer
77+
Received 0 broadcasts, 0 runts, 0 giants
78+
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
79+
0 pause input, 0 resume input
80+
0 L2 decode drops, 0 demux drops
81+
3364 packets output, 296124 bytes, 0 underruns
82+
0 pause output, 0 resume output
83+
0 output errors, 0 collisions, 0 interface resets
84+
0 late collisions, 0 deferred
85+
0 input reset drops, 0 output reset drops
86+
input queue (blocks free curr/low): hardware (0/0)
87+
output queue (blocks free curr/low): hardware (0/0)
88+
Traffic Statistics for "management":
89+
3084 packets input, 169504 bytes
90+
3364 packets output, 249028 bytes
91+
0 packets dropped
92+
1 minute input rate 0 pkts/sec, 53 bytes/sec
93+
1 minute output rate 1 pkts/sec, 82 bytes/sec
94+
1 minute drop rate, 0 pkts/sec
95+
5 minute input rate 0 pkts/sec, 46 bytes/sec
96+
5 minute output rate 1 pkts/sec, 71 bytes/sec
97+
5 minute drop rate, 0 pkts/sec
98+
Management-only interface. Blocked 0 through-the-device packets
99+
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
---
2+
parsed_sample:
3+
- bandwidth: "100 Mbps"
4+
bonded_port: ""
5+
bonded_port_members: ""
6+
delay: "100 usec"
7+
description: ""
8+
duplex: ""
9+
fivemin_drop_rate: ""
10+
fivemin_in_pps: ""
11+
fivemin_in_rate: ""
12+
fivemin_out_pps: ""
13+
fivemin_out_rate: ""
14+
hardware_type: "EtherSVI"
15+
interface: "Vlan1"
16+
interface_zone: ""
17+
ip_address: ""
18+
link_status: "down"
19+
mac_address: ""
20+
mtu: ""
21+
netmask: ""
22+
onemin_drop_rate: ""
23+
onemin_in_pps: ""
24+
onemin_in_rate: ""
25+
onemin_out_pps: ""
26+
onemin_out_rate: ""
27+
protocol_status: "down"
28+
speed: ""
29+
tunnel_destination_ip: ""
30+
tunnel_ipsec_profile: ""
31+
tunnel_mode: ""
32+
tunnel_source_interface: ""
33+
tunnel_source_ip: ""
34+
vlan_id: ""
35+
- bandwidth: "1000 Mbps"
36+
bonded_port: ""
37+
bonded_port_members: ""
38+
delay: "10 usec"
39+
description: "UPLINK > SW1 - Gi1/0/47"
40+
duplex: "fullDuplex"
41+
fivemin_drop_rate: "0"
42+
fivemin_in_pps: "34"
43+
fivemin_in_rate: "31541"
44+
fivemin_out_pps: "15"
45+
fivemin_out_rate: "996"
46+
hardware_type: "EtherSVI"
47+
interface: "Ethernet1/1"
48+
interface_zone: "oob"
49+
ip_address: "10.9.224.41"
50+
link_status: "up"
51+
mac_address: "dc05.3909.4648"
52+
mtu: "1500"
53+
netmask: "255.255.255.252"
54+
onemin_drop_rate: "0"
55+
onemin_in_pps: "30"
56+
onemin_in_rate: "29499"
57+
onemin_out_pps: "12"
58+
onemin_out_rate: "754"
59+
protocol_status: "up"
60+
speed: "1gbps"
61+
tunnel_destination_ip: ""
62+
tunnel_ipsec_profile: ""
63+
tunnel_mode: ""
64+
tunnel_source_interface: ""
65+
tunnel_source_ip: ""
66+
vlan_id: ""
67+
- bandwidth: "1000 Mbps"
68+
bonded_port: ""
69+
bonded_port_members: ""
70+
delay: "10 usec"
71+
description: "UPLINK > SW2"
72+
duplex: ""
73+
fivemin_drop_rate: ""
74+
fivemin_in_pps: ""
75+
fivemin_in_rate: ""
76+
fivemin_out_pps: ""
77+
fivemin_out_rate: ""
78+
hardware_type: "EtherSVI"
79+
interface: "Ethernet1/2"
80+
interface_zone: ""
81+
ip_address: ""
82+
link_status: "admin down"
83+
mac_address: "dc05.3909.4649"
84+
mtu: ""
85+
netmask: ""
86+
onemin_drop_rate: ""
87+
onemin_in_pps: ""
88+
onemin_in_rate: ""
89+
onemin_out_pps: ""
90+
onemin_out_rate: ""
91+
protocol_status: "down"
92+
speed: ""
93+
tunnel_destination_ip: ""
94+
tunnel_ipsec_profile: ""
95+
tunnel_mode: ""
96+
tunnel_source_interface: ""
97+
tunnel_source_ip: ""
98+
vlan_id: ""
99+
- bandwidth: "1000 Mbps"
100+
bonded_port: ""
101+
bonded_port_members: ""
102+
delay: "10 usec"
103+
description: "UPLINK > SW2 Eth1/40"
104+
duplex: "fullDuplex"
105+
fivemin_drop_rate: "0"
106+
fivemin_in_pps: "7"
107+
fivemin_in_rate: "566"
108+
fivemin_out_pps: "10"
109+
fivemin_out_rate: "1145"
110+
hardware_type: "EtherSVI"
111+
interface: "Ethernet1/8"
112+
interface_zone: "DC3_GRY_HANDOFF"
113+
ip_address: "10.9.224.51"
114+
link_status: "up"
115+
mac_address: "dc05.3909.464f"
116+
mtu: "1500"
117+
netmask: "255.255.255.254"
118+
onemin_drop_rate: "0"
119+
onemin_in_pps: "4"
120+
onemin_in_rate: "327"
121+
onemin_out_pps: "6"
122+
onemin_out_rate: "513"
123+
protocol_status: "up"
124+
speed: "1gbps"
125+
tunnel_destination_ip: ""
126+
tunnel_ipsec_profile: ""
127+
tunnel_mode: ""
128+
tunnel_source_interface: ""
129+
tunnel_source_ip: ""
130+
vlan_id: ""
131+
- bandwidth: "Unknown Speed-Capability"
132+
bonded_port: ""
133+
bonded_port_members: ""
134+
delay: "1000 usec"
135+
description: ""
136+
duplex: "Full-duplex"
137+
fivemin_drop_rate: "0"
138+
fivemin_in_pps: "0"
139+
fivemin_in_rate: "46"
140+
fivemin_out_pps: "1"
141+
fivemin_out_rate: "71"
142+
hardware_type: "en_vtun rev00"
143+
interface: "Management1/1"
144+
interface_zone: "management"
145+
ip_address: "10.9.227.2"
146+
link_status: "up"
147+
mac_address: "dc05.3909.4601"
148+
mtu: "1500"
149+
netmask: "255.255.255.0"
150+
onemin_drop_rate: "0"
151+
onemin_in_pps: "0"
152+
onemin_in_rate: "53"
153+
onemin_out_pps: "1"
154+
onemin_out_rate: "82"
155+
protocol_status: "up"
156+
speed: "1000 Mbps"
157+
tunnel_destination_ip: ""
158+
tunnel_ipsec_profile: ""
159+
tunnel_mode: ""
160+
tunnel_source_interface: ""
161+
tunnel_source_ip: ""
162+
vlan_id: ""

0 commit comments

Comments
 (0)