<?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: Programmatic way to Shut/No Shut Interface? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947941#M2214</link>
    <description>&lt;P&gt;If you looking to Build one, you need to list what you like to achieve, based on the post you looking for bounce the ports, so i have suggested the method to do the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you looking if the ports gone disabled - this bit tricky, not that its not possible, - some time you need to investigate whu this ports gone error disabled ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on programming point of view. send all the logs to syslog server - capture the logs, trigger the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can send me personal message if you like more to do frame work we can discuss. (this is my favourite topic) self healing with out engineer intervention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 07:43:27 GMT</pubDate>
    <dc:creator>balaji.bandi</dc:creator>
    <dc:date>2019-10-25T07:43:27Z</dc:date>
    <item>
      <title>Programmatic way to Shut/No Shut Interface?</title>
      <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947507#M2211</link>
      <description>&lt;P&gt;I have a modern network with DNAC and Cat 9k switches.&amp;nbsp; Given a static list of IPs , I'm trying to find a programmatic way of bouncing the interfaces those devices are connected to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to query DNAC with a Client's IP and have it return the Switch &amp;amp; Switchport the Client is connected to, but I can't work out how, either via DNAC or via Netconf to the Switch, to bounce the interface (ie, "Shutdown" followed shortly by "No Shutdown" in CLI terms).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any examples of how to achieve this?&amp;nbsp; Or suggestions of the best approach?&amp;nbsp; It seems quite basic and I'm surprised I can't find any examples of how to bounce a port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 17:53:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947507#M2211</guid>
      <dc:creator>RichardAtkin</dc:creator>
      <dc:date>2019-10-24T17:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic way to Shut/No Shut Interface?</title>
      <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947529#M2212</link>
      <description>&lt;P&gt;Not sure what is the end goal you looking to achieve. But here is simple Linux script with expect command :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is example script : (you can do many things &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.balajibandi.com/?s=expect" target="_blank"&gt;http://www.balajibandi.com/?s=expect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:21:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947529#M2212</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2019-10-24T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic way to Shut/No Shut Interface?</title>
      <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947850#M2213</link>
      <description>Thanks for the suggestion, but error handling with an ‘automated SSH’ approach like that is difficult. I also have hundreds of interfaces that I need to bounce and this approach would take quite some time to execute... I’m really looking for a more purely programmatic answer.&lt;BR /&gt;&lt;BR /&gt;Any other suggestions? Thanks!</description>
      <pubDate>Fri, 25 Oct 2019 04:52:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947850#M2213</guid>
      <dc:creator>RichardAtkin</dc:creator>
      <dc:date>2019-10-25T04:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic way to Shut/No Shut Interface?</title>
      <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947941#M2214</link>
      <description>&lt;P&gt;If you looking to Build one, you need to list what you like to achieve, based on the post you looking for bounce the ports, so i have suggested the method to do the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you looking if the ports gone disabled - this bit tricky, not that its not possible, - some time you need to investigate whu this ports gone error disabled ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;on programming point of view. send all the logs to syslog server - capture the logs, trigger the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can send me personal message if you like more to do frame work we can discuss. (this is my favourite topic) self healing with out engineer intervention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 07:43:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3947941#M2214</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2019-10-25T07:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic way to Shut/No Shut Interface?</title>
      <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3955649#M2215</link>
      <description>&lt;P&gt;How are you getting the data from DNAC? Is it something you can work with easily (JSON, XML, etc)? Does it include the IP of the switch the hosts are on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could write something in python to take that and restconf the ports up/down&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/restconf_prog_int.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/restconf_prog_int.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 15:00:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/3955649#M2215</guid>
      <dc:creator>robmccarty</dc:creator>
      <dc:date>2019-11-08T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic way to Shut/No Shut Interface?</title>
      <link>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/4315007#M2216</link>
      <description>&lt;P&gt;can be solved with bash and ansible&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 19:32:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/programmatic-way-to-shut-no-shut-interface/m-p/4315007#M2216</guid>
      <dc:creator>Tagir Temirgaliyev</dc:creator>
      <dc:date>2021-03-27T19:32:48Z</dc:date>
    </item>
  </channel>
</rss>

