<?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: PyATS Connection Freeze in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3909872#M1913</link>
    <description>Yeah figured it out in the end thanks. This was it.</description>
    <pubDate>Sun, 18 Aug 2019 23:12:04 GMT</pubDate>
    <dc:creator>PeterAnsell</dc:creator>
    <dc:date>2019-08-18T23:12:04Z</dc:date>
    <item>
      <title>PyATS Connection Freeze</title>
      <link>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3858926#M1911</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to get a handle on pyats and explore what it might be able to do and i have run into an interesting problem straight out of the gate. This one is gonna sound pretty basic but thats where i am at with this sort of thing so here goes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when running any of the pyats sample scripts using a testbed modified to match my own devices i get the following errors. If i use the ipyats to connect to the devnet testbed from my local machone it works just fine. Im not really sure how to troubleshoot this further so i turn to the DevNet community for suggestions. For the record i can connect via ssh to the device from this device normally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From playing in the testbed it should move on to configuring an automation friendly terminal, setting term len, width etc but it just hangs here until it times out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Error Snippet&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In [2]: rr.connect()&lt;BR /&gt;[2019-05-19 19:37:51,671] +++ ios1 logfile /tmp/ios1-cli-20190519T193751669.log +++&lt;BR /&gt;[2019-05-19 19:37:51,672] +++ Unicon plugin ios +++&lt;BR /&gt;[2019-05-19 19:37:51,677] +++ connection to spawn: ssh -l &amp;lt;username&amp;gt; &amp;lt;ip address&amp;gt;, id: 4663560008 +++&lt;BR /&gt;[2019-05-19 19:37:51,678] connection to ios1&lt;/P&gt;&lt;P&gt;Password:&lt;BR /&gt;Last switch-over Wed Sep 26 23:43:20 2018: 33 weeks, 3 days, 19 hours, 54 minutes ago&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RP/0/RSP0/CPU0:&amp;lt;device_hostname&amp;gt;#---------------------------------------------------------------------------&lt;BR /&gt;TimeoutError Traceback (most recent call last)&lt;BR /&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/statemachine/statemachine.cpython-36m-darwin.so in unicon.statemachine.statemachine.StateMachine.go_to()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/statemachine/statetransition.cpython-36m-darwin.so in unicon.statemachine.statetransition.AnyStateTransition.do_transitions()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/dialogs.cpython-36m-darwin.so in unicon.eal.dialogs.Dialog.process()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/dialog_processor.cpython-36m-darwin.so in unicon.eal.dialog_processor.AlarmBasedDialogProcessor.process()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/dialog_processor.cpython-36m-darwin.so in unicon.eal.dialog_processor.AlarmBasedDialogProcessor.process()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/dialog_processor.cpython-36m-darwin.so in unicon.eal.dialog_processor.AlarmBasedDialogProcessor.expect_eval_statements()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/backend/pty_backend.cpython-36m-darwin.so in unicon.eal.backend.pty_backend.RawSpawn.read_update_buffer()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/backend/pty_backend.cpython-36m-darwin.so in unicon.eal.backend.pty_backend.RawPtySpawn.is_readable()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/backend/pty_backend.cpython-36m-darwin.so in unicon.eal.backend.pty_backend.RawPtySpawn.is_readable()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/eal/dialog_processor.cpython-36m-darwin.so in unicon.eal.dialog_processor.AlarmBasedDialogProcessor.timeout_handler()&lt;/P&gt;&lt;P&gt;TimeoutError: timeout occurred:&lt;BR /&gt;timeout value: 60&lt;BR /&gt;last_command: '&amp;lt;password&amp;gt;\r'&lt;BR /&gt;pattern: ['^.*?% (Bad passwords|Access denied|Authentication failed)', '^.*Login incorrect', '^.*([Uu]sername|[Ll]ogin): ?$', '^.*User Access Verification', '^.*[Pp]assword( for )?(\\S+)?: ?$', '^(.*)Kerberos: No default realm defined for Kerberos!', '^.*(initial|basic) configuration dialog ?\\?? ((\\[yes.*\\])|(\\(yes/no\\))|(\\(yes/no\\) (\\[y\\]))):', 'Would you like to enter basic management setup\\? \\[yes/no\\]:', 'Escape character is .*\\n', '^.*RETURN to get started', 'Are you sure you want to continue connecting \\(yes/no\\)', '^.*(Connection refused|Connection reset by peer|Network is down|closed by remote host)', 'Received disconnect from .*:', 'Hit Enter to proceed:', '^(.*?)Press Ctrl\\+x to Exit the session', '^(.*?)Connected.', '^.*?% (Bad passwords|Access denied|Authentication failed)', '^.*Login incorrect', '^.*([Uu]sername|[Ll]ogin): ?$', '^.*User Access Verification', '^.*[Pp]assword( for )?(\\S+)?: ?$', '^(.*)Kerberos: No default realm defined for Kerberos!', '^.*[Pp]assword( for )?(\\S+)?: ?$', '^.*?% (Bad passwords|Access denied|Authentication failed)', 'rommon[\\s\\d]*&amp;gt;\\s?$', '^(.*?)(Router|Router-stby|Router-sdby|RouterRP|RouterRP-standby|ios1-standby|ios1-sdby|ios1-stby|(S|s)witch|s(S|s)witch\\(standby\\)|Controller|ios|-Slot[0-9]+|ios1)(\\(boot\\))*&amp;gt;\\s?$', '^(.*)\\(.*(con|cfg|ipsec-profile)\\S*\\)#\\s?$', '^(.*?)(Router|Router-stby|Router-sdby|RouterRP|RouterRP-standby|ios1-standby|ios1\\(standby\\)|ios1-sdby|ios1-stby|(S|s)witch|(S|s)witch\\(standby\\)|Controller|ios|-Slot[0-9]+|ios1)(\\(boot\\))*#\\s?$', '^.*--\\s?[Mm]ore\\s?--.*']&lt;BR /&gt;buffer:'\r\nLast switch-over Wed Sep 26 23:43:20 2018: 33 weeks, 3 days, 19 hours, 54 minutes ago\r\n\r\nRP/0/RSP0/CPU0:&amp;lt;device_hostname&amp;gt;#'&lt;/P&gt;&lt;P&gt;The above exception was the direct cause of the following exception:&lt;/P&gt;&lt;P&gt;StateMachineError Traceback (most recent call last)&lt;BR /&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/bases/connection.cpython-36m-darwin.so in unicon.bases.connection.Connection.connect()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/bases/routers/connection_provider.cpython-36m-darwin.so in unicon.bases.routers.connection_provider.BaseSingleRpConnectionProvider.connect()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/bases/routers/connection_provider.cpython-36m-darwin.so in unicon.bases.routers.connection_provider.BaseSingleRpConnectionProvider.establish_connection()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/statemachine/statemachine.cpython-36m-darwin.so in unicon.statemachine.statemachine.StateMachine.go_to()&lt;/P&gt;&lt;P&gt;StateMachineError: Failed while bringing device to "any" state&lt;/P&gt;&lt;P&gt;The above exception was the direct cause of the following exception:&lt;/P&gt;&lt;P&gt;ConnectionError Traceback (most recent call last)&lt;BR /&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ipyats/main.py in &amp;lt;module&amp;gt;&lt;BR /&gt;----&amp;gt; 1 rr.connect()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyats/connections/manager.cpython-36m-darwin.so in pyats.connections.manager.ConnectionManager.connect()&lt;/P&gt;&lt;P&gt;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/unicon/bases/connection.cpython-36m-darwin.so in unicon.bases.connection.Connection.connect()&lt;/P&gt;&lt;P&gt;ConnectionError: failed to connect to ios1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 09:49:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3858926#M1911</guid>
      <dc:creator>PeterAnsell</dc:creator>
      <dc:date>2019-05-19T09:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: PyATS Connection Freeze</title>
      <link>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3909846#M1912</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guessing you probably worked it out by now, the device name in your testbed file must be an exact match of the hostname of the device. Unfortunately is not very clear in peoples how-to-guides or the DevNet videos, but is in the unicon documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 18:19:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3909846#M1912</guid>
      <dc:creator>sjhloco</dc:creator>
      <dc:date>2019-08-18T18:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: PyATS Connection Freeze</title>
      <link>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3909872#M1913</link>
      <description>Yeah figured it out in the end thanks. This was it.</description>
      <pubDate>Sun, 18 Aug 2019 23:12:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyats-connection-freeze/m-p/3909872#M1913</guid>
      <dc:creator>PeterAnsell</dc:creator>
      <dc:date>2019-08-18T23:12:04Z</dc:date>
    </item>
  </channel>
</rss>

