Skip to content

Commit

Permalink
Paloalto panos show arp all (#432)
Browse files Browse the repository at this point in the history
New template: paloalto_panos_show_arp_all
  • Loading branch information
dainok authored and FragmentedPacket committed Jul 25, 2019
1 parent 61cf56c commit f42ff25
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ paloalto_panos_show_interface_logical.template, .*, paloalto_panos, sh[[ow]] int
paloalto_panos_show_counter_global.template, .*, paloalto_panos, sh[[ow]] coun[[ter]] glo[[bal]]
paloalto_panos_show_system_info.template, .*, paloalto_panos, sh[[ow]] sys[[tem]] in[[fo]]
paloalto_panos_show_jobs_all.template, .*, paloalto_panos, sh[[ow]] jo[[bs]] all
paloalto_panos_show_arp_all.template, .*, paloalto_panos, sh[[ow]] ar[[p]] all

ubiquiti_edgeswitch_show_vlan.template, .*, ubiquiti_edgeswitch, sh[[ow]] vl[[an]]
ubiquiti_edgeswitch_show_arp.template, .*, ubiquiti_edgeswitch, sh[[ow]] ar[[p]]
Expand Down
14 changes: 14 additions & 0 deletions templates/paloalto_panos_show_arp_all.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Value INTERFACE (\S+)
Value IP (\S+)
Value MAC ([0-9a-fA-F:]+)
Value PORT (\S+)
Value STATUS (\S+)
Value TTL (\d+)

Start
^\s*--- -> Start_record

Start_record
^${INTERFACE}\s+${IP}\s+${MAC}\s+${PORT}\s+${STATUS}\s+${TTL} -> Record
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
parsed_sample:

- interface: ethernet1/1
ip: 172.25.1.254
mac: '08:30:6b:26:43:30'
port: ethernet1/1
status: c
ttl: '627'
- interface: vlan.1
ip: 172.25.2.195
mac: '00:50:00:00:07:00'
port: ethernet1/2.110
status: c
ttl: '1012'
- interface: vlan.1
ip: 172.25.2.196
mac: '00:50:00:00:08:00'
port: ethernet1/2.111
status: c
ttl: '1016'
12 changes: 12 additions & 0 deletions tests/paloalto_panos/show_arp_all/paloalto_panos_show_arp_all.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

maximum of entries supported : 1500
default timeout: 1800 seconds
total ARP entries in table : 5
total ARP entries shown : 5
status: s - static, c - complete, e - expiring, i - incomplete

interface ip address hw address port status ttl
--------------------------------------------------------------------------------
ethernet1/1 172.25.1.254 08:30:6b:26:43:30 ethernet1/1 c 627
vlan.1 172.25.2.195 00:50:00:00:07:00 ethernet1/2.110 c 1012
vlan.1 172.25.2.196 00:50:00:00:08:00 ethernet1/2.111 c 1016

0 comments on commit f42ff25

Please sign in to comment.