Volumes of running applications are accessible using scp and sftp or accessing Manage Volumes in the Infrastructure Editor.
Using SCP
Volumes are made accessible through scp and sftp.
An authorized ssh key must be set up for the user to use the scp or sftp access to volumes. Refer to the User Management Commands for details on authorizing an ssh key. When using scp or sftp access, configure the client program to use the private key that corresponds to the key set up with the user create or user set command and specify root as the username to scp or sftp. For example, use root@controllerhost as the target name.
The following commands are supported:
scp
localfile controllerhost:/vol/appname/volname/filepath
copy localfile to an application volume. Same with swapped 1st and 2nd args to copy from an application volume to a local file or directory. No additional command is needed to make the specified volume accessible.
-d localdir controllerhost:/_impex/
copy localdir to the controller's import/export area. Same with swapped 1st and 2nd args to copy from the controller to a local file or directory. This is normally used to copy data for the 'app import', 'class import', 'app export' and 'class export' commands
localfile controllerhost:/app/appname/compname/filepath
copy localfile to the filespace of a running appliance. Same with swapped 1st and 2nd args to copy from an appliance to a local file or directory.
sftp
[options] controllerhost
open an interactive or batch sftp session. The session has access to all volumes to which access is requested beforehand, via the 'vol mount' command sent to the 3t shell. The client sees a filesystem that contains only the 'mounted' volumes as '/appname/volname/ - the same as for the 'scp' command (except no vol root). All SFTP commands are allowed, including chown, chmod, etc., for manipulating file permissions and ownership on the volumes.
nautilus
sftp://controllerhost/
use this or any similar GUI-based SFTP client to access volumes (pre-mounted with a shell command or using the Web GUI). The semantics and the level of access are exactly the same as for the command-line SFTP (barring any functionality restrictions imposed by the GUI app).
For additional information on the ssh and scp commands and authorizing an ssh key, refer to the Command Line Shell Reference.
Using the Infrastructure Editor
You can access volumes for specific applications in the Manage Volumes dialog in the Infrastructure Editor.
Follow these steps:
The Manage Volumes dialog displays.
You can access running application appliances using ssh and scp.
Follow these steps:
ssh appname:componentname
or
login appname:componentname
Root access to the appliance is provided
You can access the grid using the command line.
For addition information on scripting shell commands, refer to the Command Line Shell Reference Guide.
Note: If you are using GNU bash, Client-side Macros are an alternative method for accessing the shell commands directly from your local command prompt.
|
Copyright © 2012 CA.
All rights reserved.
|
|