<?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: Bypass pyats bringing device to &amp;quot;config&amp;quot; state in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295238#M2190</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1165900"&gt;@JanKrupa45054&lt;/a&gt;&amp;nbsp;if you do not get the reply here, head over to the pyATS Webex room here --&amp;gt;&amp;nbsp;&lt;A href="https://eurl.io/#r18UzrQVr" target="_blank"&gt;https://eurl.io/#r18UzrQVr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can email our external customer mailer at&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.cisco.com/mail-to:pyats-support-ext@cisco.com" target="_blank"&gt;pyats-support-ext@cisco.com&lt;/A&gt;&lt;SPAN&gt;. The development team is in EST time zone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and will usually respond within a day - we will provide best-effort support&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 11:53:23 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2021-02-22T11:53:23Z</dc:date>
    <item>
      <title>Bypass pyats bringing device to "config" state</title>
      <link>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295138#M2189</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to use pyAts as a tool to read configuration from devices. I do not need to enter `config state` mode and I don't even have the rights to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run my example code&lt;/P&gt;&lt;PRE&gt;from genie.testbed import load
from pprint import pprint

tb = load('testbed.yaml')
dev = tb.devices['R115']
dev.connect()&lt;/PRE&gt;&lt;P&gt;I end up with the error:&lt;/P&gt;&lt;PRE&gt;config term
   ^
% Invalid input detected at '^' marker.
unicon.core.errors.TimeoutError: timeout occurred:
              timeout value: 10
              last_command: 'config term\r'
             pattern: ['^(.*)\\(.*(con|cfg|ipsec-profile|ca-trustpoint|gkm-local-server)\\S*\\)#\\s?$', '^.*--\\s?[Mm]ore\\s?--.*$']
             buffer:"config term\r\nconfig term\r\n   ^\r\n% Invalid input detected at '^' marker.\r\n\r\nR115#"

unicon.core.errors.SubCommandFailure: (StateMachineError('Failed while bringing device to "config" state'), "config term\r\nconfig term\r\n   ^\r\n% Invalid input detected at '^' marker.\r\n\r\nR115#")&lt;/PRE&gt;&lt;P&gt;When the&amp;nbsp;&lt;STRONG&gt;connect()&amp;nbsp;&lt;/STRONG&gt;command is executed, the following commands are executed&lt;/P&gt;&lt;PRE&gt;config term
device(config)#no logging console
device(config)#line console
device(config)#exec-timeout 0
device(config)#terminal width 511
device(config)#end
device#&lt;/PRE&gt;&lt;P&gt;Is there any way, to bypass these commands? (entering config state mode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 07:50:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295138#M2189</guid>
      <dc:creator>JanKrupa45054</dc:creator>
      <dc:date>2021-02-22T07:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bypass pyats bringing device to "config" state</title>
      <link>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295238#M2190</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1165900"&gt;@JanKrupa45054&lt;/a&gt;&amp;nbsp;if you do not get the reply here, head over to the pyATS Webex room here --&amp;gt;&amp;nbsp;&lt;A href="https://eurl.io/#r18UzrQVr" target="_blank"&gt;https://eurl.io/#r18UzrQVr&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can email our external customer mailer at&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.cisco.com/mail-to:pyats-support-ext@cisco.com" target="_blank"&gt;pyats-support-ext@cisco.com&lt;/A&gt;&lt;SPAN&gt;. The development team is in EST time zone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and will usually respond within a day - we will provide best-effort support&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 11:53:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295238#M2190</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2021-02-22T11:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bypass pyats bringing device to "config" state</title>
      <link>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295261#M2191</link>
      <description>&lt;P&gt;Thanks to&amp;nbsp;Antoine Orsoni&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;BR /&gt;The connection below solves the problem&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;device.connect(init_exec_commands=[],
               init_config_commands=[],
               log_stdout=False)&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Feb 2021 12:51:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/bypass-pyats-bringing-device-to-quot-config-quot-state/m-p/4295261#M2191</guid>
      <dc:creator>JanKrupa45054</dc:creator>
      <dc:date>2021-02-22T12:51:28Z</dc:date>
    </item>
  </channel>
</rss>

