projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df6968b
)
grep mac anywhere
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 27 Jan 2020 09:02:15 +0000
(10:02 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 5 May 2022 05:55:13 +0000
(07:55 +0200)
bro-conn-ip-vlan-mac.sh
patch
|
blob
|
history
diff --git
a/bro-conn-ip-vlan-mac.sh
b/bro-conn-ip-vlan-mac.sh
index
980d88a
..
608d825
100755
(executable)
--- a/
bro-conn-ip-vlan-mac.sh
+++ b/
bro-conn-ip-vlan-mac.sh
@@
-1,4
+1,4
@@
#!/bin/sh -e
-ssh enesej "cat /var/log/bro/current/conn.log | bro-cut -d id.orig_h vlan orig_l2_addr -F' ' | grep '
^
$1 ' | head -1"
+ssh enesej "cat /var/log/bro/current/conn.log | bro-cut -d id.orig_h vlan orig_l2_addr -F' ' | grep '
$1 ' | head -1"