Skip to content

Commit f960f4c

Browse files
authored
Merge pull request #2312 from julmanglano/pr/hp-procurve-show-interfaces-status
Add hp_procurve_show_interfaces_status
2 parents 3050baf + 8238168 commit f960f4c

10 files changed

Lines changed: 522 additions & 0 deletions
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Value PORT ([a-zA-Z0-9\-/.]+)
2+
Value NAME ([^\s].+?)(?=\s+(Up|Down))
3+
Value STATUS (\S+)
4+
Value CONFIG_MODE (\S+)
5+
Value SPEED (\S+)
6+
Value TYPE (\S+)
7+
Value VLAN_TAGGED (\S+)
8+
Value VLAN_UNTAGGED (\S+)
9+
10+
Start
11+
^\s*Port\s+Name\s+Status\s+Config-mode\s+Speed\s+Type\s+Tagged\s+Untagged\s*$$
12+
^\s+${PORT}\s+${NAME}\s+${STATUS}\s+${CONFIG_MODE}\s+${SPEED}\s+${TYPE}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
13+
^\s+${PORT}\s+${NAME}\s+${STATUS}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
14+
^\s+${PORT}\s+${STATUS}\s+${CONFIG_MODE}\s+${SPEED}\s+${TYPE}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
15+
^\s+${PORT}\s+${STATUS}\s+${CONFIG_MODE}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
16+
^\s+${PORT}\s+${STATUS}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
17+
^\s*---+
18+
^\s*$$
19+
^. -> Error

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ hp_procurve_show_lldp_info_remote-device_detail.textfsm, .*, (hp|aruba)_procurve
697697
hp_procurve_show_lldp_info_remote-device.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] ll[[dp]] i[[nfo]] r[[emote-device]]
698698
hp_procurve_show_lldp_info_local-device.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] ll[[dp]] i[[nfo]] l[[ocal-device]]
699699
hp_procurve_show_cdp_neighbors_detail.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] cd[[p]] nei[[ghbors]] d[[etail]]
700+
hp_procurve_show_interfaces_status.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] int[[erfaces]] st[[atus]]
700701
hp_procurve_show_interfaces_brief.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] int[[erfaces]] b[[rief]]
701702
hp_procurve_show_port-security.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] port-s[[ecurity]]
702703
hp_procurve_show_tech_buffers.textfsm, .*, (hp|aruba)_procurve, sh[[ow]] tec[[h]] buf[[ffers]]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Port Name Status Config-mode Speed Type Tagged Untagged
2+
-------- ---------- ------- ------------- -------- ---------- ------ --------
3+
A1 Down Auto 1000FDx 100/1000T No 140
4+
A6 Down Auto 1000FDx 100/1000T 704 No
5+
A7 Up Auto 100FDx 100/1000T No 140
6+
A8 SW-01-0... Up Auto 1000FDx 100/1000T No 2
7+
A9 Srv-001... Up Auto 1000FDx 100/1000T multi 60
8+
A17 AIR-AP1200 Up Auto 100FDx 100/1000T multi 140
9+
A21 Down multi No
10+
A22 Down No 5
11+
A24-Trk1 Srv-003... Up Auto 10GigFD 10GbE-GEN multi No
12+
B1 Switch-001 Up Auto 1000FDx 100/1000T No 2
13+
B8 Srv-002... Up Auto 1000FDx 100/1000T multi No
14+
B21 Down No 5
15+
B24-Trk1 Srv-004... Up Auto 10GigFD 10GbE-GEN multi No
16+
F22 Down Auto 1000FDx 100/1000T No 11
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
parsed_sample:
3+
- config_mode: "Auto"
4+
name: ""
5+
port: "A1"
6+
speed: "1000FDx"
7+
status: "Down"
8+
type: "100/1000T"
9+
vlan_tagged: "No"
10+
vlan_untagged: "140"
11+
- config_mode: "Auto"
12+
name: ""
13+
port: "A6"
14+
speed: "1000FDx"
15+
status: "Down"
16+
type: "100/1000T"
17+
vlan_tagged: "704"
18+
vlan_untagged: "No"
19+
- config_mode: "Auto"
20+
name: ""
21+
port: "A7"
22+
speed: "100FDx"
23+
status: "Up"
24+
type: "100/1000T"
25+
vlan_tagged: "No"
26+
vlan_untagged: "140"
27+
- config_mode: "Auto"
28+
name: "SW-01-0..."
29+
port: "A8"
30+
speed: "1000FDx"
31+
status: "Up"
32+
type: "100/1000T"
33+
vlan_tagged: "No"
34+
vlan_untagged: "2"
35+
- config_mode: "Auto"
36+
name: "Srv-001..."
37+
port: "A9"
38+
speed: "1000FDx"
39+
status: "Up"
40+
type: "100/1000T"
41+
vlan_tagged: "multi"
42+
vlan_untagged: "60"
43+
- config_mode: "Auto"
44+
name: "AIR-AP1200"
45+
port: "A17"
46+
speed: "100FDx"
47+
status: "Up"
48+
type: "100/1000T"
49+
vlan_tagged: "multi"
50+
vlan_untagged: "140"
51+
- config_mode: ""
52+
name: ""
53+
port: "A21"
54+
speed: ""
55+
status: "Down"
56+
type: ""
57+
vlan_tagged: "multi"
58+
vlan_untagged: "No"
59+
- config_mode: ""
60+
name: ""
61+
port: "A22"
62+
speed: ""
63+
status: "Down"
64+
type: ""
65+
vlan_tagged: "No"
66+
vlan_untagged: "5"
67+
- config_mode: "Auto"
68+
name: "Srv-003..."
69+
port: "A24-Trk1"
70+
speed: "10GigFD"
71+
status: "Up"
72+
type: "10GbE-GEN"
73+
vlan_tagged: "multi"
74+
vlan_untagged: "No"
75+
- config_mode: "Auto"
76+
name: "Switch-001"
77+
port: "B1"
78+
speed: "1000FDx"
79+
status: "Up"
80+
type: "100/1000T"
81+
vlan_tagged: "No"
82+
vlan_untagged: "2"
83+
- config_mode: "Auto"
84+
name: "Srv-002..."
85+
port: "B8"
86+
speed: "1000FDx"
87+
status: "Up"
88+
type: "100/1000T"
89+
vlan_tagged: "multi"
90+
vlan_untagged: "No"
91+
- config_mode: ""
92+
name: ""
93+
port: "B21"
94+
speed: ""
95+
status: "Down"
96+
type: ""
97+
vlan_tagged: "No"
98+
vlan_untagged: "5"
99+
- config_mode: "Auto"
100+
name: "Srv-004..."
101+
port: "B24-Trk1"
102+
speed: "10GigFD"
103+
status: "Up"
104+
type: "10GbE-GEN"
105+
vlan_tagged: "multi"
106+
vlan_untagged: "No"
107+
- config_mode: "Auto"
108+
name: ""
109+
port: "F22"
110+
speed: "1000FDx"
111+
status: "Down"
112+
type: "100/1000T"
113+
vlan_tagged: "No"
114+
vlan_untagged: "11"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Port Name Status Config-mode Speed Type Tagged Untagged
2+
-------- ---------- ------- ------------- -------- ---------- ------ --------
3+
1/1 Up Auto 1000FDx 100/1000T No 141
4+
1/26 Up Auto 1000FDx 1000SX No No
5+
1/27 Down No 1
6+
1/28-... Srv-001... Up Auto 10GigFD 10GbE-GEN multi No
7+
2/6 Up Auto 100FDx 100/1000T No 141
8+
2/28 Down No 1
9+
3/6 Down Auto 1000FDx 100/1000T No 141
10+
3/28-... Srv-002... Up Auto 10GigFD 10GbE-GEN multi No
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
parsed_sample:
3+
- config_mode: "Auto"
4+
name: ""
5+
port: "1/1"
6+
speed: "1000FDx"
7+
status: "Up"
8+
type: "100/1000T"
9+
vlan_tagged: "No"
10+
vlan_untagged: "141"
11+
- config_mode: "Auto"
12+
name: ""
13+
port: "1/26"
14+
speed: "1000FDx"
15+
status: "Up"
16+
type: "1000SX"
17+
vlan_tagged: "No"
18+
vlan_untagged: "No"
19+
- config_mode: ""
20+
name: ""
21+
port: "1/27"
22+
speed: ""
23+
status: "Down"
24+
type: ""
25+
vlan_tagged: "No"
26+
vlan_untagged: "1"
27+
- config_mode: "Auto"
28+
name: "Srv-001..."
29+
port: "1/28-..."
30+
speed: "10GigFD"
31+
status: "Up"
32+
type: "10GbE-GEN"
33+
vlan_tagged: "multi"
34+
vlan_untagged: "No"
35+
- config_mode: "Auto"
36+
name: ""
37+
port: "2/6"
38+
speed: "100FDx"
39+
status: "Up"
40+
type: "100/1000T"
41+
vlan_tagged: "No"
42+
vlan_untagged: "141"
43+
- config_mode: ""
44+
name: ""
45+
port: "2/28"
46+
speed: ""
47+
status: "Down"
48+
type: ""
49+
vlan_tagged: "No"
50+
vlan_untagged: "1"
51+
- config_mode: "Auto"
52+
name: ""
53+
port: "3/6"
54+
speed: "1000FDx"
55+
status: "Down"
56+
type: "100/1000T"
57+
vlan_tagged: "No"
58+
vlan_untagged: "141"
59+
- config_mode: "Auto"
60+
name: "Srv-002..."
61+
port: "3/28-..."
62+
speed: "10GigFD"
63+
status: "Up"
64+
type: "10GbE-GEN"
65+
vlan_tagged: "multi"
66+
vlan_untagged: "No"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Port Name Status Config-mode Speed Type Tagged Untagged
2+
-------- ---------- ------- ------------- -------- ---------- ------ --------
3+
1/1 SW-05-0... Up Auto 1000FDx 100/1000T multi 60
4+
1/2 SW-05-0... Up Auto 1000FDx 100/1000T multi 60
5+
1/10 AP-01-0... Up Auto 1000FDx 100/1000T No 2
6+
1/16 aa:bb:c... Up Auto 1000FDx 100/1000T No 2
7+
1/20 Down Auto 1000FDx 100/1000T No 2
8+
1/25 AP-02-0... Up Auto 100FDx 100/1000T No 2
9+
1/27 Up Auto 1000FDx 100/1000T No 2
10+
1/49 Up Auto 10GigFD 10GbE-GEN No No
11+
1/50 Up Auto 10GigFD 10GbE-GEN No No
12+
1/51-... SW-07-0... Up Auto 10GigFD 10GbE-GEN multi 1
13+
1/52 Link to... Down No 1
14+
2/4 SW-05-0... Up 100FDx 100FDx 100/1000T multi 60
15+
2/14 Link to... Up Auto 10HDx 100/1000T No 10
16+
2/15 Down Auto 1000FDx 100/1000T No 2
17+
2/27 Up Auto 1000FDx 100/1000T No 10
18+
2/49 Up Auto 10GigFD 10GbE-GEN No No
19+
2/52 Down No 1
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
---
2+
parsed_sample:
3+
- config_mode: "Auto"
4+
name: "SW-05-0..."
5+
port: "1/1"
6+
speed: "1000FDx"
7+
status: "Up"
8+
type: "100/1000T"
9+
vlan_tagged: "multi"
10+
vlan_untagged: "60"
11+
- config_mode: "Auto"
12+
name: "SW-05-0..."
13+
port: "1/2"
14+
speed: "1000FDx"
15+
status: "Up"
16+
type: "100/1000T"
17+
vlan_tagged: "multi"
18+
vlan_untagged: "60"
19+
- config_mode: "Auto"
20+
name: "AP-01-0..."
21+
port: "1/10"
22+
speed: "1000FDx"
23+
status: "Up"
24+
type: "100/1000T"
25+
vlan_tagged: "No"
26+
vlan_untagged: "2"
27+
- config_mode: "Auto"
28+
name: "aa:bb:c..."
29+
port: "1/16"
30+
speed: "1000FDx"
31+
status: "Up"
32+
type: "100/1000T"
33+
vlan_tagged: "No"
34+
vlan_untagged: "2"
35+
- config_mode: "Auto"
36+
name: ""
37+
port: "1/20"
38+
speed: "1000FDx"
39+
status: "Down"
40+
type: "100/1000T"
41+
vlan_tagged: "No"
42+
vlan_untagged: "2"
43+
- config_mode: "Auto"
44+
name: "AP-02-0..."
45+
port: "1/25"
46+
speed: "100FDx"
47+
status: "Up"
48+
type: "100/1000T"
49+
vlan_tagged: "No"
50+
vlan_untagged: "2"
51+
- config_mode: "Auto"
52+
name: ""
53+
port: "1/27"
54+
speed: "1000FDx"
55+
status: "Up"
56+
type: "100/1000T"
57+
vlan_tagged: "No"
58+
vlan_untagged: "2"
59+
- config_mode: "Auto"
60+
name: ""
61+
port: "1/49"
62+
speed: "10GigFD"
63+
status: "Up"
64+
type: "10GbE-GEN"
65+
vlan_tagged: "No"
66+
vlan_untagged: "No"
67+
- config_mode: "Auto"
68+
name: ""
69+
port: "1/50"
70+
speed: "10GigFD"
71+
status: "Up"
72+
type: "10GbE-GEN"
73+
vlan_tagged: "No"
74+
vlan_untagged: "No"
75+
- config_mode: "Auto"
76+
name: "SW-07-0..."
77+
port: "1/51-..."
78+
speed: "10GigFD"
79+
status: "Up"
80+
type: "10GbE-GEN"
81+
vlan_tagged: "multi"
82+
vlan_untagged: "1"
83+
- config_mode: ""
84+
name: "Link to..."
85+
port: "1/52"
86+
speed: ""
87+
status: "Down"
88+
type: ""
89+
vlan_tagged: "No"
90+
vlan_untagged: "1"
91+
- config_mode: "100FDx"
92+
name: "SW-05-0..."
93+
port: "2/4"
94+
speed: "100FDx"
95+
status: "Up"
96+
type: "100/1000T"
97+
vlan_tagged: "multi"
98+
vlan_untagged: "60"
99+
- config_mode: "Auto"
100+
name: "Link to..."
101+
port: "2/14"
102+
speed: "10HDx"
103+
status: "Up"
104+
type: "100/1000T"
105+
vlan_tagged: "No"
106+
vlan_untagged: "10"
107+
- config_mode: "Auto"
108+
name: ""
109+
port: "2/15"
110+
speed: "1000FDx"
111+
status: "Down"
112+
type: "100/1000T"
113+
vlan_tagged: "No"
114+
vlan_untagged: "2"
115+
- config_mode: "Auto"
116+
name: ""
117+
port: "2/27"
118+
speed: "1000FDx"
119+
status: "Up"
120+
type: "100/1000T"
121+
vlan_tagged: "No"
122+
vlan_untagged: "10"
123+
- config_mode: "Auto"
124+
name: ""
125+
port: "2/49"
126+
speed: "10GigFD"
127+
status: "Up"
128+
type: "10GbE-GEN"
129+
vlan_tagged: "No"
130+
vlan_untagged: "No"
131+
- config_mode: ""
132+
name: ""
133+
port: "2/52"
134+
speed: ""
135+
status: "Down"
136+
type: ""
137+
vlan_tagged: "No"
138+
vlan_untagged: "1"

0 commit comments

Comments
 (0)