<?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: Netmiko timeout doing 'crypto generate key rsa modulus 2048' in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4560796#M2425</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/283800"&gt;@spfister336&lt;/a&gt;&amp;nbsp;just guessing, y&lt;SPAN&gt;ou might want to try inserting a small delay between when you start each thread (like .1 seconds or .3 seconds). You will probably have to experiment a bit here though, i would ask also in the netmiko slack or GitHub for best pratice.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 15:25:49 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2022-02-28T15:25:49Z</dc:date>
    <item>
      <title>Netmiko timeout doing 'crypto generate key rsa modulus 2048'</title>
      <link>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4560781#M2424</link>
      <description>&lt;P&gt;I'm using netmiko to make config changes to a large group of Cisco devices. I'm using send_config_set() to apply several commands, the first of which is 'crypto generate key rsa modulus 2048'. This might work on the first handful of devices, but eventually, one switch will take long enough to generate the key that it times out. I've experimented with various delay_factor settings, but nothing seems to allow it to work for all devices. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 15:02:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4560781#M2424</guid>
      <dc:creator>spfister336</dc:creator>
      <dc:date>2022-02-28T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Netmiko timeout doing 'crypto generate key rsa modulus 2048'</title>
      <link>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4560796#M2425</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/283800"&gt;@spfister336&lt;/a&gt;&amp;nbsp;just guessing, y&lt;SPAN&gt;ou might want to try inserting a small delay between when you start each thread (like .1 seconds or .3 seconds). You will probably have to experiment a bit here though, i would ask also in the netmiko slack or GitHub for best pratice.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 15:25:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4560796#M2425</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2022-02-28T15:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Netmiko timeout doing 'crypto generate key rsa modulus 2048'</title>
      <link>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4584614#M2426</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's been a few years since heavily used netmiko, but IMHO you should consider using &lt;STRONG&gt;Try/Except&amp;nbsp;&lt;/STRONG&gt;to catch devices that are timing out and then for those devices try to generate key separately using&amp;nbsp;&lt;STRONG&gt;send_command()&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;method. Since this method will keep waiting to receive data until device prompt is detected before moving into the next line of code, you will not have to worry about setting your script to sleep.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 19:19:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/netmiko-timeout-doing-crypto-generate-key-rsa-modulus-2048/m-p/4584614#M2426</guid>
      <dc:creator>Antonio Oliveira</dc:creator>
      <dc:date>2022-04-03T19:19:39Z</dc:date>
    </item>
  </channel>
</rss>

