forked from opennetadmin/ona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathona-data.xml
198 lines (168 loc) · 12.5 KB
/
ona-data.xml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<?xml version="1.0"?>
<schema version="0.3">
<sql>
<!-- This file populates default data to a brand new OpenNetAdmin install only -->
<query>INSERT INTO `configuration_types` VALUES (1,'IOS_CONFIG'),(2,'IOS_VERSION'),(3,'NS_CONFIG'),(4,'NS_VERSION'),(5,'UCS_CONFIG'),(6,'UCS_VERSION');</query>
<query>INSERT INTO `custom_attribute_types` VALUES
(1,'nmap_scan','Used to determine if this subnet should be scanned by Nmap based tools.','/^[Y|N]$/','Must be either Y or N');
</query>
<query>INSERT INTO `dcm_module_list` VALUES
('add_permission', 'Add new security permission', 'permissions.inc.php'),
('domain_display','Displays an existing domain','ona/domain.inc.php'),
('get_module_list','Returns the list of available modules','get_module_list.inc.php'),
('mangle_ip','Converts between various IP address representations','mangle.inc.php'),
('mysql_purge_logs','Purges unused replication logs on MySQL masters','mysql_purge_logs.inc.php'),
('subnet_add','Add a new subnet','ona/subnet.inc.php'),
('subnet_modify','Modify an existing subnet','ona/subnet.inc.php'),
('subnet_del','Delete an existing subnet','ona/subnet.inc.php'),
('subnet_display','Display an existing subnet','ona/subnet.inc.php'),
('subnet_nextip','Return the next available IP address on a subnet','ona/subnet.inc.php'),
('host_add','Add a new host','ona/host.inc.php'),
('host_display','Display an existing host','ona/host.inc.php'),
('host_modify','Modify an existing host','ona/host.inc.php'),
('host_del','Delete an existing host','ona/host.inc.php'),
('interface_add','Add an interface to an existing host','ona/interface.inc.php'),
('interface_modify','Modify an existing interface','ona/interface.inc.php'),
('interface_del','Delete an existing interface','ona/interface.inc.php'),
('interface_display','Displays details of an existing interface','ona/interface.inc.php'),
('interface_move','Move an interface from one subnet to another','ona/interface.inc.php'),
('domain_add','Adds a domain entry into the IP database','ona/domain.inc.php'),
('domain_del','Deletes a domain from the IP database','ona/domain.inc.php'),
('domain_modify','Updates an domain record in the IP database','ona/domain.inc.php'),
('dhcp_pool_add','Add DHCP pools','ona/dhcp_pool.inc.php'),
('dhcp_pool_modify','Modify DHCP pools','ona/dhcp_pool.inc.php'),
('dhcp_pool_del','Delete a DHCP pool','ona/dhcp_pool.inc.php'),
('dhcp_entry_add','Add a DHCP option entry','ona/dhcp_entry.inc.php'),
('dhcp_entry_del','Delete a DHCP option entry','ona/dhcp_entry.inc.php'),
('dhcp_entry_modify','Modify DHCP option entry','ona/dhcp_entry.inc.php'),
('message_add','Add a message to a subnet or host that will show on a display page','ona/message.inc.php'),
('block_add','Add an ip block range','ona/block.inc.php'),
('block_del','Delete an ip block','ona/block.inc.php'),
('block_modify','Modify ip blocks','ona/block.inc.php'),
('config_add','Adds a configuration to the database','ona/configuration.inc.php'),
('config_chksum','Displays the chksum of a config record from the database','ona/configuration.inc.php'),
('config_display','Displays a config record from the database','ona/configuration.inc.php'),
('dhcp_server_add','Add a DHCP server to subnet relationship','ona/dhcp_server.inc.php'),
('dhcp_server_del','Delete a DHCP server to subnet relationship','ona/dhcp_server.inc.php'),
('dns_record_add','Add a DNS record','ona/dns_record.inc.php'),
('dns_record_display','Display info about a DNS record','ona/dns_record.inc.php'),
('dns_record_del','Delete a DNS record','ona/dns_record.inc.php'),
('dns_record_modify','Modify a DNS record','ona/dns_record.inc.php'),
('domain_server_add','Add a DNS domain to a server','ona/domain_server.inc.php'),
('domain_server_del','Delete a DNS domain from a server','ona/domain_server.inc.php'),
('dhcp_failover_group_del','Delete a DHCP failover group','ona/dhcp_failover.inc.php'),
('interface_move_host','Moves an interface from one host to another','ona/interface.inc.php'),
('interface_share','Share an existing interface with another host','ona/interface.inc.php'),
('interface_share_del','Delete an interface share entry','ona/interface.inc.php'),
('vlan_campus_add','Add a VLAN campus (VTP Domain)','ona/vlan_campus.inc.php'),
('vlan_campus_del','Delete a VLAN campus','ona/vlan_campus.inc.php'),
('vlan_campus_modify','Modify a VLAN campus record','ona/vlan_campus.inc.php'),
('vlan_campus_display','Display a VLAN campus record','ona/vlan_campus.inc.php'),
('vlan_add','Add a VLAN','ona/vlan.inc.php'),
('vlan_del','Delete a VLAN','ona/vlan.inc.php'),
('vlan_modify','Modify a VLAN','ona/vlan.inc.php'),
('dhcp_failover_group_add', 'Add servers to a DHCP failover group', 'ona/dhcp_failover.inc.php'),
('dhcp_failover_group_modify', 'Modify a DHCP failover group', 'ona/dhcp_failover.inc.php'),
('dhcp_failover_group_display', 'Display a DHCP failover group', 'ona/dhcp_failover.inc.php'),
('config_diff', 'Display unix diff of configs', 'ona/configuration.inc.php'),
('nat_add', 'Add external NAT IP to existing internal IP', 'ona/interface.inc.php'),
('nat_del', 'Delete external NAT IP from existing internal IP', 'ona/interface.inc.php'),
('location_add', 'Add a location record', 'ona/location.inc.php'),
('location_modify', 'Modify a location record', 'ona/location.inc.php'),
('location_del', 'Delete a location', 'ona/location.inc.php'),
('custom_attribute_add', 'Add a custom attribute', 'ona/custom_attribute.inc.php'),
('custom_attribute_del', 'Delete a custom attribute', 'ona/custom_attribute.inc.php'),
('custom_attribute_modify', 'Modify a custom attribute', 'ona/custom_attribute.inc.php'),
('custom_attribute_display', 'Display a custom attribute', 'ona/custom_attribute.inc.php'),
('custom_attribute_type_display', 'Display a custom attribute type', 'ona/custom_attribute.inc.php'),
('add_module', 'Register a new DCM module', 'get_module_list.inc.php'),
('report_run', 'Run a report', 'report_run.inc.php'),
('tag_add', 'Add a tag to an object', 'ona/tag.inc.php'),
('tag_del', 'Delete a tag from an object', 'ona/tag.inc.php'),
('ona_sql', 'Perform basic SQL operations on the database', 'sql.inc.php');</query>
<query>INSERT INTO `device_types` VALUES (1,1,1),(2,9,11),(3,2,13),(4,4,2),(5,5,3),(6,9,12);</query>
<query>INSERT INTO `dhcp_options` VALUES (1,'subnet-mask',1,'I','Subnet Mask',1),(2,'routers',3,'L','Default Gateway',1),(3,'domain-name-servers',6,'L','DNS Name Servers',1),(4,'domain-name',15,'S','Default domain',1),(5,'host-name',12,'S','Host Name',1),(6,'vendor-encapsulated-options',43,'S','Vendor Ecapsulated Options',1),(7,'netbios-name-servers',44,'L','Netbios Name Servers',1),(8,'netbios-node-type',46,'N','Netbios Node Type',1),(9,'netbios-scope',47,'S','Netbios Scope',1),(10,'vendor-class-identifier',60,'S','Vendor Class Identifier',1),(11,'tftp-server-name',66,'S','TFTP Server Name',1),(12,'bootfile-name',67,'S','Bootfile Name',1);</query>
<query>INSERT INTO dns_views (id, name, description) VALUES ( '0', 'DEFAULT', 'Default view for dns records')</query>
<query>INSERT INTO `manufacturers` VALUES (7,'Adtran'),(8,'Allied Telesyn'),(9,'Cabletron'),(1,'Cisco'),(5,'Dell'),(10,'Extreme Networks'),(4,'Hewlett Packard'),(6,'IBM'),(2,'Juniper'),(3,'Unknown');</query>
<query>INSERT INTO `models` VALUES (1,1,'2821',''),(2,4,'dv9000t',''),(3,4,'4000m',''),(4,4,'8000m',''),(5,4,'LJ5000',''),(6,1,'2948G-L3',''),(7,5,'Optiplex GS560',''),(8,9,'24TXM-GLS',''),(9,3,'Unknown',''),(10,6,'Netfinity 2232','');</query>
<query>INSERT INTO `roles` VALUES (12,'Bulk loaded'),(13,'laptop'),(11,'Manually loaded'),(3,'printer'),(1,'router'),(4,'server'),(2,'switch'),(7,'wireless access point'),(5,'workstation');</query>
<query>INSERT INTO `sequences` VALUES ('blocks',4),('configurations',1),('configuration_types',5),('custom_attribute_types',3),('devices',14),('device_types',7),('dhcp_options',14),('dhcp_option_entries',13),('dhcp_pools',3),('dhcp_server_subnets',6),('dns',62),('dns_server_domains',8),('domains',5),('hosts',22),('interfaces',28),('manufacturers',47),('models',11),('roles',14),('subnets',22),('subnet_types',14),('vlans',1),('vlan_campuses',5),('locations',1),('permissions',100),('tags',1);</query>
<query>INSERT INTO `subnet_types` VALUES (1,'loopback','Loopback','Loopback Interfaces (mostly for routers)'),(2,'','WAN',''),(7,'','VLAN',''),(10,'p2p','Point-to-Point',''),(11,'','VPN',''),(12,'','Wireless LAN',''),(13,'lan','LAN','Simple LAN');</query>
<query>INSERT INTO `groups` VALUES (17,'Default','Default user group',1),(18,'Admin','Admin group',99);</query>
<query>INSERT INTO `group_assignments` VALUES (1,17,1),(2,18,2);</query>
<query>INSERT INTO `sys_config` (`name`, `value`, `description`, `field_validation_rule`, `failed_rule_text`, `editable`, `deleteable`) VALUES
('authtype', 'local', 'Define standard authentication module to use', '', '', 1, 0),
('cookie_life', '172800', 'Sets the length of the session cookie. It is in seconds', '', '', 1, 0),
('date_format', 'M jS, g:ia', 'PHP text format for date values', '', '', 1, 0),
('debug', '0', 'Debug output level, the higher the number the more it logs', '', '', 1, 0),
('disable_guest', '0', 'Disable the autologin of the guest user.', '', '', 1, 0),
('dns_admin_email', 'hostmaster', 'per RFC 2412, defaults to hostmaster within the domain origin', '', '', 1, 0),
('dns_defaultdomain', 'example.com', 'Default DNS domain name', '', '', 1, 0),
('dns_default_ttl', '86400', 'this is the value of $TTL for the zone, used as the default value', '', '', 1, 0),
('dns_expiry', '3600', 'DNS expire time used in SOA', '', '', 1, 0),
('dns_minimum', '3600', 'DNS minimum TTL time, used as the negative caching value per RFC 2308', '', '', 1, 0),
('dns_primary_master', '', 'The fqdn of your default primary master DNS server, leave blank if not required', '', '', 1, 0),
('dns_refresh', '86400', 'DNS refresh time used in SOA', '', '', 1, 0),
('dns_retry', '3600', 'DNS retry time used in SOA', '', '', 1, 0),
('dns_views', '0', 'Enable support for DNS views.', '', '', 0, 0),
('logfile', '/var/log/ona.log', 'Local filesystem path to log messages', '', '', 1, 0),
('log_to_db', '0', 'Log only level 0 messages to the database.', '', '', 1, 0),
('search_results_per_page', '10', 'Sets the amount of rows per page in list items', '', '', 1, 0),
('stdout', '0', 'Flag to allow logging via STDOUT.. This is extreme debugging, not recomended.', '', '', 0, 0),
('suggest_max_results', '10', 'Limits the amount of rows returned by queries. (test impact of changing this first)', '', '', 1, 0),
('syslog', '0', 'Log via syslog, only works if debug is set to 0', '', '', 0, 0),
('version', 'not-set', 'Tracks current installed version, used to detect when upgrades should be done.', '', '', 0, 0),
('upgrade_index', '13', 'Tracks current upgrade index, used to perform database upgrades.', '', '', 0, 0);</query>
<query>INSERT INTO `users` VALUES (1,'guest','098f6bcd4621d373cade4e832627b4f6',0,'2007-10-30 02:55:37','2007-12-02 23:44:21'),(2,'admin','21232f297a57a5a743894a0e4a801fc3',0,'2007-10-30 03:00:17','2007-12-02 22:10:26');</query>
<query>INSERT INTO `permissions` VALUES
(1,'dns_record_add','Add a DNS record'),
(2,'dns_record_modify','Modify a DNS record'),
(3,'dns_record_del','Delete a DNS record'),
(4,'host_add','Add hosts and interfaces'),
(5,'host_modify','Modify hosts'),
(6,'host_del','Delete hosts'),
(7,'user_admin','User Administrator'),
(8,'subnet_add','Add subnets'),
(9,'subnet_modify','Modify subnets'),
(10,'subnet_del','Delete subnets'),
(11,'interface_modify','Modify interface records'),
(12,'interface_del','Delete interface records'),
(13,'advanced','Advanced Maintenance'),
(14,'host_config_admin','Host config archive admin'),
(15,'template_admin','Template system admin'),
(16,'vlan_add','Add VLANs and VLAN Campuses'),
(17,'vlan_del','Delete VLANs and VLAN Campuses'),
(18,'vlan_modify','Modify VLANs and VLAN Campuses'),
( '100019', 'location_del', 'Delete a location'),
( '100020', 'location_add', 'Add a location'),
( '100021', 'ona_sql', 'Perform SQL operations on the ONA tables'),
( '100022', 'custom_attribute_add', 'Add custom attribute'),
( '100023', 'custom_attribute_del', 'Delete custom attribute'),
( '100024', 'custom_attribute_modify', 'Modify custom attribute');</query>
<query>INSERT INTO `permission_assignments` VALUES
(1,1,0,18),
(2,2,0,18),
(3,3,0,18),
(4,4,0,18),
(5,5,0,18),
(6,6,0,18),
(7,7,0,18),
(8,8,0,18),
(9,9,0,18),
(10,10,0,18),
(11,11,0,18),
(12,12,0,18),
(13,13,0,18),
(14,14,0,18),
(15,15,0,18),
(16,16,0,18),
(17,17,0,18),
(18,18,0,18),
('100001', '100019', '0', 18),
('100002', '100020', '0', 18),
('100003', '100021', '0', 18),
('100004', '100022', '0', 18),
('100005', '100023', '0', 18),
('100006', '100024', '0', 18);</query>
</sql>
</schema>