ECACCES...ION-GET(1p)
π ecaccess-association-get(1p) π
okay bestie, so this is a page from the User Contributed Perl Documentation section of the manual, and it's all about the ecaccess-association-get command. Sit down, grab a strawberry π, because we're about to become the main character of Association Descriptive Files.
β¨ NAME β¨
ecaccess-association-get β Get the Association Descriptive File π
πΈ SYNOPSIS πΈ
ecaccess-association-get -version|-help|-manual
ecaccess-association-get [-debug] [-gateway name] [-template]
association-name target-file
π¦ DESCRIPTION π¦
So basically, this command grabs the Descriptive File for the ECtrans Association you name with the association-name parameter. Once you've downloaded it, that target-file is yours to edit and then push back through the ecaccess-association-put command. Periodt. β¨
Now, when you use the -template option: if that Association already exists in the ECaccess Gateway Database, the command comes back with an error, no cap. So if you want to make a brand new Association that looks like one you already have, the move is to use ecaccess-association-get to pull down the Descriptive File of the existing Association. Then you update that file and shove it into the ECaccess Gateway Database with the ecaccess-association-put command. iykyk π«Ά
An ECtrans Association Descriptive File holds parameters for ECtrans, and they're all of the general form $name='value'. Every single ECtrans Association has its own Descriptive File, and the parameters in any given Descriptive File get passed to the ECtrans container whenever a transfer is requested to the corresponding Association. iconic behavior honestly π
Blank lines, plus leading spaces and tabs, are ignored β except when they show up inside single quoted strings. Lines whose first non-space character is a pound-sign (#) are comments, and they get ignored too. Important vibe check though: comments are not allowed on the same line as parameters, and they don't persist when the Descriptive File is retrieved from the Gateway (they might however be used when Descriptive Files are archived on your system). so, like, don't get attached π
The parameters are the following:
activeβ This is a boolean which indicate if the Association can be used by ECtrans or not (e.g.'yes'or'no'). You might want to deactivate an Association but still keep it in the ECaccess Gateway Database for later. lowkey a soft launch πcommentβ This is a comment about your Association (e.g.'Access to the archive system').grantedUserListβ This is the list of ECMWF user identifiers which are allowed (other that you) to use this Association. Multiple users should be separated by a column (e.g.'abc,def,ghi').directoryβ This is the directory where to download/upload the files from/to (e.g.'/tmp/data').hostNameβ This is the name of the host to connect to (e.g.'hostname.example.ms').loginβ This is the login to use to connect to the host specified in thehostNameparameter (e.g.'anonymous').protocolβ This is the protocol ECtrans will use to connect to the host specified in thehostNameparameter. The list of available protocols for a Gateway can be displayed with theecaccess-protocol-listcommand (e.g.'genericFtp').dataβ This parameter can be split over multiple lines and contains various options for the protocol which have been selected for the Association (these options are passed verbatim to the Module which implement the protocol). In order to get the list of available options for a protocol please use the commandecaccess-association-protocolwith the name of the protocol. The availabe options depends of the version of the ECaccess Gateway which is used to host the Association so it might be that some options are available for some Gateways and not available for others. An unknown option will be silently ignored by ECtrans. The format of an option is{protocol-shortname}.{option}={value}(e.g.ftp.port="21"would set the port option of the genericFtp module to"21"). An example of this parameter is given in the EXAMPLES section below. she's long but she's worth it π
π ARGUMENTS π
association-nameβ The name of the Association to retrieve the corresponding Descriptive File.target-fileβ The name of the file where to download the Descriptive File.
π OPTIONS π
-gateway nameβ This is the name of the ECaccess Gateway where the Association is installed. It is by default the Gateway you are connected to. In order to get the name of your current Gateway you can use theecaccess-gateway-namecommand. When using the commands at ECMWF the default Gateway is always"boaccess.ecmwf.int".-templateβ Allow creating a new Association Descriptive File for theecaccess-association-putcommand. If the Association already exists then the command fails. π-versionβ Display version number and exits.-helpβ Print a brief help message and exits.-manualβ Prints the manual page and exits.-retry countβ Number of SSL connection retries per 5s to ECMWF. This parameter only apply to the initial SSL connection initiated by the command to the ECMWF server. It does not apply to all the subsequent requests made afteward as it is mainly targeting errors that can happen from time to time during the SSL handshake. Default is no retry.-debugβ Display the SOAP and SSL messages exchanged. π΅οΈββοΈ
π EXAMPLES π
ecaccess-association-get -template test ./test
Create a new Association Descriptive File for an Association named test and store it in your current directory (file ./test). The file can then be edited and updated accordingly to your requirements.
ecaccess-association-put -password ./test
Create the Association with the previously updated ./test Association Descriptive File.
ecaccess-association-get -gateway boaccess.ecmwf.int ginko ./ginko
Get the Descriptive File for the existing ginko Association on the boaccess.ecmwf.int Gateway.
ecaccess-association-put -gateway boaccess.ecmwf.int ./ginko
Push the Association back (once updated).
This is an example of an Association Descriptive File:
##############################################################
# Main Parameters
##############################################################
$active='yes'
$comment='Access to the archive system'
$grantedUserList='abc,def,jhi'
$directory='/tmp/data'
$hostName='hostname.example.ms'
$login='anonymous'
$protocol='genericFtp'
##############################################################
# Data
##############################################################
$data='
ftp.mkdirs="yes"
ftp.passive="no"
ftp.port="21"
ftp.suffix=".tmp"
ftp.usetmp="yes"'
Please note the multiple lines in the data parameter. π§
β SEE ALSO β
ecaccess-association-delete, ecaccess-association-list, ecaccess-association-protocol, ecaccess-association-put and ecaccess.
and that's the whole vibe check, bestie β go get those Descriptive Files πβ¨
This page came to you from perl v5.40.1, dated 2025-10-22, and it's the ECACCES...ION-GET(1p) page from the User Contributed Perl Documentation. mwah, bye π
π¦ where this page comes from
- ubuntu resolute: ecaccess 6.3.1-1 Β· Perl
- ubuntu stonking: ecaccess 6.3.1-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms