09-20-2019 09:06 AM
I'm using the Automated Software Distribution API to download Metadata using the Product Id and Current Release.
Step 1 Call the ASD API and extract the Metadata which includes:- Image GUI, Image Name, Image Size, MDF ID, Meta Trans ID... No problem!
Step 2 To download the Software you need to obtain the Software URL by using ' Get Software Download URL's'.
Unfortunately I get a response with the exception_code: IMAGE_GUID_INVALID exception_message:The image_guid provided in the request is invalid... and the url is null.
I have taken the GUID Images that have failed and using the search facility on the Cisco website can for the most part download that image, a few come back with "No Results" when searching.
Why would the metadata contain what appears to be valid Image GUID (I can manually download the Image for most of the files) that according to the Get Software Download URL is invalid. Is it the Product ID or Current Release issue?
Any help would be appreciated.
.
Step 3 Would be to download the file but the Image GUID returned in step 1
Solved! Go to Solution.
09-25-2019 08:39 AM
Hi Simon,
Can you please send the url for metadata and download services that you used to asdapi@external.cisco.com. We will set-up a meeting with you after we have received the details and reviewed them.
Thanks,
ASD API Team
09-23-2019 12:23 PM
Hello,
Can you please share the metadata and download url call?
Can you also share the specific examples of the image_guids where you received no results.
If there is a deferral advsiory issued for the software image, then you will not be able to download the image. The metadata response will include these images with a deferral_notice information.
Do you see these image guids with a deferral_notice in the metadata response?
Can you please send the details to asd-team@cisco.com.
Thank you,
Automated Software Distribution API team.
09-24-2019 04:08 AM
Apologies for not replying sooner. Here is one of the 1810 null responses I received. About 50% of the time the script works and will download files quite happily.
Image GUID: 87B2D07A1BED5F7728C7BFFE115A0B089FB6AE29
Excerp from the Script:-
24/09/2019 @ 07:00:22
PRODUCT: Cisco ASR RP2
PID: ASR1004
RELEASE: 3.16.9S
IMAGE GUID: 87B2D07A1BED5F7728C7BFFE115A0B089FB6AE29
IMAGE NAME: asr1000rp1-adventerprisek9.03.16.09.S.155-3.S9-ext.bin
IMAGE SIZE: 395113084
METATRAN_ID: 210992117
MDFID: 282450665
Release Ver: Fuji-16.9.4
Date: 2019-08-25
Check Sums: MD5:- 2310c29f534f4a0c0c13639508a27c5b
SHA512:- 5552eada798aebf997b3046f7e4f66d370d47beaa4183efd61769e612d6fe60b9ef9f85ec46a38653a301d9603a76bd3417a92f443c42df41547eb2bd4d6ca83
24/09/2019 @ 07:00:23 ++++ WARNING Release: 3.16.9S / exception_code:IMAGE_GUID_INVALID exception_message:The image_guid provided in the request is invalid. Please provide a valid image_guid.. ++++
Metadata
{"pagination_response_record":
{"page_index":1
"last_index":1
"total_records":13
"page_records":13
"self_link":"https://api.cisco.com/software/v3.0/metadata/pids/ASR1004/current_releases/3.16.9S/output_releases/Latest?page_index=1"
"title":"Get Metadata by PIDs
Current Releases
Output Releases - Download API"}
"service_status":
{"status":"success"
"asd_service_response_exception":null}
"metadata_response":
{"metadata_trans_id":"210992117"
"metadata_pid_list":[
{"pid":"ASR1004"
"asd_metadata_exception":null
"metadata_mdfid_list":[
{"mdfid":"282046548"
"mdf_concept_name":"ASR 1000 Series Route Processor (RP1)"
"software_response_list":[
{"software_type_id":"282046477"
"software_type_name":"IOS XE Software"
"platform_list":[
{"operating_platform":null
"release_list":[
{"release_version":"3.16.9S"
"release_fcs_date":"2019-03-21"
"release_message":null
"release_life_cycle":"MD"
"field_notice_url":"https://www.cisco.comhttps://www.cisco.com/en/US/products/hw/modules/ps3842/prod_field_notices_list.html"
"security_advisory":null
"catalog_message":null
"is_suggested_rel":"Y"
"release_level_docs":[]
"is_deleted":"N"
"deleted_date":null
"image_details":[
{"image_guid":"69C42462A8B8167ED79B8E994441DEA9D333652F"
"software_advisory":null
"deferral_notice":null
"related_image":"N"
"image_name":"asr1000rp1-adventerprise.03.16.09.S.155-3.S9-ext.bin"
"image_size":"389313136"
"image_description":"Cisco ASR 1000 Series RP1 ADVANCED ENTERPRISE SERVICES W/O CRYPTO"
"feature_set_description":null
"min_dram":"4096"
"min_flash":"1024"
"encryption_software_indicator":"N"
"image_checksums":
{"md5_checksum":"10da8a08cc5f80e8eba16e4b07860dc8"
"sha512_checksum":"1ac7eb2f7a78f2687b118c656bca733a7fc97c4e4811f6508c598128e3a85c61fd9c7618192f14e7b833be20bab97923215f08de11cf4fd310c1815fc27fd56d"}
"image_level_docs":[]
"asd_image_exception":[
{"exception_code":"CONTRACT_LOGIN"
"exception_message":"To Download this software
you must Log In and have a valid service contract associated to your Cisco.com profile. The image information is provided by this service but you would not be able to get the Image Download URL from the download service.If you do not have a service contract you can get one through: Your Cisco Account Team if you have a direct purchase agreement with Cisco Or your Cisco Partner or Reseller. Once you have the service contract you must associate your service contract to your Cisco.com user ID with Profile Manager."}]
"is_deleted":"N"
"deleted_date":null
"migration_release_version":null
"migration_target_retirement_date":null
"migration_release_life_cycle":null}
{"image_guid":"87B2D07A1BED5F7728C7BFFE115A0B089FB6AE29"
"software_advisory":null
"deferral_notice":null
"related_image":"N"
"image_name":"asr1000rp1-adventerprisek9.03.16.09.S.155-3.S9-ext.bin"
"image_size":"395113084"
"image_description":"Cisco ASR 1000 Series RP1 ADVANCED ENTERPRISE SERVICES"
"feature_set_description":null
"min_dram":"4096"
"min_flash":"1024"
"encryption_software_indicator":"Y"
"image_checksums":
{"md5_checksum":"2310c29f534f4a0c0c13639508a27c5b"
"sha512_checksum":"5552eada798aebf997b3046f7e4f66d370d47beaa4183efd61769e612d6fe60b9ef9f85ec46a38653a301d9603a76bd3417a92f443c42df41547eb2bd4d6ca83"}
"image_level_docs":[]
"asd_image_exception":[
{"exception_code":"CONTRACT_LOGIN"
"exception_message":"To Download this software
you must Log In and have a valid service contract associated to your Cisco.com profile. The image information is provided by this service but you would not be able to get the Image Download URL from the download service.If you do not have a service contract you can get one through: Your Cisco Account Team if you have a direct purchase agreement with Cisco Or your Cisco Partner or Reseller. Once you have the service contract you must associate your service contract to your Cisco.com user ID with Profile Manager."}]
"is_deleted":"N"
"deleted_date":null
"migration_release_version":null
"migration_target_retirement_date":null
"migration_release_life_cycle":null}
An example of the Response from the Get URL. If you need to see the actual response for that particular GUID Image I could get it to you.
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 553 100 504 100 49 631 61 --:--:-- --:--:-- --:--:-- 630 {
download_session_id:65504223 download_retry_id:57598867 service_status:success asd_service_response_exception:null asd_download_acceptance_exception:[] download_info_list:[
{ download_url:null image_guid:3C2D5F034A4AC2E67736D0C83CEA689D4CFA9566 image_full_name:null asd_download_url_exception:
[
{exception_code:IMAGE_GUID_INVALID exception_message:The image_guid provided in the request is invalid. Please provide a valid image_guid.. }
]
cloud_url:null token:null}
]
}
Thanks for your help!
Regards,
Simon
09-24-2019 05:37 AM
PS Whoops - I will post the above to asd-team@cisco.com with some extra code. Thanks Simon
09-24-2019 07:00 AM
I did try emailing the ads-team, twice and got this:-
alln-inbound-e.cisco.com rejected your message to the following e-mail addresses:
alln-inbound-e.cisco.com gave this error:
#5.1.0 Address rejected.
A problem occurred during the delivery of this message to this e-mail address. Try sending this message again. If the problem continues, please contact your helpdesk.
I'll contact our helpdesk.
Simon
09-25-2019 08:39 AM
Hi Simon,
Can you please send the url for metadata and download services that you used to asdapi@external.cisco.com. We will set-up a meeting with you after we have received the details and reviewed them.
Thanks,
ASD API Team
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide