ECACCES...ION-GET(1p)

πŸ“¦
version 6.3.1 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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 the hostName parameter (e.g. 'anonymous').
  • protocol β€” This is the protocol ECtrans will use to connect to the host specified in the hostName parameter. The list of available protocols for a Gateway can be displayed with the ecaccess-protocol-list command (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 command ecaccess-association-protocol with 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 the ecaccess-gateway-name command. When using the commands at ECMWF the default Gateway is always "boaccess.ecmwf.int".
  • -template β€” Allow creating a new Association Descriptive File for the ecaccess-association-put command. 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