cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
664
Views
0
Helpful
4
Replies

Download a single file via AXL

Chester Rieman
Cisco Employee
Cisco Employee

Hi All,

     I can use LogCollectionPort to gather sets of files such as:

<item>Event Viewer-Application Log</item>

Is there a way to use this method to gather a single file?

I see the response from what I am using has

<item xsi:type="ns2:ServiceLogs">

<name xsi:type="xsd:string" xsi:nil="true"/>

<SetOfFiles soapenc:arrayType="ns2:file[1]" xsi:type="soapenc:Array">

<item xsi:type="ns2:file">

<name xsi:type="xsd:string">CiscoSyslog</name>

<absolutepath xsi:type="xsd:string">/var/log/active/syslog/CiscoSyslog</absolutepath>

<filesize xsi:type="xsd:string">3981329</filesize>

<modifiedDate xsi:type="xsd:string">Mon Sep 28 19:04:17 MDT 2015</modifiedDate>

</item></SetOfFiles></item>

</ServiceList>

</Node>

</FileSelectionResult>

<ScheduleList soapenc:arrayType="ns3:Schedule[0]" xsi:type="soapenc:Array" xmlns:ns3="http://cisco.

com/ccm/serviceability/soap/LogCollection/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"/>

</ns1:SelectLogFilesResponse></soapenv:Body></soapenv:Envelope>

Is there a way to specify name  and absolutepath in the request?

Thanks

4 Replies 4

I did see that - I'm using cURL in a bash script - I'll play around and see if I can make it work.

with the method I'm using, it's downloading the files via sftp, if I can do that with one file it would be ideal.

Can you use the dime method with cURL?

Anyone have a working example?

I've never tried that so I don't have an example, but off hand, I don't see why you couldn't do that with cURL/SOAP.

Just curious, what language? 

OK got this to work with DimeGetFile.

You have to change the URL where you send the request instead of

https://${node}/logcollectionservice/services/LogCollectionPort

you need to send the request to

https://${node}/logcollectionservice/services/DimeGetFileService