<?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 Can we export device details to xml from NSO(CDB) in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547538#M1633</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;If we have NSO with devices added, is there a way to export it to an xml file (like we do import device xml to NSO with ncs_load)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:02:53 GMT</pubDate>
    <dc:creator>kbarve</dc:creator>
    <dc:date>2019-03-01T12:02:53Z</dc:date>
    <item>
      <title>Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547538#M1633</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;If we have NSO with devices added, is there a way to export it to an xml file (like we do import device xml to NSO with ncs_load)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kirti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:02:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547538#M1633</guid>
      <dc:creator>kbarve</dc:creator>
      <dc:date>2019-03-01T12:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547539#M1634</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;sure, you could do it this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin@ncs(config)#&lt;/STRONG&gt; show full-configuration devices device device0 | display xml | save device0.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:45:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547539#M1634</guid>
      <dc:creator>sspehar</dc:creator>
      <dc:date>2017-11-21T09:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547540#M1635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or even&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;admin@ncs% save device0.xml xml devices device device0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 10:10:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547540#M1635</guid>
      <dc:creator>hniska</dc:creator>
      <dc:date>2017-11-23T10:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547541#M1636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ncs_load command works for both import and export.&lt;/P&gt;&lt;P&gt;The default behavior is actually export (save)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting with Keypath&lt;/P&gt;&lt;P&gt;# ncs_load -p /devices/device{csr}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting with with xpath&lt;/P&gt;&lt;P&gt;# ncs_load -P "/devices/device[name='csr']"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Several options are there. -F option can control the output format, for example.&lt;/P&gt;&lt;P&gt;To include operational data, -o option can be used.&lt;/P&gt;&lt;P&gt;Please see the details in the help.&lt;/P&gt;&lt;P&gt;# ncs_load -h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 01:15:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547541#M1636</guid>
      <dc:creator>Akira Iwamoto</dc:creator>
      <dc:date>2017-11-24T01:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547542#M1637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Akira, those commands really helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another query. Is there any command to wipe out the NSO CDB. meaning just delete all devices from NSO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(We did try ncs_load -l dummy.xml, this deletes all devices and add dummy device, but then we have to get rid of dummy device as well. so was looking for something which will cleanup the CDB)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 06:41:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547542#M1637</guid>
      <dc:creator>kbarve</dc:creator>
      <dc:date>2017-11-28T06:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547543#M1638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't think of good way to do with ncs_load.&lt;/P&gt;&lt;P&gt;Replacing with the specified xml needs the current existing data without devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it easier, how about to use ncs_cli command?&lt;/P&gt;&lt;P&gt;--- &lt;/P&gt;&lt;P&gt;admin@ncs(config)# no devices device *&lt;/P&gt;&lt;P&gt;admin@ncs(config)# commit&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to complete on linux shell, you can use pipes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;$ cat device_delete.txt&lt;/P&gt;&lt;P&gt;conf&lt;/P&gt;&lt;P&gt;no devices device *&lt;/P&gt;&lt;P&gt;commit&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ ncs_cli -u admin -C &amp;lt; device_delete.txt&lt;/P&gt;&lt;P&gt;Commit complete.&lt;/P&gt;&lt;P&gt;$&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 06:57:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547543#M1638</guid>
      <dc:creator>Akira Iwamoto</dc:creator>
      <dc:date>2017-11-28T06:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547544#M1639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah any cli command is fine. How can I achieve CDB cleanup with ncs_cli ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:33:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547544#M1639</guid>
      <dc:creator>kbarve</dc:creator>
      <dc:date>2017-11-28T07:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547545#M1640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I understand what you want to ask.&lt;/P&gt;&lt;P&gt;I thought you wanted to delete the all devices in CDB. (/devices/device)&lt;/P&gt;&lt;P&gt;The above commit will delete the all devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, could you clarify your question more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:35:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547545#M1640</guid>
      <dc:creator>Akira Iwamoto</dc:creator>
      <dc:date>2017-11-28T07:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we export device details to xml from NSO(CDB)</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547546#M1641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i had not seen your earlier comment fully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ncs_cli commands which u suggested will suffice our requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you v much &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:37:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/can-we-export-device-details-to-xml-from-nso-cdb/m-p/3547546#M1641</guid>
      <dc:creator>kbarve</dc:creator>
      <dc:date>2017-11-28T07:37:20Z</dc:date>
    </item>
  </channel>
</rss>

