Skip to content

Commit

Permalink
Hp procurve show mac address (#430)
Browse files Browse the repository at this point in the history
New template: hp_procurve_show_mac-address
  • Loading branch information
dainok authored and FragmentedPacket committed Jul 25, 2019
1 parent f42ff25 commit 3990023
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/hp_procurve_show_mac-address.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Value MAC ([0-9a-fA-F]{6}-[0-9a-fA-F]{6})
Value PORT (\S+)
Value VLAN (\d+)

Start
^\s*--- -> Start_record

Start_record
^\s+${MAC}\s+${PORT}\s+${VLAN} -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ hp_comware_display_clock.template, .*, hp_comware, di[[splay]] clo[[ck]]
hp_comware_display_arp.template, .*, hp_comware, di[[splay]] a[[rp]]

hp_procurve_show_tech_buffers.template, .*, hp_procurve, sh[[ow]] tec[[h]] buf[[ffers]]
hp_procurve_show_mac-address.template, .*, hp_procurve, sh[[ow]] mac-a[[ddress]]
hp_procurve_show_system.template, .*, hp_procurve, sh[[ow]] syst[[em]]
hp_procurve_show_vlans.template, .*, hp_procurve, sh[[ow]] vl[[ans]]
hp_procurve_show_arp.template, .*, hp_procurve, sh[[ow]] ar[[p]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
parsed_sample:

- mac: '500000-260000'
port: Trk1
vlan: '17'
- mac: '500000-a80009'
port: Trk1
vlan: '10'
- mac: '500000-260000'
port: Trk1
vlan: '50'
- mac: '500000-b70008'
port: '25'
vlan: '50'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

Status and Counters - Port Address Table

MAC Address Port VLAN
----------------- ------------------------------- ----
500000-260000 Trk1 17
500000-a80009 Trk1 10
500000-260000 Trk1 50
500000-b70008 25 50

0 comments on commit 3990023

Please sign in to comment.