-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate
executable file
·86 lines (61 loc) · 1.87 KB
/
create
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
set -x
/usr/bin/initdb -D /home/data -E UNICODE --lc-collate=C --lc-ctype=C -U postgres
ln -s /var/lib/pgsql/data /home/data
/etc/init.d/postgresql start
/usr/bin/createdb -T template1 -E UNICODE -h localhost -U postgres watcher
/usr/bin/psql -h localhost -U postgres watcher -c "create table arc_cid (
epochtime timestamp with time zone not null,
cid int8 not null,
solrcnt int8 not null,
cstnam text not null,
solrlabel text not null,
solrseg smallint not null,
solrej int4 not null,
sizemb int8 not null,
masrej int4 not null,
mscnt int4 not null,
usrcnt int8 not null,
solrndxbklg int8 not null,
solrseqnum int8 not null,
ndx24 int8 not null,
primary key (epochtime,cid))"
/usr/bin/psql -h localhost -U postgres watcher -c "create table arc_mailsource (
ms_epochtime timestamp with time zone not null,
cid int8 not null,
sid int8 not null,
cstnam text not null,
ms_status smallint not null,
ms_host text not null,
ms_user text not null,
ms_port int not null,
ms_type text not null,
ms_name text not null,
ms_desc text not null,
ms_backlog int8 not null,
primary key (ms_epochtime,cid,sid))"
/usr/bin/psql -h localhost -U postgres watcher -c "create table arc_server (
epochtime timestamp with time zone not null,
srv_ip inet not null,
srv_type char(4) not null,
datacenter text not null,
DNScnt int4 not null,
dircnt int4 not null,
diskfree int8 not null,
primary key (epochtime,srv_ip))"
/usr/bin/psql -h localhost -U postgres watcher -c "create table arc_storage (
epochtime timestamp with time zone not null,
ip inet not null,
mp text not null,
nfsused int8 not null,
nfsfree int8 not null,
primary key (epochtime, ip, mp))"
###
###/usr/bin/psql -h localhost -U postgres watcher -c "create table arc_dnsdirector (
###
###epochtime timestamp with time zone not null,
###cid int8 not null,
###solrlabel text not null,
###
###primary key (epochtime, cid))"
###