aboutsummaryrefslogtreecommitdiffstats
path: root/sql/nms.sql
diff options
context:
space:
mode:
authorroot <root@frank.tg14.gathering.org>2014-04-15 13:49:39 +0200
committerroot <root@frank.tg14.gathering.org>2014-04-15 13:49:39 +0200
commit46959e031175a33d9a7ab52501323f7b1f9873e5 (patch)
tree64bd29cfed9b49dabb5b2ecb5a448fa5ec170748 /sql/nms.sql
parenta9515634b61b307440b8996685b4f0785be1cb48 (diff)
ipv6-dns v2 (fetich via SNMP, new DB schema)
Diffstat (limited to 'sql/nms.sql')
-rw-r--r--sql/nms.sql25
1 files changed, 4 insertions, 21 deletions
diff --git a/sql/nms.sql b/sql/nms.sql
index 002ae6b..fe5f4b8 100644
--- a/sql/nms.sql
+++ b/sql/nms.sql
@@ -347,34 +347,17 @@ CREATE TABLE dhcp (
ALTER TABLE public.dhcp OWNER TO nms;
+-- Name: seen_mac; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
--- Name: ipv4; Type: TABLE; Schema: public; Owner: nms; Tablespace:
---
-
-CREATE TABLE ipv4 (
- mac macaddr NOT NULL,
- address inet NOT NULL,
- "time" timestamp without time zone NOT NULL,
- age integer
-);
-
-ALTER TABLE public.ipv4 OWNER TO nms;
-
---
--- Name: ipv6; Type: TABLE; Schema: public; Owner: nms; Tablespace:
---
-
-CREATE TABLE ipv6 (
+CREATE TABLE seen_mac (
mac macaddr NOT NULL,
address inet NOT NULL,
- "time" timestamp with time zone NOT NULL,
- age integer,
- vlan text
+ seen timestamp with time zone DEFAULT now() NOT NULL
);
-ALTER TABLE public.ipv6 OWNER TO nms;
+ALTER TABLE public.seen_mac OWNER TO nms;
--
-- Name: mbd_log; Type: TABLE; Schema: public; Owner: nms; Tablespace: