-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Co-authored-by: pskliarenko <“[email protected]”> Co-authored-by: Jacob McGill <[email protected]>
- Loading branch information
1 parent
2ab1e65
commit 6cd1f02
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Value PROTOCOL (\S+) | ||
Value ADDRESS (\S+) | ||
Value AGE_MIN (\S+) | ||
Value HARDWARE_ADDRESS ((?:([a-f0-9]{4}\.){2}[a-f0-9]{4})|Incomplete) | ||
Value TYPE (\S+) | ||
Value INTERFACE (\S+) | ||
|
||
Start | ||
^\s*Protocol\s+Address\s+Age\s+\(min\)\s+Hardware\s+Addr\s+Type\s+Interface\s*$$ -> ArpTable | ||
^\s*$$ | ||
^. -> Error | ||
|
||
ArpTable | ||
^\s*${PROTOCOL}\s+${ADDRESS}\s+${AGE_MIN}\s+${HARDWARE_ADDRESS}\s+${TYPE}(?:\s+${INTERFACE})?\s*$$ -> Record | ||
^\s*$$ | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Protocol Address Age (min) Hardware Addr Type Interface | ||
Internet 10.100.88.1 - c4f7.d564.b716 ARPA Vlan10 | ||
Internet 10.100.88.199 0 Incomplete ARPA | ||
Internet 10.152.1.229 0 488f.5a5a.87ea ARPA Vlan1 | ||
Internet 1.2.3.4 0 c4ad.3425.b7be ARPA FastEthernet4 | ||
Internet 1.2.3.5 - c4f7.d564.b71a ARPA FastEthernet4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
parsed_sample: | ||
- address: "10.100.88.1" | ||
age_min: "-" | ||
hardware_address: "c4f7.d564.b716" | ||
interface: "Vlan10" | ||
protocol: "Internet" | ||
type: "ARPA" | ||
- address: "10.100.88.199" | ||
age_min: "0" | ||
hardware_address: "Incomplete" | ||
interface: "" | ||
protocol: "Internet" | ||
type: "ARPA" | ||
- address: "10.152.1.229" | ||
age_min: "0" | ||
hardware_address: "488f.5a5a.87ea" | ||
interface: "Vlan1" | ||
protocol: "Internet" | ||
type: "ARPA" | ||
- address: "1.2.3.4" | ||
age_min: "0" | ||
hardware_address: "c4ad.3425.b7be" | ||
interface: "FastEthernet4" | ||
protocol: "Internet" | ||
type: "ARPA" | ||
- address: "1.2.3.5" | ||
age_min: "-" | ||
hardware_address: "c4f7.d564.b71a" | ||
interface: "FastEthernet4" | ||
protocol: "Internet" | ||
type: "ARPA" |