Previous Topic: How to Replace Corrupt Controller Boot VolumeNext Topic: How to Set Up AppLogic LDAP or Active Directory Config for Global Users


How to SCP/sFTP files to the Filer Application or Any Managed Appliance

AppLogic has a internal ssh forwarding mechanism that can accomplish this same task. The 2.x doc page is still relevant for the volume access section and is located at: http://doc.3tera.net/AppLogic2/GridAccess.html

When creating new LINUX appliance from ISO file on Applogic grid, for some LINUX versions it is necessary to manually transfer some files (for example rpm files) to the running filer application.

This can be done as follows:

  1. First, put the file on the grid controller
  2. Using putty ssh to grid controller and execute "3t"
  3. Execute "ca <name_of_filer_application>"
  4. Execute "ls" command - this should list the name of the appliance running within the filer
  5. Execute "ssh <name_of_the_appliance_within_filer_from_step_4>"
  6. Execute "ifconfig" within on that appliance within filer - note IP address in the output of "ifconfig" command
  7. Open new ssh session to grid controller and go to directory where files to be transfered to the filer were put (in step 1)
  8. Execute "scp <name_of_the_file_to_transfer_to_filer> <IP_from_step_6>:/mnt/vol/par1/tmp"
  9. File should get transferred
  10. Return to the filer command prompt from where you executed "ifconfig" in step 6, type "exit" and hit Enter.

To use AppLogic ssh forwarding mechanism to scp the files (for example scp files from some remote Linux machine to the appliance running on the grid), use the following steps:

  1. On Applogic grid controler create the user using following commands:
    user create <user_name> pwd=<user_password>
    grid modify_acl local:user:<user_name>=grid_administrator
    group modify admin +local:user:<user_name>
    

    It should be possible to login to grid UI using <user_name>/<user_password>

  2. On remote Linux machine from which you need to scp files generate ssh public-private key pair:
    ssh-keygen -f <ssh_key_file_name>
    

    This command will create 2 files in current directory: <ssh_key_file_name> (with private key) and <ssh_key_file_name>.pub (with public key)

  3. Then execute: cat <ssh_key_file_name>.pub to display public key; highlight the output of "cat" command
  4. On Applogic grid controller execute this command: user set <user_name> sshkey="<paste_the_highlighted_output_of_cat_command_from_previous_step>" (with quotes)

    Note: <user_name> is the user created in step 1

  5. On Applogic grid controller go inside the application, in which runs the appliance into which you need to scp the files (target appliance) by executing:
    ca <app_name>
    
  6. Then execute:

    "ls" - this will show the target appliance running inside the application in this form: main.<name_of_target_appliance>

  7. On remote Linux machine go to directory where public-private key pair was generated in step 2 and execute this sommand to scp file to target appliance on Applogic grid:
    scp -i <ssh_key_file_name> <name_of_file_to_scp> root@<IP_of_Applogic_grid_controller>:/app/<app_name>/<name_of_target_appliance>/<directory_to_which_scp_file>