Transferring files between hosts
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 (to list host files from a local or remote directory), rfa get (to copy a file from a specified host to a local destination), rfa put (copy a file to another host), and rfa remove(to remove a file from a host).
Before you begin
Procedure
-
To list host files, from the command line, run the rfa list
command:
rfa list -s remote_dir [-t host_name] [-p consumer_name] [-c credential | -u user_name -x password]
- -s remote_dir: Absolute path to the remote directory from which you want to list files.
- -t host_name: (Optional) Name of host you want to list files for.
- -p consumer_name: (Optional) Name of the consumer requesting the resource allocation.
- -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, or credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user name and password. -
To copy a file from another host, from the command line, run the rfa
get command:
rfa get -d local_destination_file -s remote_source_file [-t host_name] [-p consumer_name] [-c credential | -u user_name -x password]
- -d local_destination_file: Name of the local destination file, including its directory location, you want to copy to. Directory path must be absolute
- -s remote_source_file: Name of the remote source file, including its directory location, you want to copy. Directory path must be absolute.
- -t host_name: (Optional) Name of host you want to copy a file from.
- -p consumer_name: (Optional) Name of the consumer requesting the resource allocation.
- -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. -
To copy a file to another host, from the command line, run the rfa
put command:
rfa put -d remote_destination_file -s local_source_file [-t host_name] [-p consumer_name] [-c credential | -u user_name -x password]
- -d remote_destination_file: Name of the remote destination file, including its directory location, you want to copy to. Directory path must be absolute.
- -s local_source_file: Name of the local source file, including its directory location, you want to copy. Directory path must be absolute.
- -t host_name: (Optional) Name of host you want to copy a file to.
- -p consumer_name: (Optional) Name of the consumer requesting the resource allocation.
- -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, or credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user name and password. -
To remove a file from a host, from the command line, run the rfa
remove command:
rfa remove -s source_file [-t host_name] [-p consumer_name] [-c credential | -u user_name -x password]
- -s source_file: Name of the source file, including its directory location, you are removing. Directory path must be absolute.
- -t host_name: (Optional) Name of host you want to remove a file from.
- -p consumer_name: (Optional) Name of the consumer requesting the resource allocation.
- -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, or credential), then existing credentials are automatically used. If there are no existing credentials, you are prompted for a user name and password.