| | |
| | | -- Table: inet_addr |
| | | -- |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.200', 'address 200'); |
| | | VALUES (inet '176.9.242.66', 'address 66'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.201', 'address 201'); |
| | | VALUES (inet '176.9.242.67', 'address 67'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.202', 'address 202'); |
| | | VALUES (inet '176.9.242.68', 'address 68'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.203', 'address 203'); |
| | | VALUES (inet '176.9.242.69', 'address 69'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.204', 'address 204'); |
| | | VALUES (inet '176.9.242.70', 'address 70'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.205', 'address 205'); |
| | | VALUES (inet '176.9.242.71', 'address 71'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.206', 'address 206'); |
| | | VALUES (inet '176.9.242.72', 'address 72'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.207', 'address 207'); |
| | | VALUES (inet '176.9.242.73', 'address 73'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.208', 'address 208'); |
| | | VALUES (inet '176.9.242.74', 'address 74'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.209', 'address 209'); |
| | | VALUES (inet '176.9.242.75', 'address 75'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '192.168.108.210', 'address 210'); |
| | | VALUES (inet '176.9.242.76', 'address 76'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '176.9.242.77', 'address 77'); |
| | | INSERT INTO inet_addr (inet_addr, description) |
| | | VALUES (inet '176.9.242.78', 'address 78'); |
| | | |
| | | -- |
| | | -- Table: Hive |
| | | -- |
| | | INSERT INTO hive (hive_name, inet_addr_id, description) |
| | | SELECT 'h81', inet_addr_id, 'Test Hive h081' FROM inet_addr WHERE inet_addr = inet '192.168.108.200'; |
| | | SELECT 'h81', inet_addr_id, 'Test Hive h081' FROM inet_addr WHERE inet_addr = inet '176.9.242.67'; |
| | | |
| | | -- |
| | | -- table: packet |
| | | -- |
| | | INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id) |
| | | SELECT 'hsh00', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id FROM business_partner, hive, inet_addr |
| | | WHERE hive_name='h81' AND inet_addr = inet '192.168.108.201' AND member_id = 10000; |
| | | WHERE hive_name='h81' AND inet_addr = inet '176.9.242.68' AND member_id = 10000; |
| | | INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id) |
| | | SELECT 'hsh01', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id FROM business_partner, hive, inet_addr |
| | | WHERE hive_name='h81' AND inet_addr = inet '192.168.108.202' AND member_id = 10000; |
| | | WHERE hive_name='h81' AND inet_addr = inet '176.9.242.69' AND member_id = 10000; |
| | | |
| | | -- |
| | | -- table: packet_component |
| | | -- |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 1, packet.packet_id, 2, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh00'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 2, packet.packet_id, 128, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh00'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 3, packet.packet_id, 0, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh00'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 4, packet.packet_id, 0, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh00'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 5, packet.packet_id, 0, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh00'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 1, packet.packet_id, 2, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh01'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 2, packet.packet_id, 128, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh01'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 3, packet.packet_id, 0, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh01'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 4, packet.packet_id, 0, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh01'; |
| | | INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created) |
| | | SELECT 1, 5, packet.packet_id, 0, current_date FROM packet |
| | | WHERE packet.packet_name = 'hsh01'; |
| | | |
| | | -- |
| | | -- table: unixuser |
| | | -- |
| | |
| | | SELECT 'hsh01', 'packet hsh01', '/bin/bash', '/home/pacs/hsh01', FALSE, packet_id, 10002 FROM packet |
| | | WHERE packet_name='hsh01'; |
| | | INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid) |
| | | SELECT 'hsh01-pe', 'hostmaster pe', '/bin/bash', '/home/pacs/hsh01/users/pe', FALSE, packet_id, 10003 FROM packet |
| | | SELECT 'hsh01-ad', 'hostmaster ad', '/bin/bash', '/home/pacs/hsh01/users/ad', FALSE, packet_id, 10003 FROM packet |
| | | WHERE packet_name='hsh01'; |