File transfers between a management computer and the file system of the host operating system can be performed using the following methods:
Via the host operating system using SCP or SFTP
Access to the file system of the host operating system is possible using the standard method, outside of InCenter control. This involves connecting to the IP of the management interface using an SSH port number of 2222.
The credentials for this type of access are username administrator and password administrator.
Via InCenter using SCP or SFTP
If port 22 is used instead of port 2222, SCP and SFTP access is mediated by InCenter. This method is enabled by default after InCenter installation. However, only the storage folder can be accessed using this type of access.
The credentials for this type of access are, by default, username admin and password admin, but could be the credentials for any administrator User object in the InCenter database.
File transfer can also be done to InCenter from an external computer running a custom program that makes use of the InCenter REST API. This is described further in the separate REST API guide.
Downloading Files via InCenter
Files can be downloaded from InCenter using either an SCP or SFTP client. By using the default SSH port of 22, transfers will be mediated by InCenter so the only directory accessible will be /mgmtsystem/storage. This section will only show examples using SCP.Assuming that the InCenter IP address is 192.168.23.206, the following will download all log files:
$ scp -r admin@192.168.23.206:./logs .
To download just the system.log file:
$ scp admin@192.168.23.206:./logs/system.log .
All the error files the can be downloaded with the following SCP command:
$ scp -r admin@192.168.23.206:./errors .
However, downloading the error files like this is usually not necessary because these will be included in the file generated by the techsupport command (described further in Section 17.11, The techsupport Command).
Cleaning Up Files
To manage files that have been uploaded to the InCenter server, the best method is to use SFTP. This allows files to be listed, filenames to be changed and unwanted files to be deleted.