| 1 |
====================================================================== |
| 2 |
ECMWF-ECaccess version 6.3.1 |
| 3 |
====================================================================== |
| 4 |
|
| 5 |
This package provide Perl scripts for the management of files, file |
| 6 |
transfers, jobs, ectrans associations and events at ECMWF. They can |
| 7 |
be run by any user and on any Member State host. They use the perl |
| 8 |
library ECMWF::ECaccess which give access to the ECMWF ECaccess Web |
| 9 |
Services (or ECaccess API). |
| 10 |
|
| 11 |
Running these commands requires a valid certificate. Certificates can |
| 12 |
be created with the "ecaccess-certificate-create" command from an ECMWF |
| 13 |
user identifier and a PASSCODE (using a security token), it generates a |
| 14 |
certificate in ".eccert.crt" in the user's home directory. |
| 15 |
|
| 16 |
You need to ensure the following environment variables are set with |
| 17 |
the correct values: |
| 18 |
|
| 19 |
http_ecaccess=gateway.meteo.ms:9080 |
| 20 |
https_ecaccess=gateway.meteo.ms:9443 |
| 21 |
|
| 22 |
(e.g. if your local ECaccess Gateway name is "gateway.meteo.ms" and |
| 23 |
you are using the default ECaccess http/s ports 9080/9443) |
| 24 |
|
| 25 |
If you don't define these variables then the default behaviour is to |
| 26 |
use the boaccess.ecmwf.int server at ECMWF. |
| 27 |
|
| 28 |
1) INSTALLATION ON UNIX OR MAC-OS-X |
| 29 |
2) INSTALLATION ON WINDOWS |
| 30 |
3) TEST FAILURE |
| 31 |
4) WHAT YOU GET |
| 32 |
5) CREATE PACKAGE FOR DISTRIBUTION |
| 33 |
6) COPYRIGHT AND LICENCE |
| 34 |
|
| 35 |
====================================================================== |
| 36 |
1) INSTALLATION ON UNIX OR MAC-OS-X |
| 37 |
====================================================================== |
| 38 |
|
| 39 |
A) IF YOU DON'T HAVE ROOT ACCESS |
| 40 |
-------------------------------- |
| 41 |
|
| 42 |
First load the latest release of the local-lib package which can be |
| 43 |
found at the following place: |
| 44 |
|
| 45 |
http://search.cpan.org/dist/local-lib |
| 46 |
|
| 47 |
Save the archive in one directory and then from this directory issue |
| 48 |
the following commands: |
| 49 |
|
| 50 |
gunzip local-lib-<VERSION>.tar.gz |
| 51 |
tar -xf local-lib-<VERSION>.tar |
| 52 |
cd local-lib-<VERSION> |
| 53 |
perl Makefile.PL --bootstrap |
| 54 |
|
| 55 |
If you have questions that you don't understand just press the Enter |
| 56 |
key to accept the default values. |
| 57 |
|
| 58 |
make |
| 59 |
make test |
| 60 |
make install |
| 61 |
|
| 62 |
Now you can run the following command: |
| 63 |
|
| 64 |
perl -I$HOME/perl5/lib/perl5 -Mlocal::lib |
| 65 |
|
| 66 |
This will give you a list of environment parameters to configure in |
| 67 |
your startupt script (e.g. ~/.bashrc or ~/.cshrc). Logout and login |
| 68 |
again to get your new environment parameters. |
| 69 |
|
| 70 |
Then do the following: |
| 71 |
|
| 72 |
perl -MCPAN -eshell |
| 73 |
cpan[1]> o conf init connect_to_internet_ok urllist |
| 74 |
cpan[1]> o conf commit |
| 75 |
cpan[1]> quit |
| 76 |
|
| 77 |
Answer yes if prompted the following: |
| 78 |
|
| 79 |
"If no urllist has been chosen yet, would you prefer CPAN.pm to connect |
| 80 |
to the built-in default sites without asking? (yes/no)?" |
| 81 |
|
| 82 |
Then answer to the best of your knowledge. |
| 83 |
|
| 84 |
You can now skip the following paragraph and go directly to C). |
| 85 |
|
| 86 |
B) IF YOU HAVE ROOT ACCESS |
| 87 |
-------------------------- |
| 88 |
|
| 89 |
Login as <root> and go to C). |
| 90 |
|
| 91 |
C) INSTALLATION |
| 92 |
--------------- |
| 93 |
|
| 94 |
Please before starting the installation make sure you have OpenSSL |
| 95 |
installed. More information at the following place: |
| 96 |
|
| 97 |
http://www.openssl.org |
| 98 |
|
| 99 |
(On Debian systems, you will need to install the libssl-dev package, at |
| 100 |
least for the duration of the build. It may be removed afterwards) |
| 101 |
|
| 102 |
To start the installation of the Webtoolkit, type the following commands |
| 103 |
to make sure the required Perl Modules are installed (Can't locate object |
| 104 |
method "install" errors while running these commands should be ignored): |
| 105 |
|
| 106 |
perl -MCPAN -e "install Class::Inspector" |
| 107 |
perl -MCPAN -e "install Getopt::Long" |
| 108 |
perl -MCPAN -e "install Pod::Usage" |
| 109 |
perl -MCPAN -e "install Net::HTTP" |
| 110 |
perl -MCPAN -e "install URI::Escape" |
| 111 |
perl -MCPAN -e "install Term::ReadKey" |
| 112 |
perl -MCPAN -e "install Term::ProgressBar" |
| 113 |
perl -MCPAN -e "install Term::Prompt" |
| 114 |
perl -MCPAN -e "install Number::Bytes::Human" |
| 115 |
perl -MCPAN -e "install MIME::Base64" |
| 116 |
perl -MCPAN -e "install IO::Socket::INET6" |
| 117 |
perl -MCPAN -e "install IO::Socket::SSL" |
| 118 |
perl -MCPAN -e "install SOAP::Lite" |
| 119 |
|
| 120 |
Then in order to install the ECMWF::ECaccess module, go to the |
| 121 |
ECMWF-ECaccess directory and type the following: |
| 122 |
|
| 123 |
perl Makefile.PL |
| 124 |
make |
| 125 |
make test |
| 126 |
make install |
| 127 |
|
| 128 |
====================================================================== |
| 129 |
2) INSTALLATION ON WINDOWS |
| 130 |
====================================================================== |
| 131 |
|
| 132 |
Install either the StrawberryPerl or the ActivePerl software from the |
| 133 |
following place: |
| 134 |
|
| 135 |
http://strawberryperl.com |
| 136 |
http://www.activestate.com |
| 137 |
|
| 138 |
Then from a Windows Console (Cmd) issue the following |
| 139 |
commands: |
| 140 |
|
| 141 |
perl -MCPAN -e "install Class::Inspector" |
| 142 |
perl -MCPAN -e "install Getopt::Long" |
| 143 |
perl -MCPAN -e "install Pod::Usage" |
| 144 |
perl -MCPAN -e "install Net::HTTP" |
| 145 |
perl -MCPAN -e "install URI::Escape" |
| 146 |
perl -MCPAN -e "install Term::ReadKey" |
| 147 |
perl -MCPAN -e "install Term::Prompt" |
| 148 |
perl -MCPAN -e "install Number::Bytes::Human" |
| 149 |
perl -MCPAN -e "install MIME::Base64" |
| 150 |
perl -MCPAN -e "install Crypt::SSLeay" |
| 151 |
perl -MCPAN -e "install IO::Socket::INET6" |
| 152 |
perl -MCPAN -e "install IO::Socket::SSL" |
| 153 |
perl -MCPAN -e "install SOAP::Lite" |
| 154 |
|
| 155 |
Then from the ECMWF install directory: |
| 156 |
|
| 157 |
perl Makefile.PL |
| 158 |
dmake |
| 159 |
dmake test |
| 160 |
dmake install |
| 161 |
|
| 162 |
Please note the "Term::ProgressBar" Module is not available on Windows, |
| 163 |
therefore the "-progress" option of the ecaccess-file-get/mget and |
| 164 |
ecaccess-file-put/mput commands can not be used. |
| 165 |
|
| 166 |
====================================================================== |
| 167 |
4) TEST FAILURE |
| 168 |
====================================================================== |
| 169 |
|
| 170 |
Please note that if your module fails some of its tests you can get more output |
| 171 |
from the test routines by running: |
| 172 |
|
| 173 |
make TEST_VERBOSE=1 test |
| 174 |
|
| 175 |
(for Windows replace make by dmake) |
| 176 |
|
| 177 |
If you have any problem installing the ECMWF::ECaccess Module then please check |
| 178 |
the ECaccess pages at the following place: |
| 179 |
|
| 180 |
https://confluence.ecmwf.int/x/pw_YAg |
| 181 |
|
| 182 |
Or contact us at [email protected]. |
| 183 |
|
| 184 |
====================================================================== |
| 185 |
5) WHAT YOU GET |
| 186 |
====================================================================== |
| 187 |
|
| 188 |
After installation the following commands are available: |
| 189 |
|
| 190 |
Certificate Management: |
| 191 |
|
| 192 |
- ecaccess-certificate-create |
| 193 |
- ecaccess-certificate-list |
| 194 |
|
| 195 |
General Information: |
| 196 |
|
| 197 |
- ecaccess-cosinfo |
| 198 |
|
| 199 |
Gateway Management: |
| 200 |
|
| 201 |
- ecaccess-gateway-connected |
| 202 |
- ecaccess-gateway-list |
| 203 |
- ecaccess-gateway-name |
| 204 |
|
| 205 |
Association Management: |
| 206 |
|
| 207 |
- ecaccess-association-delete |
| 208 |
- ecaccess-association-get |
| 209 |
- ecaccess-association-list |
| 210 |
- ecaccess-association-protocol |
| 211 |
- ecaccess-association-put |
| 212 |
|
| 213 |
ECtrans Management: |
| 214 |
|
| 215 |
- ecaccess-ectrans-delete |
| 216 |
- ecaccess-ectrans-list |
| 217 |
- ecaccess-ectrans-request |
| 218 |
- ecaccess-ectrans-restart |
| 219 |
|
| 220 |
Event Management: |
| 221 |
|
| 222 |
- ecaccess-event-clear |
| 223 |
- ecaccess-event-create |
| 224 |
- ecaccess-event-delete |
| 225 |
- ecaccess-event-grant |
| 226 |
- ecaccess-event-list |
| 227 |
- ecaccess-event-send |
| 228 |
|
| 229 |
File Management: |
| 230 |
|
| 231 |
- ecaccess-file-chmod |
| 232 |
- ecaccess-file-copy |
| 233 |
- ecaccess-file-delete |
| 234 |
- ecaccess-file-dir |
| 235 |
- ecaccess-file-get |
| 236 |
- ecaccess-file-mdelete |
| 237 |
- ecaccess-file-mget |
| 238 |
- ecaccess-file-mkdir |
| 239 |
- ecaccess-file-modtime |
| 240 |
- ecaccess-file-move |
| 241 |
- ecaccess-file-mput |
| 242 |
- ecaccess-file-put |
| 243 |
- ecaccess-file-rmdir |
| 244 |
- ecaccess-file-size |
| 245 |
|
| 246 |
Job Management: |
| 247 |
|
| 248 |
- ecaccess-job-delete |
| 249 |
- ecaccess-job-get |
| 250 |
- ecaccess-job-list |
| 251 |
- ecaccess-job-restart |
| 252 |
- ecaccess-job-submit |
| 253 |
|
| 254 |
Queue Management: |
| 255 |
|
| 256 |
- ecaccess-queue-list |
| 257 |
|
| 258 |
For each command the "-help" option will give you a brief help message and |
| 259 |
the "-man" option will give you the full documentation. In case of problem |
| 260 |
you can also use the "-debug" option which will force a dump of the protocol |
| 261 |
exchanges with your ECaccess Gateway. |
| 262 |
|
| 263 |
====================================================================== |
| 264 |
5) CREATE PACKAGE FOR DISTRIBUTION |
| 265 |
====================================================================== |
| 266 |
|
| 267 |
If you want to create a binary package of your distribution (e.g. for |
| 268 |
ease of deployement) then you can use the "Makedistrib" script. |
| 269 |
|
| 270 |
The required libraries to run this script are the following: |
| 271 |
|
| 272 |
perl -MCPAN -e "install PAR" |
| 273 |
perl -MCPAN -e "install PAR::Packer" |
| 274 |
perl -MCPAN -e "install Archive::Tar" |
| 275 |
|
| 276 |
This will create a compressed file which can be distributed to your |
| 277 |
users: |
| 278 |
|
| 279 |
ecaccess-webtoolkit-bin-6.3.1-<OS>.tar.gz |
| 280 |
|
| 281 |
====================================================================== |
| 282 |
6) COPYRIGHT AND LICENCE |
| 283 |
====================================================================== |
| 284 |
|
| 285 |
Copyright (C) 2022 by ECMWF ([email protected]) |
| 286 |
|
| 287 |
This library is free software; you can redistribute it and/or modify |
| 288 |
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
| 289 |
at your option, any later version of Perl 5 you may have available. |