<?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: Need help pulling detailed information of ports on vg350 using AXL in Management</title>
    <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951721#M4118</link>
    <description>Thanks appreciate you.&lt;BR /&gt;</description>
    <pubDate>Tue, 31 Oct 2023 22:08:19 GMT</pubDate>
    <dc:creator>dhoskins</dc:creator>
    <dc:date>2023-10-31T22:08:19Z</dc:date>
    <item>
      <title>Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951690#M4114</link>
      <description>&lt;P&gt;I'm in the process of developing a Python script using zeep aimed at extracting comprehensive data from all analog-programmed ports on a VG350. This data extraction includes not only the device details but also the directory number information linked to each programmed port. My objective is to seamlessly transfer this data into an Excel file, which will then be utilized for configuring our newly acquired VG450.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Despite dedicating significant effort towards scripting this functionality in Python, I've encountered some roadblocks and am yet to achieve the desired outcome. One concern is whether the AXL Api possesses the complete range of schemas necessary to retrieve the entirety of this information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would greatly value any guidance or assistance in this matter, as my attempts so far have been quite challenging, consuming much of my day without yielding progress.&lt;/P&gt;&lt;P&gt;We are using CUCM 12.5&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 20:44:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951690#M4114</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2023-10-31T20:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951694#M4115</link>
      <description>&lt;P&gt;Could you provide a little more information?&amp;nbsp; Specifically, what AXL API call are you using?&amp;nbsp; In addition, if you could post the actual SOAP query line of code that would help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 20:49:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951694#M4115</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2023-10-31T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951697#M4116</link>
      <description>&lt;P&gt;Let me first start off by saying I'm a beginner when it comes to writing Python code. I don't know the exact Axl API calls I should be using to do the task I'm trying to achieve or the Python code that will do it. I did a query on getting the gateway info, but it returns very limited information and not the information I'm hoping to export.&lt;/P&gt;&lt;P&gt;from zeep import Client, Settings&lt;BR /&gt;from zeep.transports import Transport&lt;BR /&gt;from requests import Session&lt;BR /&gt;from requests.auth import HTTPBasicAuth&lt;BR /&gt;import urllib3&lt;/P&gt;&lt;P&gt;# Disable the InsecureRequestWarning&lt;BR /&gt;urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)&lt;/P&gt;&lt;P&gt;# Define AXL settings and your CUCM credentials&lt;BR /&gt;USERNAME = "administrator"&lt;BR /&gt;PASSWORD = "ciscopsdt"&lt;BR /&gt;WSDL_PATH = "C:\\Users\\ddhnht\\Downloads\\axlsqltoolkit\\schema\\current\\axlapi.wsdl"&lt;/P&gt;&lt;P&gt;session = Session()&lt;BR /&gt;session.verify = False&lt;BR /&gt;session.auth = HTTPBasicAuth(USERNAME, PASSWORD)&lt;/P&gt;&lt;P&gt;transport = Transport(session=session, timeout=10)&lt;BR /&gt;settings = Settings(strict=False, xml_huge_tree=True)&lt;/P&gt;&lt;P&gt;client = Client(WSDL_PATH, transport=transport, settings=settings)&lt;/P&gt;&lt;P&gt;def get_gateways_info():&lt;BR /&gt;service = client.create_service("{&lt;A href="http://www.cisco.com/AXLAPIService/}AXLAPIBinding" target="_blank"&gt;http://www.cisco.com/AXLAPIService/}AXLAPIBinding&lt;/A&gt;", "&lt;A href="https://10.10.20.1/axl/" target="_blank"&gt;https://10.10.20.1/axl/&lt;/A&gt;")&lt;BR /&gt;&lt;BR /&gt;# Using listGateway to retrieve all gateways&lt;BR /&gt;response = service.listGateway(searchCriteria={'domainName': '%'}, returnedTags={'domainName': ''})&lt;BR /&gt;gateways = response['return']['gateway']&lt;/P&gt;&lt;P&gt;# Extracting the names of the gateways&lt;BR /&gt;gateway_names = [gateway['domainName'] for gateway in gateways]&lt;BR /&gt;&lt;BR /&gt;return len(gateways), gateway_names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if __name__ == "__main__":&lt;BR /&gt;try:&lt;BR /&gt;gateway_count, gateway_names = get_gateways_info()&lt;BR /&gt;print(f"Total Number of Gateways: {gateway_count}")&lt;BR /&gt;print("Names of the Gateways:")&lt;BR /&gt;for name in gateway_names:&lt;BR /&gt;print(name)&lt;BR /&gt;except Exception as e:&lt;BR /&gt;print(f"Error: {e}")&lt;BR /&gt;sys.exit(1)&lt;/P&gt;&lt;P&gt;input("Press Enter to exit...")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 21:02:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951697#M4116</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2023-10-31T21:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951719#M4117</link>
      <description>&lt;P&gt;Thanks, that's great information. I don't think listGateway is going to get you the information you want. Unfortunately for me, I had to refresh my work PC, so I need to install some things to investigate further. I'll get back to you tomorrow, hopefully with useful information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 22:05:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951719#M4117</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2023-10-31T22:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951721#M4118</link>
      <description>Thanks appreciate you.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 22:08:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951721#M4118</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2023-10-31T22:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951722#M4119</link>
      <description>&lt;P&gt;In the meantime, I recommend you download and install SoapUI (&lt;A href="http://www.soapui.org" target="_blank"&gt;www.soapui.org&lt;/A&gt;). Download the open source version, it's free. It's a great way to test AXL and &lt;A href="https://developer.cisco.com/site/sxml/discover/overview/" target="_self"&gt;Serviceability&lt;/A&gt;&amp;nbsp;operations before trying to code them in Python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 22:08:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951722#M4119</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2023-10-31T22:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951725#M4120</link>
      <description>I have SoapUI. I’ve played with it a little.&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 22:13:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951725#M4120</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2023-10-31T22:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951890#M4121</link>
      <description>&lt;P&gt;How is the gateway configured? If it is MGCP then you could pull all the information from CUCM. The real power of python is all the libraries that exist so you (almost) never have to build anything from the ground up. I am sure there are lots of others, but a quick Google search for "cisco router python get config" turned up this amond other things.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/hoelsner/python-script-examples/blob/master/cisco-ios-config-parameter-extraction/ciscoconfiparse_example.py" target="_self"&gt;https://github.com/hoelsner/python-script-examples/blob/master/cisco-ios-config-parameter-extraction/ciscoconfiparse_example.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 08:29:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951890#M4121</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2023-11-01T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951958#M4122</link>
      <description>&lt;P&gt;It is configured as MGCP, I couldn't find anywhere in CUCM that would allow me to export out all the configured ports and their configurations.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 11:30:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4951958#M4122</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2023-11-01T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952146#M4123</link>
      <description>&lt;P&gt;Are you familiar with SQL?&amp;nbsp; Here's where to get the database schema:&amp;nbsp;&lt;A href="https://developer.cisco.com/docs/axl/#!14-cucm-data-dictionary" target="_blank"&gt;https://developer.cisco.com/docs/axl/#!14-cucm-data-dictionary&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Go to SoapUI and run this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:executeSQLQuery sequence="?"&amp;gt;
         &amp;lt;sql&amp;gt;select * from mgcp&amp;lt;/sql&amp;gt;
      &amp;lt;/ns:executeSQLQuery&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;Or include a "where" clause for your specific gateway. From there, you can grab the pkid for the mgcp gateway and run a query like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:executeSQLQuery sequence="?"&amp;gt;
         &amp;lt;sql&amp;gt;select * from mgcpdevicemember where fkmgcp="d9555d37-600e-bceb-07c0-60993635ad6f"&amp;lt;/sql&amp;gt;
      &amp;lt;/ns:executeSQLQuery&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;I'm not all that familiar with gateways, so I don't know if that gets you the info you want, but it should get you started.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 17:10:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952146#M4123</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2023-11-01T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952164#M4124</link>
      <description>&lt;P&gt;It shows the two ports that I configured on the gateway but doesn't show all the information on the ports I configured like the device information and the directory number information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;pkid&amp;gt;0ad606f7-0129-cde1-9fd4-9acebfbfe07c&amp;lt;/pkid&amp;gt;&lt;BR /&gt;&amp;lt;fkmgcp&amp;gt;1de25e22-dd0c-97a6-6f65-d24729b92cd9&amp;lt;/fkmgcp&amp;gt;&lt;BR /&gt;&amp;lt;fkdevice&amp;gt;742a5c3d-3285-3ea9-b375-6eece1ba53e8&amp;lt;/fkdevice&amp;gt;&lt;BR /&gt;&amp;lt;slot&amp;gt;2&amp;lt;/slot&amp;gt;&lt;BR /&gt;&amp;lt;subunit&amp;gt;0&amp;lt;/subunit&amp;gt;&lt;BR /&gt;&amp;lt;port&amp;gt;28&amp;lt;/port&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;pkid&amp;gt;5f4535b5-8270-f956-af54-1dec69aed36b&amp;lt;/pkid&amp;gt;&lt;BR /&gt;&amp;lt;fkmgcp&amp;gt;1de25e22-dd0c-97a6-6f65-d24729b92cd9&amp;lt;/fkmgcp&amp;gt;&lt;BR /&gt;&amp;lt;fkdevice&amp;gt;f6d6cbe5-d79c-ed2e-a2e4-c0c09b81e49f&amp;lt;/fkdevice&amp;gt;&lt;BR /&gt;&amp;lt;slot&amp;gt;2&amp;lt;/slot&amp;gt;&lt;BR /&gt;&amp;lt;subunit&amp;gt;0&amp;lt;/subunit&amp;gt;&lt;BR /&gt;&amp;lt;port&amp;gt;38&amp;lt;/port&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/return&amp;gt;&lt;BR /&gt;&amp;lt;/ns:executeSQLQueryResponse&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 17:42:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952164#M4124</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2023-11-01T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952210#M4125</link>
      <description>&lt;P&gt;It's showing you the fkdevice key.&amp;nbsp; It's like following a trail of bread crumbs, I know, but then you get info from devicenumplanmap&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:executeSQLQuery sequence="?"&amp;gt;
         &amp;lt;sql&amp;gt;select * from devicenumplanmap where fkdevice="f6d6cbe5-d79c-ed2e-a2e4-c0c09b81e49f"&amp;lt;/sql&amp;gt;
      &amp;lt;/ns:executeSQLQuery&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;That will give you the fknumplan id. Then use that to get the numplan info, which shows you the info you need.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:executeSQLQuery sequence="?"&amp;gt;
         &amp;lt;sql&amp;gt;select * from numplan where pkid="&amp;lt;the fknumplan id from previous query&amp;gt;"&amp;lt;/sql&amp;gt;
      &amp;lt;/ns:executeSQLQuery&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Of course, you can build a complex query over multiple tables to dive directly into the numplan info, but that's up to you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 19:13:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952210#M4125</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2023-11-01T19:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952226#M4126</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;Configure VG244 Ports&lt;/STRONG&gt; white paper in the AXL docs area has some background on this area - it is pretty ancient, but still relevant: &lt;A href="https://developer.cisco.com/docs/axl/#!what-is-axl/what-is-administrative-xml" target="_blank" rel="noopener"&gt;https://developer.cisco.com/docs/axl/#!what-is-axl/what-is-administrative-xml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I believe you can get all of the details from a sequence simlar to the AXL requests shown below.&amp;nbsp; The tricky step is that apparently there is no good way to find out which endpoints are associated with a MGCP gateway using standard AXL requests, so we have to resort to SQL:&lt;/P&gt;
&lt;P&gt;1. Get the MGCP gateway details, searching by &lt;STRONG&gt;domainName&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:getGateway sequence="1"&amp;gt;
         &amp;lt;domainName&amp;gt;example.com&amp;lt;/domainName&amp;gt;
      &amp;lt;/ns:getGateway&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
----------------------
&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:getGatewayResponse xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
         &amp;lt;return&amp;gt;
            &amp;lt;gateway uuid="{0630F965-0F35-8C26-006F-902B8CD78DCD}"&amp;gt;
               &amp;lt;domainName&amp;gt;example.com&amp;lt;/domainName&amp;gt;
               &amp;lt;description&amp;gt;example.com&amp;lt;/description&amp;gt;
               &amp;lt;product&amp;gt;VG320&amp;lt;/product&amp;gt;
               &amp;lt;protocol&amp;gt;MGCP&amp;lt;/protocol&amp;gt;
               &amp;lt;callManagerGroupName uuid="{D13C4201-7802-11D3-BDF0-00108302EAD1}"&amp;gt;Default&amp;lt;/callManagerGroupName&amp;gt;
               &amp;lt;units&amp;gt;
                  &amp;lt;unit&amp;gt;
                     &amp;lt;index&amp;gt;0&amp;lt;/index&amp;gt;
                     &amp;lt;product&amp;gt;VG-3VWIC-MBRD&amp;lt;/product&amp;gt;
                     &amp;lt;subunits&amp;gt;
                        &amp;lt;subunit&amp;gt;
                           &amp;lt;index&amp;gt;0&amp;lt;/index&amp;gt;
                           &amp;lt;product&amp;gt;24FXS&amp;lt;/product&amp;gt;
                           &amp;lt;beginPort&amp;gt;0&amp;lt;/beginPort&amp;gt;
                        &amp;lt;/subunit&amp;gt;
                        &amp;lt;subunit&amp;gt;
                           &amp;lt;index&amp;gt;1&amp;lt;/index&amp;gt;
                           &amp;lt;product&amp;gt;24FXS&amp;lt;/product&amp;gt;
                           &amp;lt;beginPort&amp;gt;0&amp;lt;/beginPort&amp;gt;
                        &amp;lt;/subunit&amp;gt;
                     &amp;lt;/subunits&amp;gt;
                  &amp;lt;/unit&amp;gt;
               &amp;lt;/units&amp;gt;
               &amp;lt;scratch/&amp;gt;
               &amp;lt;vendorConfig&amp;gt;
                  &amp;lt;globalISDNSwitchType&amp;gt;4ESS&amp;lt;/globalISDNSwitchType&amp;gt;
                  &amp;lt;switchBack&amp;gt;Graceful&amp;lt;/switchBack&amp;gt;
                  &amp;lt;switchBackDelay&amp;gt;10&amp;lt;/switchBackDelay&amp;gt;
                  &amp;lt;switchBackSchedule&amp;gt;12:00&amp;lt;/switchBackSchedule&amp;gt;
                  &amp;lt;DtmfRelay&amp;gt;NoChange&amp;lt;/DtmfRelay&amp;gt;
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Execute a SQL query to get the endpoints associated to the gateway - the &lt;STRONG&gt;fkmgcp&lt;/STRONG&gt; is the &lt;STRONG&gt;uuid&lt;/STRONG&gt; (removing braces) from #1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:executeSQLQuery sequence="1"&amp;gt;
         &amp;lt;sql&amp;gt;select * from mgcpdevicemember where fkmgcp="0630f965-0f35-8c26-006f-902b8cd78dcd"&amp;lt;/sql&amp;gt;
      &amp;lt;/ns:executeSQLQuery&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
