<?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: ERROR - CapabilityRequest failed with error in Tools</title>
    <link>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3891702#M2081</link>
    <description>missed "no-tls" command under grpc configuration on device. &lt;BR /&gt;&lt;BR /&gt;RP/0/RP0/CPU0:r1#show run grpc&lt;BR /&gt;Wed Jul 17 16:30:17.745 CST&lt;BR /&gt;grpc&lt;BR /&gt; port 57344&lt;BR /&gt; no-tls&lt;BR /&gt;!</description>
    <pubDate>Wed, 17 Jul 2019 08:32:21 GMT</pubDate>
    <dc:creator>Xi Zhang</dc:creator>
    <dc:date>2019-07-17T08:32:21Z</dc:date>
    <item>
      <title>ERROR - CapabilityRequest failed with error</title>
      <link>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3891548#M2080</link>
      <description>&lt;P&gt;I am trying to test ydk(0.8.3) gnmi function with iosxr 6.5.1. Just executing the gnmi/samples/hello_ydk_gnmi.py but got following error response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[root@localhost ~]# python hello_ydk_gnmi.py -v ssh://cisco:1qaz@WSX@10.124.209.91:57344&amp;nbsp;/root/ydk/10.124.209.91_830&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2019-07-16 20:43:56,876 - ydk - ERROR - CapabilityRequest failed with error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Socket closed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "hello_ydk_gnmi.py", line 48, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;password=device.password)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;File "/root/virtualenv-rasta/lib64/python3.6/site-packages/ydk/gnmi/providers/gnmi_provider.py", line 40, in __init__&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;server_certificate, private_key)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RuntimeError: YServiceProviderError: CapabilityRequest failed with error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Socket closed&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have verify the device gnmi function with opencconfig gnmi_client. It works fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Show Version:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;RP/0/RP0/CPU0:r1#show version&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Wed Jul 17 11:23:47.593 CST&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Cisco IOS XR Software, Version 6.5.1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Copyright (c) 2013-2018 by Cisco Systems, Inc.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Build Information:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Built By : ahoang&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Built On : Wed Aug 8 17:29:38 PDT 2018&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Built Host : iox-ucs-019&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Workspace : /auto/srcarchive17/prod/6.5.1/xrv9k/ws&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Version : 6.5.1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Location : /opt/cisco/XR/packages/&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;cisco IOS-XRv 9000 () processor&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;System uptime is 3 weeks 4 days 17 hours 31 minutes&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 03:27:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3891548#M2080</guid>
      <dc:creator>Xi Zhang</dc:creator>
      <dc:date>2019-07-17T03:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR - CapabilityRequest failed with error</title>
      <link>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3891702#M2081</link>
      <description>missed "no-tls" command under grpc configuration on device. &lt;BR /&gt;&lt;BR /&gt;RP/0/RP0/CPU0:r1#show run grpc&lt;BR /&gt;Wed Jul 17 16:30:17.745 CST&lt;BR /&gt;grpc&lt;BR /&gt; port 57344&lt;BR /&gt; no-tls&lt;BR /&gt;!</description>
      <pubDate>Wed, 17 Jul 2019 08:32:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3891702#M2081</guid>
      <dc:creator>Xi Zhang</dc:creator>
      <dc:date>2019-07-17T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR - CapabilityRequest failed with error</title>
      <link>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3892049#M2082</link>
      <description>&lt;P&gt;Hello Xi Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;Your password contains control character '@', therefore it should be taken in single quotes. The script executed from my space with YDK-0.8.3:&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;# python hello_ydk_gnmi.py -v ssh://cisco:'1qaz@WSX'@10.124.209.91:57344 /home/ygorelik/.ydk/10.124.209.91&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2019-07-17 00:51:39,578 - ydk - INFO - gNMIServiceProvider Connected to 10.124.209.91 via Insecure Channel&lt;BR /&gt;2019-07-17 00:51:39,579 - ydk - INFO - Executing CRUD read operation on [Cisco-IOS-XR-shellutil-oper:system-time]&lt;BR /&gt;2019-07-17 00:51:39,580 - ydk - INFO -&lt;BR /&gt;=============== Get Request Sent ================&lt;BR /&gt;path {&lt;BR /&gt;origin: "Cisco-IOS-XR-shellutil-oper"&lt;BR /&gt;elem {&lt;BR /&gt;name: "system-time"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;encoding: JSON_IETF&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2019-07-17 00:51:39,775 - ydk - INFO -&lt;BR /&gt;============= Get Response Received =============&lt;BR /&gt;notification {&lt;BR /&gt;timestamp: 1563378607154796089&lt;BR /&gt;update {&lt;BR /&gt;path {&lt;BR /&gt;origin: "Cisco-IOS-XR-shellutil-oper"&lt;BR /&gt;elem {&lt;BR /&gt;name: "system-time"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;val {&lt;BR /&gt;json_ietf_val: "{\"clock\":{\"year\":2019,\"month\":7,\"day\":17,\"hour\":23,\"minute\":50,\"second\":7,\"millisecond\":143,\"wday\":3,\"time-zone\":\"CST\",\"time-source\":\"ntp\"},\"uptime\":{\"host-name\":\"r1\",\"uptime\":2267896}}"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;error {&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2019-07-17 00:51:39,775 - ydk - INFO - Get Operation Succeeded&lt;BR /&gt;System 'r1' uptime is 26 days, 5:58:16&lt;BR /&gt;2019-07-17 00:51:39,779 - ydk - INFO - Disconnected from device&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:53:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3892049#M2082</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2019-07-17T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR - CapabilityRequest failed with error</title>
      <link>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3893317#M2083</link>
      <description>&lt;P&gt;Hello, ygrelik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply. I had tested even without the quotes, the password still could be recognized correctly. The root cause is one configuration ('no-tls' under grpc) missed on device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 06:37:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/error-capabilityrequest-failed-with-error/m-p/3893317#M2083</guid>
      <dc:creator>Xi Zhang</dc:creator>
      <dc:date>2019-07-19T06:37:08Z</dc:date>
    </item>
  </channel>
</rss>

