summaryrefslogtreecommitdiff
path: root/contrib/mac/dropoui
diff options
context:
space:
mode:
authorThomas G. Lockhart2000-08-23 06:02:23 +0000
committerThomas G. Lockhart2000-08-23 06:02:23 +0000
commitaa2a3bfd486bc256e97c5a0832523b0162aeadca (patch)
tree70ddfe8e27f68291d58aae01a465c93344ef5619 /contrib/mac/dropoui
parent2b6a35f7cdc045bf01a0539cf76dcd34adb0ccbf (diff)
Create and manage information on MAC address OUIs
(Organizationally Unique Identifiers). This is the manufacturer's code in the MAC address.
Diffstat (limited to 'contrib/mac/dropoui')
-rwxr-xr-xcontrib/mac/dropoui25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/mac/dropoui b/contrib/mac/dropoui
new file mode 100755
index 00000000000..6fffdc92d66
--- /dev/null
+++ b/contrib/mac/dropoui
@@ -0,0 +1,25 @@
+#! /bin/sh
+# Utility to remove manufacturer's oui table
+
+args=
+
+while [ $# -gt 0 ]
+do
+ case "$1" in
+ --help)
+ echo "Usage: $0 dbname"
+ exit
+ ;;
+ *)
+ args="$args $1"
+ ;;
+ esac
+ shift
+done
+
+psql $args <<EOF
+drop function manuf(macaddr);
+drop table macoui;
+EOF
+
+exit