mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
new schema
git-svn-id: http://www.observium.org/svn/observer/trunk@415 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
422
mysql-schema.sql
422
mysql-schema.sql
@@ -1,56 +1,48 @@
|
|||||||
-- MySQL dump 10.11
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Host: localhost Database: observer
|
-- Database: `observer`
|
||||||
-- ------------------------------------------------------
|
--
|
||||||
-- Server version 5.0.67-0ubuntu6-log
|
|
||||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
-- --------------------------------------------------------
|
||||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
||||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
||||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
||||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
||||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `alerts`
|
-- Table structure for table `alerts`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `alerts` (
|
||||||
SET character_set_client = utf8;
|
`id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `alerts` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`importance` int(11) NOT NULL default '0',
|
`importance` int(11) NOT NULL default '0',
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`message` text NOT NULL,
|
`message` text NOT NULL,
|
||||||
`time_logged` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`time_logged` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
||||||
`alerted` smallint(6) NOT NULL default '0',
|
`alerted` smallint(6) NOT NULL default '0',
|
||||||
KEY `id` (`id`)
|
KEY `id` (`id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `authlog`
|
-- Table structure for table `authlog`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `authlog` (
|
||||||
SET character_set_client = utf8;
|
`id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `authlog` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`datetime` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`datetime` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
||||||
`user` text NOT NULL,
|
`user` text NOT NULL,
|
||||||
`address` text NOT NULL,
|
`address` text NOT NULL,
|
||||||
`result` text NOT NULL,
|
`result` text NOT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `bgpPeers`
|
-- Table structure for table `bgpPeers`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `bgpPeers` (
|
||||||
SET character_set_client = utf8;
|
`bgpPeer_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `bgpPeers` (
|
|
||||||
`bgpPeer_id` int(11) NOT NULL,
|
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`astext` varchar(64) NOT NULL,
|
`astext` varchar(64) NOT NULL,
|
||||||
`bgpPeerIdentifier` text NOT NULL,
|
`bgpPeerIdentifier` text NOT NULL,
|
||||||
@@ -67,31 +59,45 @@ CREATE TABLE `bgpPeers` (
|
|||||||
`bgpPeerInUpdateElapsedTime` int(11) NOT NULL,
|
`bgpPeerInUpdateElapsedTime` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`bgpPeer_id`),
|
PRIMARY KEY (`bgpPeer_id`),
|
||||||
KEY `device_id` (`device_id`)
|
KEY `device_id` (`device_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `bgpPeers_cbgp`
|
-- Table structure for table `bgpPeers_cbgp`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `bgpPeers_cbgp` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `bgpPeers_cbgp` (
|
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`bgpPeerIdentifier` varchar(64) NOT NULL,
|
`bgpPeerIdentifier` varchar(64) NOT NULL,
|
||||||
`afi` varchar(8) NOT NULL,
|
`afi` varchar(8) NOT NULL,
|
||||||
`safi` varchar(8) NOT NULL,
|
`safi` varchar(8) NOT NULL,
|
||||||
KEY `device_id` (`device_id`,`bgpPeerIdentifier`)
|
KEY `device_id` (`device_id`,`bgpPeerIdentifier`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `bills`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `bills` (
|
||||||
|
`bill_id` int(11) NOT NULL auto_increment,
|
||||||
|
`bill_name` text NOT NULL,
|
||||||
|
`bill_type` text NOT NULL,
|
||||||
|
`bill_cdr` int(11) default NULL,
|
||||||
|
`bill_day` int(11) NOT NULL default '1',
|
||||||
|
`bill_gb` int(11) default NULL,
|
||||||
|
UNIQUE KEY `bill_id` (`bill_id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `bill_data`
|
-- Table structure for table `bill_data`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `bill_data` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `bill_data` (
|
|
||||||
`bill_id` int(11) NOT NULL,
|
`bill_id` int(11) NOT NULL,
|
||||||
`timestamp` datetime NOT NULL,
|
`timestamp` datetime NOT NULL,
|
||||||
`period` int(11) NOT NULL,
|
`period` int(11) NOT NULL,
|
||||||
@@ -99,58 +105,38 @@ CREATE TABLE `bill_data` (
|
|||||||
`in_delta` bigint(11) NOT NULL,
|
`in_delta` bigint(11) NOT NULL,
|
||||||
`out_delta` bigint(11) NOT NULL,
|
`out_delta` bigint(11) NOT NULL,
|
||||||
KEY `bill_id` (`bill_id`)
|
KEY `bill_id` (`bill_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `bill_perms`
|
-- Table structure for table `bill_perms`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `bill_perms` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `bill_perms` (
|
|
||||||
`user_id` int(11) NOT NULL,
|
`user_id` int(11) NOT NULL,
|
||||||
`bill_id` int(11) NOT NULL
|
`bill_id` int(11) NOT NULL
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `bill_ports`
|
-- Table structure for table `bill_ports`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `bill_ports` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `bill_ports` (
|
|
||||||
`bill_id` int(11) NOT NULL,
|
`bill_id` int(11) NOT NULL,
|
||||||
`port_id` int(11) NOT NULL
|
`port_id` int(11) NOT NULL
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
|
||||||
--
|
-- --------------------------------------------------------
|
||||||
-- Table structure for table `bills`
|
|
||||||
--
|
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `bills` (
|
|
||||||
`bill_id` int(11) NOT NULL,
|
|
||||||
`bill_name` text NOT NULL,
|
|
||||||
`bill_type` text NOT NULL,
|
|
||||||
`bill_cdr` int(11) default NULL,
|
|
||||||
`bill_day` int(11) NOT NULL default '1',
|
|
||||||
`bill_gb` int(11) default NULL,
|
|
||||||
UNIQUE KEY `bill_id` (`bill_id`)
|
|
||||||
);
|
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `cempMemPool`
|
-- Table structure for table `cempMemPool`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `cempMemPool` (
|
||||||
SET character_set_client = utf8;
|
`cempMemPool_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `cempMemPool` (
|
|
||||||
`cempMemPool_id` int(11) NOT NULL,
|
|
||||||
`Index` varchar(8) NOT NULL,
|
`Index` varchar(8) NOT NULL,
|
||||||
`entPhysicalIndex` int(11) NOT NULL,
|
`entPhysicalIndex` int(11) NOT NULL,
|
||||||
`cempMemPoolType` varchar(32) NOT NULL,
|
`cempMemPoolType` varchar(32) NOT NULL,
|
||||||
@@ -163,17 +149,16 @@ CREATE TABLE `cempMemPool` (
|
|||||||
`cempMemPoolLowestFree` int(11) NOT NULL,
|
`cempMemPoolLowestFree` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`cempMemPool_id`),
|
PRIMARY KEY (`cempMemPool_id`),
|
||||||
KEY `device_id` (`device_id`)
|
KEY `device_id` (`device_id`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `cpmCPU`
|
-- Table structure for table `cpmCPU`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `cpmCPU` (
|
||||||
SET character_set_client = utf8;
|
`cpmCPU_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `cpmCPU` (
|
|
||||||
`cpmCPU_id` int(11) NOT NULL,
|
|
||||||
`entPhysicalIndex` int(11) NOT NULL,
|
`entPhysicalIndex` int(11) NOT NULL,
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`cpmCPU_oid` int(11) NOT NULL,
|
`cpmCPU_oid` int(11) NOT NULL,
|
||||||
@@ -181,34 +166,32 @@ CREATE TABLE `cpmCPU` (
|
|||||||
`entPhysicalDescr` varchar(64) NOT NULL,
|
`entPhysicalDescr` varchar(64) NOT NULL,
|
||||||
PRIMARY KEY (`cpmCPU_id`),
|
PRIMARY KEY (`cpmCPU_id`),
|
||||||
KEY `cpuCPU_id` (`cpmCPU_id`,`device_id`)
|
KEY `cpuCPU_id` (`cpmCPU_id`,`device_id`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `customers`
|
-- Table structure for table `customers`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `customers` (
|
||||||
SET character_set_client = utf8;
|
`customer_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `customers` (
|
|
||||||
`customer_id` int(11) NOT NULL,
|
|
||||||
`username` char(64) NOT NULL,
|
`username` char(64) NOT NULL,
|
||||||
`password` char(32) NOT NULL,
|
`password` char(32) NOT NULL,
|
||||||
`string` char(64) NOT NULL,
|
`string` char(64) NOT NULL,
|
||||||
`level` tinyint(4) NOT NULL default '0',
|
`level` tinyint(4) NOT NULL default '0',
|
||||||
PRIMARY KEY (`customer_id`),
|
PRIMARY KEY (`customer_id`),
|
||||||
UNIQUE KEY `username` (`username`)
|
UNIQUE KEY `username` (`username`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `devices`
|
-- Table structure for table `devices`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `devices` (
|
||||||
SET character_set_client = utf8;
|
`device_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `devices` (
|
|
||||||
`device_id` int(11) NOT NULL,
|
|
||||||
`hostname` varchar(128) NOT NULL,
|
`hostname` varchar(128) NOT NULL,
|
||||||
`sysName` varchar(128) default NULL,
|
`sysName` varchar(128) default NULL,
|
||||||
`community` varchar(32) NOT NULL,
|
`community` varchar(32) NOT NULL,
|
||||||
@@ -225,7 +208,7 @@ CREATE TABLE `devices` (
|
|||||||
`status` tinyint(4) NOT NULL default '0',
|
`status` tinyint(4) NOT NULL default '0',
|
||||||
`ignore` tinyint(4) NOT NULL default '0',
|
`ignore` tinyint(4) NOT NULL default '0',
|
||||||
`disabled` tinyint(1) NOT NULL default '0',
|
`disabled` tinyint(1) NOT NULL default '0',
|
||||||
`lastchange` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`lastchange` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||||
`last_polled` timestamp NOT NULL default '0000-00-00 00:00:00',
|
`last_polled` timestamp NOT NULL default '0000-00-00 00:00:00',
|
||||||
`purpose` varchar(64) default NULL,
|
`purpose` varchar(64) default NULL,
|
||||||
`type` varchar(8) NOT NULL default 'other',
|
`type` varchar(8) NOT NULL default 'other',
|
||||||
@@ -234,47 +217,44 @@ CREATE TABLE `devices` (
|
|||||||
KEY `hostname` (`hostname`),
|
KEY `hostname` (`hostname`),
|
||||||
KEY `sysName` (`sysName`),
|
KEY `sysName` (`sysName`),
|
||||||
KEY `os` (`os`)
|
KEY `os` (`os`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `devices_attribs`
|
-- Table structure for table `devices_attribs`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `devices_attribs` (
|
||||||
SET character_set_client = utf8;
|
`attrib_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `devices_attribs` (
|
|
||||||
`attrib_id` int(11) NOT NULL,
|
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`attrib_type` varchar(32) NOT NULL,
|
`attrib_type` varchar(32) NOT NULL,
|
||||||
`attrib_value` text NOT NULL,
|
`attrib_value` text NOT NULL,
|
||||||
`updated` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`updated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`attrib_id`)
|
PRIMARY KEY (`attrib_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `devices_perms`
|
-- Table structure for table `devices_perms`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `devices_perms` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `devices_perms` (
|
|
||||||
`user_id` int(11) NOT NULL,
|
`user_id` int(11) NOT NULL,
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`access_level` int(4) NOT NULL default '0',
|
`access_level` int(4) NOT NULL default '0',
|
||||||
KEY `user_id` (`user_id`)
|
KEY `user_id` (`user_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `entPhysical`
|
-- Table structure for table `entPhysical`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `entPhysical` (
|
||||||
SET character_set_client = utf8;
|
`entPhysical_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `entPhysical` (
|
|
||||||
`entPhysical_id` int(11) NOT NULL,
|
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
`entPhysicalIndex` int(11) NOT NULL,
|
`entPhysicalIndex` int(11) NOT NULL,
|
||||||
`entPhysicalDescr` text NOT NULL,
|
`entPhysicalDescr` text NOT NULL,
|
||||||
@@ -289,16 +269,15 @@ CREATE TABLE `entPhysical` (
|
|||||||
`ifIndex` int(11) default NULL,
|
`ifIndex` int(11) default NULL,
|
||||||
PRIMARY KEY (`entPhysical_id`),
|
PRIMARY KEY (`entPhysical_id`),
|
||||||
KEY `device_id` (`device_id`)
|
KEY `device_id` (`device_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `eventlog`
|
-- Table structure for table `eventlog`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `eventlog` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `eventlog` (
|
|
||||||
`id` int(11) NOT NULL default '0',
|
`id` int(11) NOT NULL default '0',
|
||||||
`host` int(11) NOT NULL default '0',
|
`host` int(11) NOT NULL default '0',
|
||||||
`interface` int(11) default NULL,
|
`interface` int(11) default NULL,
|
||||||
@@ -306,17 +285,16 @@ CREATE TABLE `eventlog` (
|
|||||||
`message` text NOT NULL,
|
`message` text NOT NULL,
|
||||||
`type` int(11) NOT NULL,
|
`type` int(11) NOT NULL,
|
||||||
KEY `host` (`host`)
|
KEY `host` (`host`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `interfaces`
|
-- Table structure for table `interfaces`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `interfaces` (
|
||||||
SET character_set_client = utf8;
|
`interface_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `interfaces` (
|
|
||||||
`interface_id` int(11) NOT NULL,
|
|
||||||
`device_id` int(11) NOT NULL default '0',
|
`device_id` int(11) NOT NULL default '0',
|
||||||
`ifDescr` varchar(128) NOT NULL,
|
`ifDescr` varchar(128) NOT NULL,
|
||||||
`ifIndex` int(11) default '0',
|
`ifIndex` int(11) default '0',
|
||||||
@@ -329,7 +307,7 @@ CREATE TABLE `interfaces` (
|
|||||||
`ifAlias` text,
|
`ifAlias` text,
|
||||||
`ifPhysAddress` text,
|
`ifPhysAddress` text,
|
||||||
`ifHardType` varchar(64) default NULL,
|
`ifHardType` varchar(64) default NULL,
|
||||||
`ifLastChange` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`ifLastChange` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||||
`ifVlan` varchar(8) NOT NULL default '',
|
`ifVlan` varchar(8) NOT NULL default '',
|
||||||
`ifTrunk` varchar(8) default '',
|
`ifTrunk` varchar(8) default '',
|
||||||
`ifVrf` int(11) NOT NULL,
|
`ifVrf` int(11) NOT NULL,
|
||||||
@@ -346,59 +324,55 @@ CREATE TABLE `interfaces` (
|
|||||||
KEY `host` (`device_id`),
|
KEY `host` (`device_id`),
|
||||||
KEY `snmpid` (`ifIndex`),
|
KEY `snmpid` (`ifIndex`),
|
||||||
KEY `if_2` (`ifDescr`)
|
KEY `if_2` (`ifDescr`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `interfaces_perms`
|
-- Table structure for table `interfaces_perms`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `interfaces_perms` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `interfaces_perms` (
|
|
||||||
`user_id` int(11) NOT NULL,
|
`user_id` int(11) NOT NULL,
|
||||||
`interface_id` int(11) NOT NULL,
|
`interface_id` int(11) NOT NULL,
|
||||||
`access_level` int(11) NOT NULL
|
`access_level` int(11) NOT NULL
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `ipv4_addresses`
|
-- Table structure for table `ipv4_addresses`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `ipv4_addresses` (
|
||||||
SET character_set_client = utf8;
|
`ipv4_address_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `ipv4_addresses` (
|
|
||||||
`ipv4_address_id` int(11) NOT NULL,
|
|
||||||
`ipv4_address` varchar(32) NOT NULL,
|
`ipv4_address` varchar(32) NOT NULL,
|
||||||
`ipv4_prefixlen` int(11) NOT NULL,
|
`ipv4_prefixlen` int(11) NOT NULL,
|
||||||
`ipv4_network_id` varchar(32) NOT NULL,
|
`ipv4_network_id` varchar(32) NOT NULL,
|
||||||
`interface_id` int(11) NOT NULL,
|
`interface_id` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`ipv4_address_id`)
|
PRIMARY KEY (`ipv4_address_id`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `ipv4_networks`
|
-- Table structure for table `ipv4_networks`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `ipv4_networks` (
|
||||||
SET character_set_client = utf8;
|
`ipv4_network_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `ipv4_networks` (
|
|
||||||
`ipv4_network_id` int(11) NOT NULL,
|
|
||||||
`ipv4_network` varchar(64) NOT NULL,
|
`ipv4_network` varchar(64) NOT NULL,
|
||||||
PRIMARY KEY (`ipv4_network_id`)
|
PRIMARY KEY (`ipv4_network_id`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `ipv6_addresses`
|
-- Table structure for table `ipv6_addresses`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `ipv6_addresses` (
|
||||||
SET character_set_client = utf8;
|
`ipv6_address_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `ipv6_addresses` (
|
|
||||||
`ipv6_address_id` int(11) NOT NULL,
|
|
||||||
`ipv6_address` varchar(128) NOT NULL,
|
`ipv6_address` varchar(128) NOT NULL,
|
||||||
`ipv6_compressed` varchar(128) NOT NULL,
|
`ipv6_compressed` varchar(128) NOT NULL,
|
||||||
`ipv6_prefixlen` int(11) NOT NULL,
|
`ipv6_prefixlen` int(11) NOT NULL,
|
||||||
@@ -406,30 +380,28 @@ CREATE TABLE `ipv6_addresses` (
|
|||||||
`ipv6_network_id` varchar(128) NOT NULL,
|
`ipv6_network_id` varchar(128) NOT NULL,
|
||||||
`interface_id` int(11) NOT NULL,
|
`interface_id` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`ipv6_address_id`)
|
PRIMARY KEY (`ipv6_address_id`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `ipv6_networks`
|
-- Table structure for table `ipv6_networks`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `ipv6_networks` (
|
||||||
SET character_set_client = utf8;
|
`ipv6_network_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `ipv6_networks` (
|
|
||||||
`ipv6_network_id` int(11) NOT NULL,
|
|
||||||
`ipv6_network` varchar(64) NOT NULL,
|
`ipv6_network` varchar(64) NOT NULL,
|
||||||
PRIMARY KEY (`ipv6_network_id`)
|
PRIMARY KEY (`ipv6_network_id`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `links`
|
-- Table structure for table `links`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `links` (
|
||||||
SET character_set_client = utf8;
|
`id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `links` (
|
|
||||||
`id` int(11) NOT NULL,
|
|
||||||
`src_if` int(11) default NULL,
|
`src_if` int(11) default NULL,
|
||||||
`dst_if` int(11) default NULL,
|
`dst_if` int(11) default NULL,
|
||||||
`active` tinyint(4) NOT NULL default '1',
|
`active` tinyint(4) NOT NULL default '1',
|
||||||
@@ -437,17 +409,16 @@ CREATE TABLE `links` (
|
|||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `src_if` (`src_if`),
|
KEY `src_if` (`src_if`),
|
||||||
KEY `dst_if` (`dst_if`)
|
KEY `dst_if` (`dst_if`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `mac_accounting`
|
-- Table structure for table `mac_accounting`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `mac_accounting` (
|
||||||
SET character_set_client = utf8;
|
`ma_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `mac_accounting` (
|
|
||||||
`ma_id` int(11) NOT NULL,
|
|
||||||
`interface_id` int(11) NOT NULL,
|
`interface_id` int(11) NOT NULL,
|
||||||
`peer_ip` varchar(32) NOT NULL,
|
`peer_ip` varchar(32) NOT NULL,
|
||||||
`peer_desc` varchar(64) NOT NULL,
|
`peer_desc` varchar(64) NOT NULL,
|
||||||
@@ -458,64 +429,60 @@ CREATE TABLE `mac_accounting` (
|
|||||||
`bps_out` int(11) NOT NULL,
|
`bps_out` int(11) NOT NULL,
|
||||||
`bps_in` int(11) NOT NULL,
|
`bps_in` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`ma_id`)
|
PRIMARY KEY (`ma_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `port_in_measurements`
|
-- Table structure for table `port_in_measurements`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `port_in_measurements` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `port_in_measurements` (
|
|
||||||
`port_id` int(11) NOT NULL,
|
`port_id` int(11) NOT NULL,
|
||||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||||
`counter` bigint(11) NOT NULL,
|
`counter` bigint(11) NOT NULL,
|
||||||
`delta` bigint(11) NOT NULL,
|
`delta` bigint(11) NOT NULL,
|
||||||
KEY `port_id` (`port_id`)
|
KEY `port_id` (`port_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `port_out_measurements`
|
-- Table structure for table `port_out_measurements`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `port_out_measurements` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `port_out_measurements` (
|
|
||||||
`port_id` int(11) NOT NULL,
|
`port_id` int(11) NOT NULL,
|
||||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||||
`counter` bigint(11) NOT NULL,
|
`counter` bigint(11) NOT NULL,
|
||||||
`delta` bigint(11) NOT NULL,
|
`delta` bigint(11) NOT NULL,
|
||||||
KEY `port_id` (`port_id`)
|
KEY `port_id` (`port_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `pseudowires`
|
-- Table structure for table `pseudowires`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `pseudowires` (
|
||||||
SET character_set_client = utf8;
|
`pseudowire_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `pseudowires` (
|
|
||||||
`pseudowire_id` int(11) NOT NULL,
|
|
||||||
`interface_id` int(11) NOT NULL,
|
`interface_id` int(11) NOT NULL,
|
||||||
`peer_device_id` int(11) NOT NULL,
|
`peer_device_id` int(11) NOT NULL,
|
||||||
`peer_ldp_id` int(11) NOT NULL,
|
`peer_ldp_id` int(11) NOT NULL,
|
||||||
`cpwVcID` int(11) NOT NULL,
|
`cpwVcID` int(11) NOT NULL,
|
||||||
`cpwOid` int(11) NOT NULL,
|
`cpwOid` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`pseudowire_id`)
|
PRIMARY KEY (`pseudowire_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `services`
|
-- Table structure for table `services`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `services` (
|
||||||
SET character_set_client = utf8;
|
`service_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `services` (
|
|
||||||
`service_id` int(11) NOT NULL,
|
|
||||||
`service_host` int(11) NOT NULL,
|
`service_host` int(11) NOT NULL,
|
||||||
`service_ip` text NOT NULL,
|
`service_ip` text NOT NULL,
|
||||||
`service_type` varchar(16) NOT NULL,
|
`service_type` varchar(16) NOT NULL,
|
||||||
@@ -529,17 +496,16 @@ CREATE TABLE `services` (
|
|||||||
`service_disabled` tinyint(1) NOT NULL default '0',
|
`service_disabled` tinyint(1) NOT NULL default '0',
|
||||||
PRIMARY KEY (`service_id`),
|
PRIMARY KEY (`service_id`),
|
||||||
KEY `service_host` (`service_host`)
|
KEY `service_host` (`service_host`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `storage`
|
-- Table structure for table `storage`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `storage` (
|
||||||
SET character_set_client = utf8;
|
`storage_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `storage` (
|
|
||||||
`storage_id` int(11) NOT NULL,
|
|
||||||
`host_id` int(11) NOT NULL,
|
`host_id` int(11) NOT NULL,
|
||||||
`hrStorageIndex` int(11) NOT NULL,
|
`hrStorageIndex` int(11) NOT NULL,
|
||||||
`hrStorageDescr` text NOT NULL,
|
`hrStorageDescr` text NOT NULL,
|
||||||
@@ -548,16 +514,15 @@ CREATE TABLE `storage` (
|
|||||||
`hrStorageUsed` int(11) NOT NULL,
|
`hrStorageUsed` int(11) NOT NULL,
|
||||||
`storage_perc` text NOT NULL,
|
`storage_perc` text NOT NULL,
|
||||||
PRIMARY KEY (`storage_id`)
|
PRIMARY KEY (`storage_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `syslog`
|
-- Table structure for table `syslog`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `syslog` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `syslog` (
|
|
||||||
`host` varchar(64) NOT NULL,
|
`host` varchar(64) NOT NULL,
|
||||||
`device_id` int(11) default NULL,
|
`device_id` int(11) default NULL,
|
||||||
`facility` varchar(10) default NULL,
|
`facility` varchar(10) default NULL,
|
||||||
@@ -567,23 +532,22 @@ CREATE TABLE `syslog` (
|
|||||||
`datetime` datetime default NULL,
|
`datetime` datetime default NULL,
|
||||||
`program` varchar(32) default NULL,
|
`program` varchar(32) default NULL,
|
||||||
`msg` text,
|
`msg` text,
|
||||||
`seq` bigint(20) unsigned NOT NULL,
|
`seq` bigint(20) unsigned NOT NULL auto_increment,
|
||||||
`processed` tinyint(1) NOT NULL default '0',
|
`processed` tinyint(1) NOT NULL default '0',
|
||||||
PRIMARY KEY (`seq`),
|
PRIMARY KEY (`seq`),
|
||||||
KEY `datetime` (`datetime`),
|
KEY `datetime` (`datetime`),
|
||||||
KEY `device_id` (`device_id`),
|
KEY `device_id` (`device_id`),
|
||||||
KEY `processed` (`processed`)
|
KEY `processed` (`processed`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `temperature`
|
-- Table structure for table `temperature`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `temperature` (
|
||||||
SET character_set_client = utf8;
|
`temp_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `temperature` (
|
|
||||||
`temp_id` int(11) NOT NULL,
|
|
||||||
`temp_host` int(11) NOT NULL default '0',
|
`temp_host` int(11) NOT NULL default '0',
|
||||||
`temp_oid` varchar(64) NOT NULL,
|
`temp_oid` varchar(64) NOT NULL,
|
||||||
`temp_descr` varchar(32) NOT NULL default '',
|
`temp_descr` varchar(32) NOT NULL default '',
|
||||||
@@ -592,83 +556,71 @@ CREATE TABLE `temperature` (
|
|||||||
`temp_limit` tinyint(4) NOT NULL default '60',
|
`temp_limit` tinyint(4) NOT NULL default '60',
|
||||||
PRIMARY KEY (`temp_id`),
|
PRIMARY KEY (`temp_id`),
|
||||||
KEY `temp_host` (`temp_host`)
|
KEY `temp_host` (`temp_host`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `users`
|
-- Table structure for table `users`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `users` (
|
||||||
SET character_set_client = utf8;
|
`user_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `users` (
|
|
||||||
`user_id` int(11) NOT NULL,
|
|
||||||
`username` char(30) NOT NULL,
|
`username` char(30) NOT NULL,
|
||||||
`password` char(32) NOT NULL,
|
`password` char(32) NOT NULL,
|
||||||
`realname` text NOT NULL,
|
`realname` varchar(64) NOT NULL,
|
||||||
`email` text NOT NULL,
|
`email` varchar(64) NOT NULL,
|
||||||
`descr` char(30) NOT NULL,
|
`descr` char(30) NOT NULL,
|
||||||
`level` tinyint(4) NOT NULL default '0',
|
`level` tinyint(4) NOT NULL default '0',
|
||||||
PRIMARY KEY (`user_id`),
|
PRIMARY KEY (`user_id`),
|
||||||
UNIQUE KEY `username` (`username`)
|
UNIQUE KEY `username` (`username`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `users_prefs`
|
-- Table structure for table `users_prefs`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `users_prefs` (
|
||||||
SET character_set_client = utf8;
|
|
||||||
CREATE TABLE `users_prefs` (
|
|
||||||
`user_id` int(16) NOT NULL,
|
`user_id` int(16) NOT NULL,
|
||||||
`pref` varchar(32) NOT NULL,
|
`pref` varchar(32) NOT NULL,
|
||||||
`value` varchar(128) NOT NULL,
|
`value` varchar(128) NOT NULL,
|
||||||
PRIMARY KEY (`user_id`),
|
PRIMARY KEY (`user_id`),
|
||||||
UNIQUE KEY `user_id.pref` (`user_id`,`pref`),
|
UNIQUE KEY `user_id.pref` (`user_id`,`pref`),
|
||||||
KEY `pref` (`pref`)
|
KEY `pref` (`pref`)
|
||||||
);
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `vlans`
|
-- Table structure for table `vlans`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `vlans` (
|
||||||
SET character_set_client = utf8;
|
`vlan_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `vlans` (
|
|
||||||
`vlan_id` int(11) NOT NULL,
|
|
||||||
`device_id` int(11) default NULL,
|
`device_id` int(11) default NULL,
|
||||||
`vlan_vlan` int(11) default NULL,
|
`vlan_vlan` int(11) default NULL,
|
||||||
`vlan_domain` text,
|
`vlan_domain` text,
|
||||||
`vlan_descr` text,
|
`vlan_descr` text,
|
||||||
PRIMARY KEY (`vlan_id`),
|
PRIMARY KEY (`vlan_id`),
|
||||||
KEY `device_id` (`device_id`,`vlan_vlan`)
|
KEY `device_id` (`device_id`,`vlan_vlan`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `vrfs`
|
-- Table structure for table `vrfs`
|
||||||
--
|
--
|
||||||
|
|
||||||
SET @saved_cs_client = @@character_set_client;
|
CREATE TABLE IF NOT EXISTS `vrfs` (
|
||||||
SET character_set_client = utf8;
|
`vrf_id` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `vrfs` (
|
`vrf_oid` varchar(256) NOT NULL,
|
||||||
`vrf_id` int(11) NOT NULL,
|
|
||||||
`vrf_oid` varchar(64) NOT NULL,
|
|
||||||
`vrf_name` varchar(32) NOT NULL,
|
`vrf_name` varchar(32) NOT NULL,
|
||||||
`mplsVpnVrfRouteDistinguisher` varchar(16) NOT NULL,
|
`mplsVpnVrfRouteDistinguisher` varchar(16) NOT NULL,
|
||||||
`mplsVpnVrfDescription` text NOT NULL,
|
`mplsVpnVrfDescription` text NOT NULL,
|
||||||
`device_id` int(11) NOT NULL,
|
`device_id` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`vrf_id`),
|
PRIMARY KEY (`vrf_id`),
|
||||||
KEY `device_id` (`device_id`)
|
KEY `device_id` (`device_id`)
|
||||||
);
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
SET character_set_client = @saved_cs_client;
|
|
||||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
||||||
|
|
||||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
||||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
||||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
||||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
||||||
|
|
||||||
-- Dump completed on 2009-04-23 21:06:10
|
|
||||||
|
|||||||
Reference in New Issue
Block a user