<?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 CUCM AXL API - cannot find an API to list existing SNMP info in Management</title>
    <link>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4512788#M3780</link>
    <description>&lt;P&gt;We have over 100 CUCM clusters and need to query every one to ensure SNMP community string standard compliance.&amp;nbsp; I see the getSNMPCommunityString API, but it needs a correct community string as a search criteria.&amp;nbsp; We are trying to discover configured SNMP strings so we won't know.&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 15:58:07 GMT</pubDate>
    <dc:creator>Mark Dugas</dc:creator>
    <dc:date>2021-12-03T15:58:07Z</dc:date>
    <item>
      <title>CUCM AXL API - cannot find an API to list existing SNMP info</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4512788#M3780</link>
      <description>&lt;P&gt;We have over 100 CUCM clusters and need to query every one to ensure SNMP community string standard compliance.&amp;nbsp; I see the getSNMPCommunityString API, but it needs a correct community string as a search criteria.&amp;nbsp; We are trying to discover configured SNMP strings so we won't know.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 15:58:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4512788#M3780</guid>
      <dc:creator>Mark Dugas</dc:creator>
      <dc:date>2021-12-03T15:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM AXL API - cannot find an API to list existing SNMP info</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4513971#M3781</link>
      <description>&lt;P&gt;The devices on our lab servers do not have geolocations, so I can't test this out, but I believe you get the community name from your device geolocation. Here's a snippet from the data dictionary.&amp;nbsp; Note a3 is a string for the community name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-12-06_094853.png" style="width: 584px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/138771i497630001CAD7603/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-12-06_094853.png" alt="2021-12-06_094853.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:51:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4513971#M3781</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2021-12-06T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: CUCM AXL API - cannot find an API to list existing SNMP info</title>
      <link>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4514139#M3782</link>
      <description>&lt;P&gt;I believe the geolocations/community (a geographic community, e.g. 'SoHo') field is different from a configured SNMP community string.&lt;/P&gt;
&lt;P&gt;Unfortunately, I can't seem to find a table in the UCM database that stores SNMP configuration.&amp;nbsp; My suspicion is that the config is stored somewhere in an inaccessible OS configuration file (perhaps snmp.conf) and the CLI and AXL SNMP commands interact with the config data in a special/different way than the usual AXL database interaction.&lt;/P&gt;
&lt;P&gt;You can certainly check for the existence of a required community string via &amp;lt;getSNMPCommunityString&amp;gt; - if it fails, it's not present, and you can go ahead and ahead the required one.&amp;nbsp; However it seems a 'list' variation is not provided by AXL, so it's not possible to get a listing of all the strings, e.g. to check for unauthorized/misconfigured strings.&lt;/P&gt;
&lt;P&gt;Perhaps you could use something like &lt;A href="https://www.paramiko.org/" target="_self"&gt;Paramiko&lt;/A&gt; to access UCM CLI remotely to execute commands, e.g. "utils snmp config 1/2c community-string list" and parse the text output.&amp;nbsp; However, note this isn't a 'supported' programming interface (it's basically 'scraping' text output) so it may not be super reliable: e.g. an extra-long community string or one with a weird character might change how spaces/tabs/etc. are shown in the CLI, breaking a 'scraping' text parser...&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 21:09:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/cucm-axl-api-cannot-find-an-api-to-list-existing-snmp-info/m-p/4514139#M3782</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2021-12-06T21:09:03Z</dc:date>
    </item>
  </channel>
</rss>