---------------------
&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:executeSQLQueryResponse xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
         &amp;lt;return&amp;gt;
            &amp;lt;row&amp;gt;
               &amp;lt;pkid&amp;gt;0d35bd8e-eeae-e35a-94cd-5a79702bcd90&amp;lt;/pkid&amp;gt;
               &amp;lt;fkmgcp&amp;gt;0630f965-0f35-8c26-006f-902b8cd78dcd&amp;lt;/fkmgcp&amp;gt;
               &amp;lt;fkdevice&amp;gt;7078d70b-e151-1ed2-5351-a3faed4376f0&amp;lt;/fkdevice&amp;gt;
               &amp;lt;slot&amp;gt;0&amp;lt;/slot&amp;gt;
               &amp;lt;subunit&amp;gt;1&amp;lt;/subunit&amp;gt;
               &amp;lt;port&amp;gt;0&amp;lt;/port&amp;gt;
            &amp;lt;/row&amp;gt;
            &amp;lt;row&amp;gt;
               &amp;lt;pkid&amp;gt;e85fc8e4-04de-dbcf-f94c-bc2c24f35704&amp;lt;/pkid&amp;gt;
               &amp;lt;fkmgcp&amp;gt;0630f965-0f35-8c26-006f-902b8cd78dcd&amp;lt;/fkmgcp&amp;gt;
               &amp;lt;fkdevice&amp;gt;d2ea2a9c-bd7e-fada-1fe0-c7c73f7861a1&amp;lt;/fkdevice&amp;gt;
               &amp;lt;slot&amp;gt;0&amp;lt;/slot&amp;gt;
               &amp;lt;subunit&amp;gt;1&amp;lt;/subunit&amp;gt;
               &amp;lt;port&amp;gt;1&amp;lt;/port&amp;gt;
            &amp;lt;/row&amp;gt;
            &amp;lt;row&amp;gt;
               &amp;lt;pkid&amp;gt;27924749-bb39-1af9-ed63-638ffe9c5501&amp;lt;/pkid&amp;gt;
               &amp;lt;fkmgcp&amp;gt;0630f965-0f35-8c26-006f-902b8cd78dcd&amp;lt;/fkmgcp&amp;gt;
               &amp;lt;fkdevice&amp;gt;da64389b-0956-89c3-a80f-1d68d11af356&amp;lt;/fkdevice&amp;gt;
               &amp;lt;slot&amp;gt;0&amp;lt;/slot&amp;gt;
               &amp;lt;subunit&amp;gt;0&amp;lt;/subunit&amp;gt;
               &amp;lt;port&amp;gt;0&amp;lt;/port&amp;gt;
            &amp;lt;/row&amp;gt;
            &amp;lt;row&amp;gt;
               &amp;lt;pkid&amp;gt;c517fc57-14b9-79d2-58ec-f660648ee8ed&amp;lt;/pkid&amp;gt;
               &amp;lt;fkmgcp&amp;gt;0630f965-0f35-8c26-006f-902b8cd78dcd&amp;lt;/fkmgcp&amp;gt;
               &amp;lt;fkdevice&amp;gt;b871cf58-2a3b-a5cf-ba42-4f40135e3a0e&amp;lt;/fkdevice&amp;gt;
               &amp;lt;slot&amp;gt;0&amp;lt;/slot&amp;gt;
               &amp;lt;subunit&amp;gt;0&amp;lt;/subunit&amp;gt;
               &amp;lt;port&amp;gt;1&amp;lt;/port&amp;gt;
            &amp;lt;/row&amp;gt;
         &amp;lt;/return&amp;gt;
      &amp;lt;/ns:executeSQLQueryResponse&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Get the endpoint analog access details,&amp;nbsp;&lt;STRONG&gt;uuid&lt;/STRONG&gt; is &lt;STRONG&gt;fkdevice&lt;/STRONG&gt; from #2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:getGatewayEndpointAnalogAccess sequence="1"&amp;gt;
         &amp;lt;uuid&amp;gt;{7078d70b-e151-1ed2-5351-a3faed4376f0}&amp;lt;/uuid&amp;gt;
      &amp;lt;/ns:getGatewayEndpointAnalogAccess&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;
