<?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 show service output in a table format in NSO cli in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3936990#M4401</link>
    <description>&lt;P&gt;Customer asked me to create a service in NSO with java in order to&amp;nbsp; show in a table format some data in the cli either in the webUi. These data in table format should be the input to another service.&lt;/P&gt;&lt;P&gt;I don'think this is possible in NSO: as for me it'is only possible to write data in a file and read it as input in another service, but I'm new in NSO programming. Besides I have no idea how I can show table formatted data in the cli with a service. Could anyone help me to find a solution?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 09:29:25 GMT</pubDate>
    <dc:creator>FedericaBonifacio</dc:creator>
    <dc:date>2019-10-08T09:29:25Z</dc:date>
    <item>
      <title>show service output in a table format in NSO cli</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3936990#M4401</link>
      <description>&lt;P&gt;Customer asked me to create a service in NSO with java in order to&amp;nbsp; show in a table format some data in the cli either in the webUi. These data in table format should be the input to another service.&lt;/P&gt;&lt;P&gt;I don'think this is possible in NSO: as for me it'is only possible to write data in a file and read it as input in another service, but I'm new in NSO programming. Besides I have no idea how I can show table formatted data in the cli with a service. Could anyone help me to find a solution?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 09:29:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3936990#M4401</guid>
      <dc:creator>FedericaBonifacio</dc:creator>
      <dc:date>2019-10-08T09:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: show service output in a table format in NSO cli</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3938281#M4405</link>
      <description>&lt;P&gt;I don't think it is possible for a &lt;EM&gt;service&lt;/EM&gt; to have output.&amp;nbsp; As you say, you could write it to a file.&amp;nbsp; But perhaps a better possibility is to write it to the CDB itself so that other services could read it directly.&amp;nbsp; If you really want to return output to the CLI, you could use an action instead of a service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Allen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 20:57:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3938281#M4405</guid>
      <dc:creator>allenc</dc:creator>
      <dc:date>2019-10-09T20:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: show service output in a table format in NSO cli</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3938607#M4407</link>
      <description>&lt;P&gt;Thank you for reply, it's very helpful for me.&lt;/P&gt;&lt;P&gt;Can you suggest&amp;nbsp; any example or best practice in the web to implement the action?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 08:34:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3938607#M4407</guid>
      <dc:creator>FedericaBonifacio</dc:creator>
      <dc:date>2019-10-10T08:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: show service output in a table format in NSO cli</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3938662#M4408</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the "using service output as input to another service" - as it was suggested to you the second service can have access to the stored values of the initial service in the CDB so there is no real need for an output.&lt;/P&gt;
&lt;P&gt;If the second service will always be created after the initial one you can have a look at stacked services (not saying it matches your use case but it is possible).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the "seeing the values of a service as a table" - in CLI you have the option after the show command to add tab after a pipe - of course if your service has many leaves it may become unreadable but you can filter on the leaves using select:&lt;/P&gt;
&lt;PRE&gt;admin@ncs# show running-config test
test 42
 dummy 1.1.1.1
!
test 43
 dummy 2.2.2.2
!
admin@ncs# show running-config test | tab
NAME  DEVICE  DUMMY
-----------------------
42    -       1.1.1.1
43    -       2.2.2.2

admin@ncs# show running-config test | select dummy | tab
NAME  DUMMY
---------------
42    1.1.1.1
43    2.2.2.2&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 09:45:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/show-service-output-in-a-table-format-in-nso-cli/m-p/3938662#M4408</guid>
      <dc:creator>gmuloche</dc:creator>
      <dc:date>2019-10-10T09:45:05Z</dc:date>
    </item>
  </channel>
</rss>

