<?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: ssh.fetch_host_keys() is this function code visible ? in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425351#M87</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look in &amp;lt;NSO installation&amp;gt;/src/ncs/yang/tailf-ncs-ssh.yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 16:24:18 GMT</pubDate>
    <dc:creator>Jan Lindblad</dc:creator>
    <dc:date>2018-03-20T16:24:18Z</dc:date>
    <item>
      <title>ssh.fetch_host_keys() is this function code visible ?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425348#M84</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wanted to know `ssh.fetch_host_keys().result.string` all possible resulting strings i.e. updated, unchanged, failed, e.t.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any document can you please point me where i can find. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:07:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425348#M84</guid>
      <dc:creator>kiran kotari</dc:creator>
      <dc:date>2019-03-01T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: ssh.fetch_host_keys() is this function code visible ?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425349#M85</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get result as following.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for dev in root.ncs__devices.device:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output = dev.ssh.fetch_host_keys()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print('[{}]fetch result: {}'.format(&lt;SPAN style="font-size: 10pt;"&gt;dev.name, &lt;STRONG&gt;output.result&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ python ssh_fetch.py&lt;/P&gt;&lt;P&gt;[csr1kv]fetch result: unchanged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of tailf:action is same as the output structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 04:00:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425349#M85</guid>
      <dc:creator>ynagami</dc:creator>
      <dc:date>2018-03-20T04:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: ssh.fetch_host_keys() is this function code visible ?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425350#M86</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will give one result out of ? (updated, unchanged, failed, e.t.c) -&amp;gt; I want to know there i can find that list of results or the code which is sending them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 05:56:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425350#M86</guid>
      <dc:creator>kiran kotari</dc:creator>
      <dc:date>2018-03-20T05:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: ssh.fetch_host_keys() is this function code visible ?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425351#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look in &amp;lt;NSO installation&amp;gt;/src/ncs/yang/tailf-ncs-ssh.yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 16:24:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/3425351#M87</guid>
      <dc:creator>Jan Lindblad</dc:creator>
      <dc:date>2018-03-20T16:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: ssh.fetch_host_keys() is this function code visible ?</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/4169478#M5744</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/632102"&gt;@Jan Lindblad&lt;/a&gt;&amp;nbsp;Thanks, Now I am able to see all the possibly in the yang, pasting here.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    grouping ssh-host-keys-result {
      leaf result {
        type enumeration {
          enum failed {
            description
              "The key retrieval failed, e.g. due to failure to connect
               to the device or cluster node.";
            tailf:code-name hostkey_failed;
          }
          enum unchanged {
            description
              "The key retrieval succeeded, and the keys were the same
               as those already known.";
          }
          enum updated {
            description
              "The key retrieval succeeded, and the keys were not the same
               as those already known - i.e. there was at least one new or
               changed key. The updated keys were committed";
          }
          enum updated-uncommitted {
            description
              "The key retrieval succeeded, and the keys were not the same
               as those already known - i.e. there was at least one new or
               changed key. The updated keys were not committed, only stored
               in the current transaction, since the device or cluster node
               entry the keys pertain to was not committed (i.e. it only
               exists in the current transaction). The keys will be
               committed when the user commits the transaction.";
          }
          enum not-available {
            description
              "Key retrieval was not attempted due to not being applicable for
               the device type or additional live-tree protocol (e.g. CLI
               access via telnet rather than SSH).";
          }
        }
      }
}&lt;/LI-CODE&gt;
&lt;P&gt;I found a better way in recent days to fetch the fingerprint value, here is the solution&lt;/P&gt;
&lt;PRE&gt;dev = root.devices.device['ios-dev0']
list(dev.ssh.host_key)[0].show_fingerprint().value&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kiran Kumar&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 12:43:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/ssh-fetch-host-keys-is-this-function-code-visible/m-p/4169478#M5744</guid>
      <dc:creator>kiran kotari</dc:creator>
      <dc:date>2020-10-19T12:43:32Z</dc:date>
    </item>
  </channel>
</rss>

