We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a6847f commit a39a3ffCopy full SHA for a39a3ff
find-port-for-mac
@@ -12,7 +12,7 @@ test -z "$1" && echo "Usage: $0 d4:ca:6d:01:4c:f2" && exit 1
12
13
mac=$1
14
15
-. ./shm-trunk.regex
+. $(dirname $0)/shm-trunk.regex
16
17
grep -r -i $mac /dev/shm/snmp-mac-port/ | tee /dev/shm/mac.$mac | grep --file /dev/shm/trunk.regex -v | cut -d: -f2- | while read name vlan mac port ; do
18
# sw-rack2 - 2c:ea:7f:6f:0c:ec 27
0 commit comments