cweise

2.2.12RC1 network sql query

Sep 28th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 5.49 KB | None | 0 0
  1. mysql> select * from nics where instance_id='4'\G
  2. *************************** 1. row ***************************
  3.             id: 8
  4.    instance_id: 4
  5.    mac_address: 06:02:34:00:00:63
  6.    ip4_address: 207.178.148.68
  7.        netmask: 255.255.255.0
  8.        gateway: 207.178.148.1
  9.        ip_type: Ip4
  10.  broadcast_uri: vlan://500
  11.     network_id: 200
  12.           mode: Static
  13.          state: Reserved
  14.       strategy: Managed
  15.  reserver_name: PublicNetworkGuru
  16. reservation_id: NULL
  17.      device_id: 2
  18.    update_time: 2011-09-28 10:55:36
  19.  isolation_uri: vlan://500
  20.    ip6_address: NULL
  21.    default_nic: 1
  22.        vm_type: DomainRouter
  23.        created: 2011-08-14 03:07:11
  24.        removed: NULL
  25. *************************** 2. row ***************************
  26.             id: 9
  27.    instance_id: 4
  28.    mac_address: 02:00:3c:8c:00:02
  29.    ip4_address: 172.22.83.1
  30.        netmask: 255.255.255.0
  31.        gateway: NULL
  32.        ip_type: Ip4
  33.  broadcast_uri: vlan://911
  34.     network_id: 204
  35.           mode: Dhcp
  36.          state: Reserved
  37.       strategy: Start
  38.  reserver_name: GuestNetworkGuru
  39. reservation_id: b99c384a-6708-481f-991b-8c6821ed3e67
  40.      device_id: 0
  41.    update_time: 2011-09-22 11:08:24
  42.  isolation_uri: vlan://911
  43.    ip6_address: NULL
  44.    default_nic: 0
  45.        vm_type: DomainRouter
  46.        created: 2011-08-14 03:07:11
  47.        removed: NULL
  48. *************************** 3. row ***************************
  49.             id: 10
  50.    instance_id: 4
  51.    mac_address: 0e:00:a9:fe:00:5e
  52.    ip4_address: 169.254.0.94
  53.        netmask: 255.255.0.0
  54.        gateway: 169.254.0.1
  55.        ip_type: Ip4
  56.  broadcast_uri: NULL
  57.     network_id: 202
  58.           mode: Static
  59.          state: Reserved
  60.       strategy: Start
  61.  reserver_name: ControlNetworkGuru
  62. reservation_id: b99c384a-6708-481f-991b-8c6821ed3e67
  63.      device_id: 1
  64.    update_time: 2011-09-22 11:08:24
  65.  isolation_uri: NULL
  66.    ip6_address: NULL
  67.    default_nic: 0
  68.        vm_type: DomainRouter
  69.        created: 2011-08-14 03:07:11
  70.        removed: NULL
  71. 3 rows in set (0.00 sec)
  72.  
  73.  
  74.  
  75.  
  76. mysql> select * from networks where id='200'\G
  77. *************************** 1. row ***************************
  78.                        id: 200
  79.                      name: NULL
  80.              display_text: NULL
  81.              traffic_type: Public
  82.     broadcast_domain_type: Vlan
  83.             broadcast_uri: NULL
  84.                   gateway: NULL
  85.                      cidr: NULL
  86.                      mode: Static
  87.       network_offering_id: 1
  88.            data_center_id: 1
  89.                 guru_name: PublicNetworkGuru
  90.                     state: Setup
  91.                   related: 200
  92.                 domain_id: 1
  93.                account_id: 1
  94.                      dns1: NULL
  95.                      dns2: NULL
  96.                 guru_data: NULL
  97.                set_fields: 0
  98.                guest_type: NULL
  99.                    shared: 1
  100.        is_domain_specific: 0
  101.            network_domain: NULL
  102.            reservation_id: NULL
  103.                is_default: 0
  104.                   created: 2011-08-14 02:31:30
  105.                   removed: NULL
  106. is_security_group_enabled: 0
  107. 1 row in set (0.00 sec)
  108.  
  109. mysql> select * from networks where id='202'\G
  110. *************************** 1. row ***************************
  111.                        id: 202
  112.                      name: NULL
  113.              display_text: NULL
  114.              traffic_type: Control
  115.     broadcast_domain_type: LinkLocal
  116.             broadcast_uri: NULL
  117.                   gateway: 169.254.0.1
  118.                      cidr: 169.254.0.0/16
  119.                      mode: Static
  120.       network_offering_id: 3
  121.            data_center_id: 1
  122.                 guru_name: ControlNetworkGuru
  123.                     state: Setup
  124.                   related: 202
  125.                 domain_id: 1
  126.                account_id: 1
  127.                      dns1: NULL
  128.                      dns2: NULL
  129.                 guru_data: NULL
  130.                set_fields: 0
  131.                guest_type: NULL
  132.                    shared: 1
  133.        is_domain_specific: 0
  134.            network_domain: NULL
  135.            reservation_id: NULL
  136.                is_default: 0
  137.                   created: 2011-08-14 02:31:30
  138.                   removed: NULL
  139. is_security_group_enabled: 0
  140. 1 row in set (0.00 sec)
  141.  
  142. mysql> select * from networks where id='204'\G
  143. *************************** 1. row ***************************
  144.                        id: 204
  145.                      name: Virtual Network
  146.              display_text: A dedicated virtualized network for your account.  The broadcast domain is contained within a VLAN and all public network access is routed out by a virtual router.
  147.              traffic_type: Guest
  148.     broadcast_domain_type: Vlan
  149.             broadcast_uri: vlan://911
  150.                   gateway: 172.22.83.1
  151.                      cidr: 172.22.83.0/24
  152.                      mode: Dhcp
  153.       network_offering_id: 6
  154.            data_center_id: 1
  155.                 guru_name: GuestNetworkGuru
  156.                     state: Implemented
  157.                   related: 204
  158.                 domain_id: 1
  159.                account_id: 2
  160.                      dns1: NULL
  161.                      dns2: NULL
  162.                 guru_data: NULL
  163.                set_fields: 0
  164.                guest_type: Virtual
  165.                    shared: 0
  166.        is_domain_specific: 0
  167.            network_domain: cs2cloud.internal
  168.            reservation_id: 5cd5a380-4f42-4499-9fb6-5d8758821182
  169.                is_default: 1
  170.                   created: 2011-08-14 03:06:51
  171.                   removed: NULL
  172. is_security_group_enabled: 0
  173. 1 row in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment