<?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: Cisco OpenVuln API customization in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469804#M91</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Huge thanks on the reply!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be a nice have since I use the API for one of our customers which we have weekly meetings on the vulnerabilities and we order the columns a certain way which currently I need to manually move them around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to add that the API has saved me a ton of time over the way I used to have to put together the doc for the customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 21:05:34 GMT</pubDate>
    <dc:creator>William Giannattasio</dc:creator>
    <dc:date>2017-10-10T21:05:34Z</dc:date>
    <item>
      <title>Cisco OpenVuln API customization</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469802#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Being relatively new to scripting, I was wondering if it possible to change the column order when downloading in CSV formation using the API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:07:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469802#M89</guid>
      <dc:creator>William Giannattasio</dc:creator>
      <dc:date>2017-09-14T17:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco OpenVuln API customization</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469803#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You bring an excellent point. The column order does not come from the API, but the &lt;A href="https://github.com/CiscoPSIRT/openVulnAPI/tree/master/openVulnQuery"&gt;openVulnQuery client.&lt;/A&gt; You will need to change that "post export".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct. In my example below I do the same query twice and export the output to two CSV files (example_1.csv and example_2.csv). In the second example, I change the order of the "filter" (fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;PRE&gt;bash-3.2$ openVulnQuery --cvrf --latest 2 -f advisory_id sir cves --csv example_1.csv
bash-3.2$
bash-3.2$ cat example_1.csv
advisory_id,sir,cves
cisco-sa-20170419-cimc,High,CVE-2017-6619
cisco-sa-20170419-cimc3,Critical,CVE-2017-6616
bash-3.2$
bash-3.2$
bash-3.2$
bash-3.2$ openVulnQuery --cvrf --latest 2 -f advisory_id cves sir --csv example_2.csv
bash-3.2$ cat example_2.csv
advisory_id,sir,cves
cisco-sa-20170419-cimc,High,CVE-2017-6619
cisco-sa-20170419-cimc3,Critical,CVE-2017-6616
&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the columns stayed the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The openVulnQuery client is a community supported client. I have added an enhancement request at GitHub:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoPSIRT/openVulnAPI/issues/39" style="font-size: 10pt;" title="https://github.com/CiscoPSIRT/openVulnAPI/issues/39"&gt;https://github.com/CiscoPSIRT/openVulnAPI/issues/39&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 04:23:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469803#M90</guid>
      <dc:creator>Omar Santos</dc:creator>
      <dc:date>2017-10-04T04:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco OpenVuln API customization</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469804#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Huge thanks on the reply!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be a nice have since I use the API for one of our customers which we have weekly meetings on the vulnerabilities and we order the columns a certain way which currently I need to manually move them around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to add that the API has saved me a ton of time over the way I used to have to put together the doc for the customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 21:05:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-openvuln-api-customization/m-p/3469804#M91</guid>
      <dc:creator>William Giannattasio</dc:creator>
      <dc:date>2017-10-10T21:05:34Z</dc:date>
    </item>
  </channel>
</rss>

