Downloading Patch Files via Ansible Script
search cancel

Downloading Patch Files via Ansible Script

book

Article ID: 235750

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We tried to download the patch via an Ansible script like below:

"wget ftp://downloads.broadcom.com/21983200/Layer7_API_PlatformUpdate_64bit_v10.X-CentOS-2022-01-26.
L7P --user username@<user_domain> --ask-password" 

and then we get the error:

--2022-02-28 08:41:39-- ftp://downloads.broadcom.com/21983200/Layer7_API_PlatformUpdate_64bit_v10.X-CentOS-2022-01-26.L7P
      => ‘Layer7_API_PlatformUpdate_64bit_v10.X-CentOS-2022-01-26.L7P’
Resolving downloads.broadcom.com (downloads.broadcom.com)... xxx.xxx.x.x
Connecting to downloads.broadcom.com (downloads.broadcom.com)|xxx.xxx.x.x|:21... connected.
Logging in as [email protected] ... Logged in!
==> SYST ... done.  ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /21983200 ...
No such directory ‘21983200’

Is there a way to get a STABLE url (without a custom part) and a user with which to download the files in a deployment script?

Environment

Release : 10.0

Component : API GATEWAY

Resolution

21983200 is an sample system generated unique 'user directory number' and will be changed for each user download.

so it is not possible to use a script to download the file as the directory number is dynamic and changes for each download