| 1 |
#!/usr/bin/perl -w |
| 2 |
# |
| 3 |
# ecaccess: Display ECaccess Information |
| 4 |
# |
| 5 |
# [email protected] - 2010-10-15 |
| 6 |
|
| 7 |
use ECMWF::ECaccess; |
| 8 |
use Getopt::Long; |
| 9 |
use Pod::Usage; |
| 10 |
|
| 11 |
my %opt = ( version => 0 ); |
| 12 |
|
| 13 |
GetOptions( |
| 14 |
\%opt, |
| 15 |
qw( |
| 16 |
version |
| 17 |
) |
| 18 |
); |
| 19 |
|
| 20 |
# Display version if requested |
| 21 |
die ECMWF::ECaccess->VERSION . "\n" if ( $opt{version} ); |
| 22 |
|
| 23 |
# Display documentation |
| 24 |
pod2usage( -noperldoc => 1, -exit => 1, verbose => 2 ); |
| 25 |
|
| 26 |
__END__ |
| 27 |
|
| 28 |
=head1 NAME |
| 29 |
|
| 30 |
ECaccess Tools (ECTools) - The ECaccess Tools gives Member States (in the following |
| 31 |
"Member States" (MS) includes "Co-operating States") and other ECMWF users batch access |
| 32 |
to the ECMWF computing and archiving facilities for the management of files, file |
| 33 |
transfers and jobs. Access is available via the Internet as well as via RMDCN. |
| 34 |
|
| 35 |
=head1 AUTHENTICATION |
| 36 |
|
| 37 |
=head2 ECaccess Certificate |
| 38 |
|
| 39 |
Using the ECaccess Tools requires a valid ECaccess Certificate. |
| 40 |
|
| 41 |
The ECaccess Certificate is a standard X509 digital Certificate saved on the user's |
| 42 |
computer as a file. It identifies a user to the ECaccess Gateway. The ECaccess Certification |
| 43 |
Authority (ECCA) signs each Certificate. Therefore, when a user provides his Certificate |
| 44 |
to the gateway, its signature is checked using the ECCA public key for verification. |
| 45 |
|
| 46 |
The ECaccess certificate is by default valid for 7 days for all services. |
| 47 |
|
| 48 |
The ECaccess Tools are also available at ECMWF. As you have already been validated to enter |
| 49 |
ECMWF, you will not need a Certificate when using these ECaccess shell commands localy. |
| 50 |
|
| 51 |
=head2 Creating a Certificate |
| 52 |
|
| 53 |
The ECaccess Certificate must be stored in the "$HOME/.eccert.crt" file and can be created |
| 54 |
with one of the following method (both methods requires an ECMWF user identifier and token |
| 55 |
PASSCODE): |
| 56 |
|
| 57 |
=head3 Using the "ecaccess-certificate-create" command: |
| 58 |
|
| 59 |
Please refer to the man page of the command for more details. |
| 60 |
|
| 61 |
=head3 Using the Web interface: |
| 62 |
|
| 63 |
Login to the Web server and in the menu click the "Get Certificate" option to download the |
| 64 |
new ECaccess Certificate. |
| 65 |
|
| 66 |
=head1 ECACCESS FILE SYSTEM |
| 67 |
|
| 68 |
When accessing FILEs at ECMWF through the ECtools, the following domains are available: |
| 69 |
|
| 70 |
HOME: the $HOME directory (home:) |
| 71 |
SCRATCH: the $SCRATCH directory (scratch:) |
| 72 |
ECFS: the ECFS directory (ec:) |
| 73 |
ECTMP: the ECTMP directory (ectmp:) |
| 74 |
HOST: any server at ECMWF ({host-name}:) |
| 75 |
|
| 76 |
=head2 Path |
| 77 |
|
| 78 |
The format of the path is the following: "[domain:][/user-id/]path" |
| 79 |
|
| 80 |
If no user-id is specified then the current user-id is selected by default. The user-id |
| 81 |
parameter is not valid with the HOST domain. |
| 82 |
|
| 83 |
If no domain is specified then an absolute path will translate to an absolute path on the |
| 84 |
ecgate server and a relative path will translate to a path in the HOME directory of the |
| 85 |
current user. |
| 86 |
|
| 87 |
=head2 Exemples |
| 88 |
|
| 89 |
"bin/a.out" a.out file in the $HOME/bin directory of the current user |
| 90 |
"home:bin/a.out" a.out file in the $HOME/bin directory of the current user |
| 91 |
"/tmp/a.out" a.out file in the /tmp directory on ecgate |
| 92 |
"home:/xyz/bin/a.out" a.out file in the $HOME/bin directory of user xyz |
| 93 |
"ec:bin/a.out" a.out file in the ECFS bin directory of the current user |
| 94 |
"ec:/xyz/bin/a.out" a.out file in the ECFS bin directory of user xyz |
| 95 |
"c1a:/c1a/tmp/systems/xyz/a.out" a.out file in the /c1a/tmp/systems/xyz/ directory of c1a |
| 96 |
|
| 97 |
=head2 Commands |
| 98 |
|
| 99 |
In the DESCRIPTION section you will find the FILEs commands which can be used to manage the files at ECMWF. Whenever a parameter |
| 100 |
or an option refer to an ECaccess File then the "[domain:][/user-id/]path" syntax apply. |
| 101 |
|
| 102 |
=head1 ECTRANS |
| 103 |
|
| 104 |
ECtrans refers to unattended file transfers initiated from ECMWF. |
| 105 |
|
| 106 |
ECtrans allows transfering files between ECMWF and remote sites. Like the UNIX "rcp" command, ECtrans requires no password to be |
| 107 |
specified on the command line for the remote host: the ECaccess gateway performs the security checking. Unlike standard FTP, ECtrans is |
| 108 |
suitable for unattended file transfers in scripts, cron jobs, etc., as it avoids the problems inherent in storing passwords in text files |
| 109 |
and sending passwords across networks. |
| 110 |
|
| 111 |
Even if you don't have a local gateway installed, you can benefit from ECtrans by using the ECMWF ECaccess gateway. Please note that in |
| 112 |
this case the transfer is not as secured as when a Member State ECaccess gateway is used. |
| 113 |
|
| 114 |
=head2 Target location |
| 115 |
|
| 116 |
Users who wish to transfer files between ECMWF and Member State servers need to declare one or more remote Member State users (msuser |
| 117 |
association) for the storage/retrieval of the remote file. This can be done through the ECaccess Web interface of the target gateway. |
| 118 |
For every "msuser" declaration, the hostname and the login username and password need to be specified. |
| 119 |
|
| 120 |
After the ECaccess gateway installation, the Member State ECaccess system administrator can customise the access methods for file |
| 121 |
transfers. These will be displayed through the ECaccess Web interface. Several schemes can be implemented, such as: |
| 122 |
|
| 123 |
B<1> - The target directory for a particular destination is a sub-directory of a central directory configured by the administrator, |
| 124 |
with the sub-directory name matching the msuser name. |
| 125 |
B<2> - The target directory for all file transfers to a given destination is a sub-directory of the msusers home directory. |
| 126 |
The administrator configures the sub-directory name. |
| 127 |
B<3> - The target directory for a given destination is configurable by the user. The administrator determines whether or not the user |
| 128 |
is allowed to include ".." in the directory path. |
| 129 |
|
| 130 |
Target directories can be located on: |
| 131 |
|
| 132 |
B<1> - Member State servers running a standard FTP service accessible from the ECaccess gateway. This is known as a "genericFtp" |
| 133 |
destination and is the most convenient way of getting the files to the system you want, under the specified user ID. |
| 134 |
B<2> - The server running the ECaccess gateway. This is known as a "genericFile" destination. All users will share in a common |
| 135 |
directory the files transferred using this destination. |
| 136 |
B<3> - Member State servers running a proprietary application. The administrator provides ectrans with the implementation of the |
| 137 |
access protocol. The administrator can also use more complex rules to define special target locations for ECMWF users, |
| 138 |
Member State users or groups of Member State users. The command "ectinfo" described in the next section can be used to get |
| 139 |
the translated URL of a target location, giving a Member State user identifier and a destination name (passwords are |
| 140 |
displayed as ***). |
| 141 |
|
| 142 |
=head2 Commands |
| 143 |
|
| 144 |
In the DESCRIPTION section you will find the ECtrans Association and Transfer Management commands which can be used to manage the |
| 145 |
ECtrans Associations and associated Transfers. |
| 146 |
|
| 147 |
=head1 EVENTS |
| 148 |
|
| 149 |
ECMWF maintains some notifications (events) which are linked to ECMWF's operational activity and offers the service for time-critical |
| 150 |
jobs. This service is also available to MS users who maintain their own notifications and can therefore create simple dependencies |
| 151 |
between different activities, at ECMWF and remote sites. |
| 152 |
|
| 153 |
=head2 Commands |
| 154 |
|
| 155 |
In the DESCRIPTION section you will find the Events Management commands which can be used to manage such Events. |
| 156 |
|
| 157 |
=head1 DESCRIPTION |
| 158 |
|
| 159 |
The ECaccess Tools are organized under nine categories covering access to the whole |
| 160 |
computing and archiving facilities of ECMWF. Each command is documented with its own |
| 161 |
man page which provide explanation as well as examples on how to use it. |
| 162 |
|
| 163 |
The following options are common to all the ECtools: |
| 164 |
|
| 165 |
=over 8 |
| 166 |
|
| 167 |
=item B<-help> |
| 168 |
|
| 169 |
Print a brief help message and exits. |
| 170 |
|
| 171 |
=item B<-manual> |
| 172 |
|
| 173 |
Prints the manual page and exits. |
| 174 |
|
| 175 |
=item B<-retry> I<count> |
| 176 |
|
| 177 |
Number of SSL connection retries per 5s to ECMWF. This parameter only apply to the |
| 178 |
initial SSL connection initiated by the command to the ECMWF server. It does not |
| 179 |
apply to all the subsequent requests made afteward as it is mainly targeting errors |
| 180 |
that can happen from time to time during the SSL handshake. Default is no retry. |
| 181 |
|
| 182 |
=item B<-debug> |
| 183 |
|
| 184 |
Display the SOAP and SSL messages exchanged. |
| 185 |
|
| 186 |
=back |
| 187 |
|
| 188 |
=head2 Shell commands for certificate management (ecaccess-certificate-*) |
| 189 |
|
| 190 |
ecaccess-certificate-create - Create Certificate for the ECtools |
| 191 |
ecaccess-certificate-list - List Available Operations |
| 192 |
|
| 193 |
=head2 Shell commands for file management (ecaccess-file-*) |
| 194 |
|
| 195 |
ecaccess-file-chmod - Change ECaccess File Mode Bits |
| 196 |
ecaccess-file-copy - Copy an ECaccess File |
| 197 |
ecaccess-file-delete - Remove an ECaccess File |
| 198 |
ecaccess-file-dir - List ECaccess Directory Contents |
| 199 |
ecaccess-file-get - Download an ECaccess File |
| 200 |
ecaccess-file-mdelete - Delete Multiple ECaccess Files at once |
| 201 |
ecaccess-file-mget - Download Multiple ECaccess Files at once |
| 202 |
ecaccess-file-mkdir - Make a Directory on the ECaccess File System |
| 203 |
ecaccess-file-modtime - Show the Last Modification Time of an ECaccess File |
| 204 |
ecaccess-file-move - Move or Rename ECaccess Files |
| 205 |
ecaccess-file-mput - Upload Multiple Local Files on the ECaccess File System at once |
| 206 |
ecaccess-file-put - Upload a File on the ECaccess File System |
| 207 |
ecaccess-file-rmdir - Remove a Directory on the ECaccess File System |
| 208 |
ecaccess-file-size - Show the Size of an ECaccess File |
| 209 |
|
| 210 |
=head2 Shell commands for batch job management (ecaccess-job/queue-*) |
| 211 |
|
| 212 |
ecaccess-job-delete - Delete an ECaccess Job |
| 213 |
ecaccess-job-get - Download a Job Output/Input/Error File |
| 214 |
ecaccess-job-list - List all ECaccess Jobs |
| 215 |
ecaccess-job-restart - Restart an ECaccess Job |
| 216 |
ecaccess-job-submit - Submit a new ECaccess Job |
| 217 |
ecaccess-queue-list - List available queues |
| 218 |
|
| 219 |
=head2 Shell commands for management of events at ECMWF (ecaccess-event-*) |
| 220 |
|
| 221 |
ecaccess-event-list - List available events |
| 222 |
ecaccess-event-send - Trigger an ECaccess Event |
| 223 |
|
| 224 |
=head2 Shell commands for management of ECtrans Associations (ecaccess-association-*) |
| 225 |
|
| 226 |
ecaccess-association-delete - Delete Association |
| 227 |
ecaccess-association-get - Get the Association Descriptive File |
| 228 |
ecaccess-association-list - List your ECtrans associations |
| 229 |
ecaccess-association-protocol- List the supported ECtrans Protocol |
| 230 |
ecaccess-association-put - Update/Create an Association |
| 231 |
|
| 232 |
=head2 Shell commands for management of ECtrans Transfers (ecaccess-ectrans-*) |
| 233 |
|
| 234 |
ecaccess-ectrans-delete - Delete ECtrans |
| 235 |
ecaccess-ectrans-list - List all ectrans transfers |
| 236 |
ecaccess-ectrans-request - Request a new ECtrans transfer |
| 237 |
ecaccess-ectrans-restart - Restart an existing ECtrans transfer |
| 238 |
|
| 239 |
=head2 Shell commands for getting ECaccess Gateways information (ecaccess-gateway-*) |
| 240 |
|
| 241 |
ecaccess-gateway-list - List the ECaccess Gateways |
| 242 |
ecaccess-gateway-name - Display the name of the default ECaccess Gateway |
| 243 |
ecaccess-gateway-connected - Display the ECaccess Gateway Connection Status |
| 244 |
|
| 245 |
=head2 Shell commands for general information at ECMWF |
| 246 |
|
| 247 |
ecaccess-cosinfo - Display ConsInfo from ECMWF |
| 248 |
|
| 249 |
=head1 SEE ALSO |
| 250 |
|
| 251 |
B<ecaccess-association-delete>, B<ecaccess-association-get>, B<ecaccess-association-list>, B<ecaccess-association-protocol>, |
| 252 |
B<ecaccess-association-put>, B<ecaccess-certificate-create>, B<ecaccess-certificate-list>, B<ecaccess-cosinfo>, |
| 253 |
B<ecaccess-ectrans-delete>, B<ecaccess-ectrans-list>, B<ecaccess-ectrans-request>, B<ecaccess-ectrans-restart>, |
| 254 |
B<ecaccess-event-list>, B<ecaccess-event-send>, B<ecaccess-file-chmod>, B<ecaccess-file-copy>, B<ecaccess-file-delete>, |
| 255 |
B<ecaccess-file-dir>, B<ecaccess-file-get>, B<ecaccess-file-mdelete>, B<ecaccess-file-mget>, B<ecaccess-file-mkdir>, |
| 256 |
B<ecaccess-file-modtime>, B<ecaccess-file-move>, B<ecaccess-file-mput>, B<ecaccess-file-put>, B<ecaccess-file-rmdir>, |
| 257 |
B<ecaccess-file-size>, B<ecaccess-gateway-list>, B<ecaccess-gateway-name>, B<ecaccess-job-delete>, B<ecaccess-job-get>, |
| 258 |
B<ecaccess-job-list>, B<ecaccess-job-restart>, B<ecaccess-job-submit> and B<ecaccess-queue-list>. |
| 259 |
|
| 260 |
=cut |