Abills NMS: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
Строка 9: Строка 9:
   
 
<PRE>
 
<PRE>
dhcplog | CREATE TABLE `dhcplog` (
+
CREATE TABLE dhcplog (
`host` varchar(32) default NULL,
+
host varchar(32) default NULL,
`facility` varchar(10) default NULL,
+
facility varchar(10) default NULL,
`priority` varchar(10) default NULL,
+
priority varchar(10) default NULL,
`level` varchar(10) default NULL,
+
level varchar(10) default NULL,
`tag` varchar(10) default NULL,
+
tag varchar(10) default NULL,
`date` date default NULL,
+
date date default NULL,
`time` time default NULL,
+
time time default NULL,
`program` varchar(15) default NULL,
+
program varchar(15) default NULL,
`msg` text,
+
msg text,
`seq` int(10) unsigned NOT NULL auto_increment,
+
seq int(10) unsigned NOT NULL auto_increment,
`local_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
+
local_time timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`seq`),
+
PRIMARY KEY (seq),
KEY `host` (`host`),
+
KEY host (host),
KEY `seq` (`seq`),
+
KEY seq (seq),
KEY `program` (`program`),
+
KEY program (program),
KEY `time` (`time`),
+
KEY time (time),
KEY `date` (`date`),
+
KEY date (date),
KEY `priority` (`priority`),
+
KEY priority (priority),
KEY `facility` (`facility`)
+
KEY facility (facility)
 
) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=latin1
 
) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=latin1
 
</PRE>
 
</PRE>

Версия 19:49, 19 октября 2010

CREATE TABLE user_switch (
    uid int default NULL,
    switch_ip int default NULL,
    port int default NULL,
    vlan int default NULL
) TYPE=InnoDB;
CREATE TABLE dhcplog (
  host varchar(32) default NULL,
  facility varchar(10) default NULL,
  priority varchar(10) default NULL,
  level varchar(10) default NULL,
  tag varchar(10) default NULL,
  date date default NULL,
  time time default NULL,
  program varchar(15) default NULL,
  msg text,
  seq int(10) unsigned NOT NULL auto_increment,
  local_time timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (seq),
  KEY host (host),
  KEY seq (seq),
  KEY program (program),
  KEY time (time),
  KEY date (date),
  KEY priority (priority),
  KEY facility (facility)
) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=latin1