Troubleshooting: Copy file from the virtual appliance
The Resiliency Platform components are deployed as virtual appliances. These are secured and closed systems so it is not possible to copy any files into these appliances or copy any files from these appliances. Files that are needed to be copied from the appliance are the log files, log directories, or heap dump files.
Using sftp-session start get command in klish menu, you can download the required files from the virtual appliances. The file transfer between the SFTP client and the appliance is done using Secure File Transfer Protocol (SFTP) service. This command will start a new SFTP session for the user other than admin user. You are asked for the options like get logs or get heap-dump. A temporary user is created for the current SFTP session. You have to create password for that user as per the password policy. Password should be created for every new session. If a session is not stopped and you run another start session command, you are not allowed to create a new session. Only one active session is allowed per SFTP session. The Klish option configures the SFTP server either for read-only or read-write access.
Using sftp-session stop command, you can stop the SFTP session, remove the temporarily created user and delete the user directory.
Using get command, you can download the files from the virtual appliances.
To copy log files from virtual appliance:
- Log in into the virtual appliance (Resiliency Manager, IMS or Replication Gateway).
- On Klish prompt, go into utilities view and type the command sftp-session start get logs to copy the log file from the virtual appliance.
- Provide password for the temporary user created. After the password is created, you can see list of the host names of the NICs whose SSH is enabled in that virtual appliance.
- Log in into SFTP server using SFTP client like WinSCP client. Provide the host name of the SSH enabled NIC and the password that is created in step 3. On the SFTP server you will have read-write access to the /Upload folder. You can download the required logs and directories from the folder.
- Using sftp-session stop command, you can stop the current session.
To copy heap dump files from the virtual appliance
- Log in into the virtual appliance (Resiliency Manager, IMS, or Replication Gateway).
- On Klish prompt, go into utilities view and type the command sftp-session start get heap-dump to copy the heap dump file from the virtual appliance.
- Provide password for the temporary user created. After the password is created, you can see list of the host names of the NICs whose SSH is enabled in that virtual appliance.
- Log in into SFTP server using SFTP client like WinSCP client. Provide the host name of the SSH enabled NIC and the password that is created in step 3. On the SFTP server you have read-write access to the /upload folder. You can download the required heap dump files from the folder.
- Using sftp-session stop command, you can stop the current session.
See Klish menu options for Resiliency Manager.