<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Finding Ports on a VG gateway using SQL in Management</title>
    <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601050#M2740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The VGs are stored in the device table.&amp;nbsp; However, they're not stored by the obvious name, so it's easy to think they're not stored in that table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's probably an easier way to do this, but here's how I determine the name.&amp;nbsp; Do a Device-&amp;gt;Gateway and then Find. Select your gateway and then click "Apply Config".&amp;nbsp; Here's a sample of what you'll see (below).&amp;nbsp; There's the device name, right there - in this case, &lt;STRONG&gt;AN0506070809FFF&lt;/STRONG&gt;.&amp;nbsp; So you can find it in the device table with &lt;STRONG&gt;select * from device where name="AN0506070809FFF";&lt;/STRONG&gt; Then, if needed, you can use the pkid (or other IDs) to find related information in other tables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="85212" alt="gatewayconfig.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/85212_gatewayconfig.png" style="height: 478px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 17:51:58 GMT</pubDate>
    <dc:creator>npetrele</dc:creator>
    <dc:date>2014-12-17T17:51:58Z</dc:date>
    <item>
      <title>Finding Ports on a VG gateway using SQL</title>
      <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601049#M2739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pulling my hair out here.. I have a VG310 in my CUCM. However, I cannot seem to find the corresponding device in the CUCM database. I figure the device table would be the most promising, with tkclass = 2 (as it's an MGCP Gateway), but it contains my configured ports on the analog card, but not the gateway itself. I guess I could parse the name string and the part after the @ is the gateway name, but I'd really like to know how to list the gateways (I then expect to use that information to list ports per gateway). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can find the analog ports just fine (analogaccess table), they link to a device again, but no link back as to which module and gateway they are from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know where those VG gateways are stored in the database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 15:15:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601049#M2739</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2014-12-17T15:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ports on a VG gateway using SQL</title>
      <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601050#M2740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The VGs are stored in the device table.&amp;nbsp; However, they're not stored by the obvious name, so it's easy to think they're not stored in that table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's probably an easier way to do this, but here's how I determine the name.&amp;nbsp; Do a Device-&amp;gt;Gateway and then Find. Select your gateway and then click "Apply Config".&amp;nbsp; Here's a sample of what you'll see (below).&amp;nbsp; There's the device name, right there - in this case, &lt;STRONG&gt;AN0506070809FFF&lt;/STRONG&gt;.&amp;nbsp; So you can find it in the device table with &lt;STRONG&gt;select * from device where name="AN0506070809FFF";&lt;/STRONG&gt; Then, if needed, you can use the pkid (or other IDs) to find related information in other tables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="85212" alt="gatewayconfig.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/85212_gatewayconfig.png" style="height: 478px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 17:51:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601050#M2740</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2014-12-17T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ports on a VG gateway using SQL</title>
      <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601051#M2741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="applyconfig.PNG" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/85213_applyconfig.PNG" style="width: 620px; height: 382px;" /&gt;Umm... if I do that, it looks like this. And I suspect if you do a select * from device where name = 'AN...' you'll see something. The gateway should be listed with the product type and model in the db.. if I search by those properties, I should see an entry.. but tthere's nothing and that really has me confused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 18:02:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601051#M2741</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2014-12-17T18:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ports on a VG gateway using SQL</title>
      <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601052#M2742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, okay, so it doesn't work for a VG310.&amp;nbsp; It worked for a VG224.&amp;nbsp; Ok, I'm looking into it, and I'll get back to you asap.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 18:27:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601052#M2742</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2014-12-17T18:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ports on a VG gateway using SQL</title>
      <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601053#M2743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do a &lt;STRONG&gt;select * from mgcp&lt;/STRONG&gt;.&amp;nbsp; You'll see your gateway and its pkid there.&amp;nbsp; You can find out more information from mgcpslotconfig, where mgcpslotconfig.fkmgcp=mgcp.pkid.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 18:54:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601053#M2743</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2014-12-17T18:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ports on a VG gateway using SQL</title>
      <link>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601054#M2744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, that works. And for those wondering how to get further.. the table mgcpdevicemember links the gateway (found in mgcp table) to the device (the actual ports of the vg). So I finally have the full picture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 09:06:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/finding-ports-on-a-vg-gateway-using-sql/m-p/3601054#M2744</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2014-12-18T09:06:01Z</dc:date>
    </item>
  </channel>
</rss>

