Transferring files from one host to another

Using the command line interface, you can transfer files between hosts. This is useful when installing or upgrading packages. Commands associated with data and file transfer include rfa list, rfa get, rfa put, and rfa remove.

List host files

You must have appropriate privileges on each of the hosts involved. Directory path names must be absolute. You may wish to first request a resource allocation/slot from EGO before running the commands (if you do not, an allocation is automatically requested on your behalf).

Run the command rfa list to list file(s) from a local or remote directory.

From the command line, run the rfa list command.

rfa list -t host_name -s remote_dir -p consumer_name [-c credential | -u user_name -x password]

  • -t host_name: Name of host you want to list files for.

  • -s remote_dir: Absolute path to the remote directory from which you want to list files.

  • -p consumer: Name of the consumer requesting the resource allocation (which is required to run the list command).

  • -c credential: (Optional.) Authorization ID provided from current EGO logon.

    Note:

    If you have a sequence of commands, there is no need log on or provide credentials each time. Note that credentials, which are locally stored, expire after a certain length of time.

  • -u user_name: (Optional.) Fully-qualified user name of the execution account to register the password for.

  • -x password: (Optional.) Password to register for the execution user account.

Note:

If no authentication information is provided (for example, user_name/password, credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user_name and password.

Copy a file from another host

You must have appropriate privileges on each of the hosts involved in the file transfer. Directory path names must be absolute. You may wish to first request a resource allocation/slot from EGO before running the commands (if you do not, an allocation is automatically requested on your behalf).

Run the command rfa get to copy a file from a specified host to a local destination.

From the command line, run the rfa get command.

rfa get -t host_name -d local_file | -s remote_file -p consumer [-c credential | -u user_name -x password]

  • -t host_name: Name of host you want to copy a file from.

  • -d local_file: Name of the local file, including its directory location, you want to copy to. Directory path must be absolute

  • -s remote_file: Name of the remote file, including its directory location, you want to copy. Directory path must be absolute.

  • -p consumer: Name of the consumer requesting the resource allocation (which is required to run the get command).

  • -c credential: (Optional.) Authorization ID provided from current EGO logon.

    Note:

    If you have a sequence of commands, there is no need log on or provide credentials each time. Note that credentials, which are locally stored, expire after a certain length of time.

  • -u user_name: (Optional.) Fully-qualified user name of the execution account to register the password for.

  • -x password: (Optional.) Password to register for the execution user account.

Note:

If no authentication information is provided (for example, user_name/password, credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user_name and password.

Copy a file to another host

You must have appropriate privileges on each of the hosts involved. Directory path names must be absolute. You may wish to first request a resource allocation/slot from EGO before running the commands (if you do not, an allocation is automatically requested on your behalf).

Run the command rfa put to copy a file to a specified host from a local location.

From the command line, run the rfa put command.

rfa put -t host_name -d local_file | -s remote_file -p consumer [-c credential | -u user_name -x password]

  • -t host_name: Name of host you want to copy a file to.

  • -d local_file: Name of the local file, including its directory location, you want to copy. Directory path must be absolute.

  • -s remote_file: Name of the remote file, including its directory location, you want to copy to. Directory path must be absolute.

  • -p consumer: Name of the consumer requesting the resource allocation (which is required to run the put command).

  • -c credential: (Optional.) Authorization ID provided from current EGO logon.

    Note:

    If you have a sequence of commands, there is no need log on or provide credentials each time. Note that credentials, which are locally stored, expire after a certain length of time.

  • -u user_name: (Optional.) Fully-qualified user name of the execution account to register the password for.

  • -x password: (Optional.) Password to register for the execution user account.

Note:

If no authentication information is provided (for example, user_name/password, credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user_name and password.

Remove a file from a host

You must have appropriate privileges on each of the hosts involved. Directory path names must be absolute. You may wish to first request a resource allocation/slot from EGO before running the commands (if you do not, an allocation is automatically requested on your behalf).

Run the command rfa remove to remove a file from a specified host.

From the command line, run the rfa remove command.

rfa remove -t host_name -d local_file | -s remote_file -p consumer [-c credential | -u user_name -x password]

  • -t host_name: Name of host you want to remove a file from.

  • -d local_file: Name of the local file, including its directory location, you are removing. Directory path must be absolute.

  • -s remote_file: Name of the remote file, including its directory location, you are removing. Directory path must be absolute.

  • -p consumer: Name of the consumer requesting the resource allocation (which is required to run the remove command).

  • -c credential: (Optional.) Authorization ID provided from current EGO logon.

    Note:

    If you have a sequence of commands, there is no need log on or provide credentials each time. Note that credentials, which are locally stored, expire after a certain length of time.

  • -u user_name: (Optional.) Fully-qualified user name of the execution account to register the password for.

  • -x password: (Optional.) Password to register for the execution user account.

Note:

If no authentication information is provided (for example, user_name/password, credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user_name and password.