diff options
author | mboelen <michael@cisofy.com> | 2014-09-21 14:58:08 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-09-21 14:58:08 +0400 |
commit | 116b1eab977dc72ebbccf33cc13293bef766a7cd (patch) | |
tree | 2165bd9e912207211a71ce58cbde46cf1e213f0a | |
parent | b4f6af1223e475250ae977a2252130821d49fe8c (diff) |
Added support for Mac OS to gather information
-rw-r--r-- | include/tests_networking | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tests_networking b/include/tests_networking index 10aa1356..41e0c3c6 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -290,6 +290,16 @@ fi ;; + MacOS) + if [ ! "${LSOFBINARY}" = "" ]; then + FIND=`${LSOFBINARY} -i -P | awk '{ print $9"|"$8"|"$1"|" }' | sed 's/\(.*\)\-\>.*\(\|.*\)/\1\2/' | sed 's/\*/'$IP'/' | sort -u | grep -v "NAME"` + else + FIND="" + fi + FIND2="" + ;; + + NetBSD) if [ ! "${SOCKSTATBINARY}" = "" ]; then FIND=`${SOCKSTATBINARY} | awk '{ if ($7 ~ /\*.\*/) print $5"|"$6"|"$2"|" }' | sort | uniq` |