---------------------
&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;ns:getGatewayEndpointAnalogAccessResponse xmlns:ns="http://www.cisco.com/AXL/API/14.0"&amp;gt;
         &amp;lt;return&amp;gt;
            &amp;lt;gatewayEndpointAnalogAccess uuid="{7078D70B-E151-1ED2-5351-A3FAED4376F0}"&amp;gt;
               &amp;lt;domainName&amp;gt;example.com&amp;lt;/domainName&amp;gt;
               &amp;lt;unit&amp;gt;0&amp;lt;/unit&amp;gt;
               &amp;lt;subunit&amp;gt;1&amp;lt;/subunit&amp;gt;
               &amp;lt;endpoint ctiid="190" uuid="{7078D70B-E151-1ED2-5351-A3FAED4376F0}"&amp;gt;
                  &amp;lt;index&amp;gt;0&amp;lt;/index&amp;gt;
                  &amp;lt;name&amp;gt;AALN/S0/SU1/0@example.com&amp;lt;/name&amp;gt;
                  &amp;lt;description&amp;gt;AALN/S0/SU1/0@example.com&amp;lt;/description&amp;gt;
                  &amp;lt;product&amp;gt;Cisco MGCP FXS Port&amp;lt;/product&amp;gt;
                  &amp;lt;model&amp;gt;MGCP Station&amp;lt;/model&amp;gt;
                  &amp;lt;class&amp;gt;Gateway&amp;lt;/class&amp;gt;
                  &amp;lt;protocol&amp;gt;Analog Access&amp;lt;/protocol&amp;gt;
                  &amp;lt;protocolSide&amp;gt;User&amp;lt;/protocolSide&amp;gt;
                  &amp;lt;callingSearchSpaceName/&amp;gt;
                  &amp;lt;devicePoolName uuid="{1B1B9EB6-7803-11D3-BDF0-00108302EAD1}"&amp;gt;Default&amp;lt;/devicePoolName&amp;gt;
                  &amp;lt;commonDeviceConfigName/&amp;gt;
                  &amp;lt;networkLocale/&amp;gt;
                  &amp;lt;locationName uuid="{29C5C1C4-8871-4D1E-8394-0B9181E8C54D}"&amp;gt;Hub_None&amp;lt;/locationName&amp;gt;
                  &amp;lt;mediaResourceListName/&amp;gt;
                  &amp;lt;automatedAlternateRoutingCssName/&amp;gt;
                  &amp;lt;aarNeighborhoodName/&amp;gt;
                  &amp;lt;vendorConfig/&amp;gt;
                  &amp;lt;mlppDomainId/&amp;gt;
                  &amp;lt;useTrustedRelayPoint&amp;gt;Default&amp;lt;/useTrustedRelayPoint&amp;gt;
                  &amp;lt;retryVideoCallAsAudio&amp;gt;true&amp;lt;/retryVideoCallAsAudio&amp;gt;
                  &amp;lt;cgpnTransformationCssName/&amp;gt;
                  &amp;lt;useDevicePoolCgpnTransformCss&amp;gt;true&amp;lt;/useDevicePoolCgpnTransformCss&amp;gt;
                  &amp;lt;geoLocationName/&amp;gt;
                  &amp;lt;geoLocationFilterName/&amp;gt;
                  &amp;lt;port&amp;gt;
                     &amp;lt;portNumber&amp;gt;1&amp;lt;/portNumber&amp;gt;
                     &amp;lt;attendantDn/&amp;gt;
                     &amp;lt;unattendedPort&amp;gt;false&amp;lt;/unattendedPort&amp;gt;
                     &amp;lt;callerIdDn/&amp;gt;
                     &amp;lt;callerIdEnable&amp;gt;false&amp;lt;/callerIdEnable&amp;gt;
                     &amp;lt;callingPartySelection&amp;gt;Originator&amp;lt;/callingPartySelection&amp;gt;
                     &amp;lt;digitSending&amp;gt;DTMF&amp;lt;/digitSending&amp;gt;
                     &amp;lt;expectedDigits&amp;gt;0&amp;lt;/expectedDigits&amp;gt;
                     &amp;lt;sigDigits enable="false"&amp;gt;0&amp;lt;/sigDigits&amp;gt;
                     &amp;lt;lines&amp;gt;
                        &amp;lt;line&amp;gt;
                           &amp;lt;index&amp;gt;1&amp;lt;/index&amp;gt;
                           &amp;lt;label/&amp;gt;
                           &amp;lt;display/&amp;gt;
                           &amp;lt;dirn uuid="{D74FE96D-FC0C-3A37-A3D6-A29235867181}"&amp;gt;
                              &amp;lt;pattern&amp;gt;9992&amp;lt;/pattern&amp;gt;
                              &amp;lt;routePartitionName/&amp;gt;
                           &amp;lt;/dirn&amp;gt;
                           &amp;lt;ringSetting&amp;gt;Ring&amp;lt;/ringSetting&amp;gt;
                           &amp;lt;consecutiveRingSetting&amp;gt;Use System Default&amp;lt;/consecutiveRingSetting&amp;gt;
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as there are 4 entries in#2, you'll do this 4 times, once for each &lt;STRONG&gt;fkdevice&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 20:08:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952226#M4126</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-11-01T20:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952229#M4127</link>
      <description>&lt;P&gt;I'd obviously go with David Staudt's response. I may be a SQL guy but I have very little experience with gateways. He's the expert here!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 20:15:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/4952229#M4127</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2023-11-01T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help pulling detailed information of ports on vg350 using AXL</title>
      <link>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/5061189#M4207</link>
      <description>&lt;P&gt;You can roll this all into one (admittedly complicated) SQL query instead of having to do multiple steps.&lt;/P&gt;&lt;P&gt;SELECT gw.domainname, gw.description as gwdescription, mgcpdm.slot, mgcpdm.subunit, mgcpdm.port, d.name as devicename, d.description as devicedescription, dnorpattern as dn, n.description as dndescription, dmap.e164mask as mask&lt;BR /&gt;FROM mgcpdevicemember mgcpdm&lt;BR /&gt;INNER JOIN mgcp as gw on gw.pkid=mgcpdm.fkmgcp&lt;BR /&gt;INNER JOIN device as d on d.pkid=mgcpdm.fkdevice&lt;BR /&gt;INNER JOIN devicenumplanmap as dmap on dmap.fkdevice=d.pkid&lt;BR /&gt;INNER JOIN numplan as n on dmap.fknumplan=n.pkid&lt;/P&gt;&lt;P&gt;Leave it like that to get information on all the ports of all the gateways configured in CUCM. If you want to narrow it down to just one, add this at the end:&lt;/P&gt;&lt;P&gt;WHERE &amp;nbsp;gw.domainname='gateway.domain.name'&lt;/P&gt;&lt;P&gt;Put the domain name of your gateway in place of gateway.domain.name, obviously.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grab the output, save it as an XML file, then import the XML into Excel and you can sort and manipulate the data as your heart desires.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 22:01:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-help-pulling-detailed-information-of-ports-on-vg350-using/m-p/5061189#M4207</guid>
      <dc:creator>sjdamme</dc:creator>
      <dc:date>2024-04-08T22:01:11Z</dc:date>
    </item>
  </channel>
</rss>

