Skip to content

Commit

Permalink
New Template: paloalto_panos_show_interface_management.textfsm (netwo…
Browse files Browse the repository at this point in the history
  • Loading branch information
FragmentedPacket authored May 22, 2020
1 parent 6d8c974 commit 5ad1807
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ juniper_screenos_get_route.textfsm, .*, juniper_screenos, get route

paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]]
paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all
paloalto_panos_show_interface_management.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] man[[agement]]
paloalto_panos_show_interface_hardware.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] hard[[ware]]
paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] nat[[-policy]]
paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]]
Expand Down
35 changes: 35 additions & 0 deletions templates/paloalto_panos_show_interface_management.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Value NAME (.+)
Value MACADDRESS ([a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2}\:[a-fA-F0-9]{2})
Value IPV4_ADDRESS (\S+)
Value IPV4_NETMASK (\S+)
Value IPV4_GATEWAY (\S+)
Value IPV6_ADDRESS (\S+)
Value IPV6_LINKLOCAL (\S+)
Value IPV6_GATEWAY (\S+)

Start
^-+
^Name:\s+${NAME}$$
^Link\s+status
^\s+Runtime
^\s+Configured\s+link
^MAC\s+address
^\s+Port\s+MAC\s+address\s+${MACADDRESS}
^Ip\s+address:\s+${IPV4_ADDRESS}
^Netmask:\s+${IPV4_NETMASK}
^Default\s+gateway:\s+${IPV4_GATEWAY}
^Ipv6\s+address:\s+${IPV6_ADDRESS}
^Ipv6\s+link\s+local\s+address:\s+${IPV6_LINKLOCAL}
^Ipv6\s+default\s+gateway:(\s+${IPV6_GATEWAY})?
^Logical\s+interface\s+counters
^bytes\s+received
^bytes\s+transmitted
^packets\s+received
^packets\s+transmitted
^receive\s+errors
^transmit\s+errors
^receive\s+packets\s+dropped
^transmit\s+packets\s+dropped
^multicast\s+packets\s+received
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@


-------------------------------------------------------------------------------
Name: Management Interface
Link status:
Runtime link speed/duplex/state: 1000/full/up
Configured link speed/duplex/state: auto/auto/auto
MAC address:
Port MAC address 08:66:1f:02:04:a3

Ip address: 10.0.1.5
Netmask: 255.255.255.0
Default gateway: 10.0.1.1
Ipv6 address: unknown
Ipv6 link local address: fe80::a66:1fff:fe02:4a3/64
Ipv6 default gateway:
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
Logical interface counters:
-------------------------------------------------------------------------------
bytes received 264279971
bytes transmitted 238725455
packets received 279836
packets transmitted 291248
receive errors 0
transmit errors 0
receive packets dropped 0
transmit packets dropped 0
multicast packets received 0
-------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
parsed_sample:
- name: "Management Interface"
macaddress: "08:66:1f:02:04:a3"
ipv4_address: "10.0.1.5"
ipv4_netmask: "255.255.255.0"
ipv4_gateway: "10.0.1.1"
ipv6_address: "unknown"
ipv6_linklocal: "fe80::a66:1fff:fe02:4a3/64"
ipv6_gateway: ""

0 comments on commit 5ad1807

Please sign in to comment.