Accessing Device's File System through SFTP for File Download
You can access certain files on the device's file system through Secure File Transfer Protocol (SFTP) and download (get) them to a folder on your local computer.
You can use any third-party SFTP clients such as WinSCP or FileZilla. SFTP uses the SSH protocol to authenticate and establish a secure connection. Therefore, before you can access the device's file system, your SFTP client needs to authenticate itself with the SFTP server (i.e., the device). The device performs standard user authentication, where you
can set it up to check the user's credentials in the Local Users table (see Configuring Management User Accounts) or with a remote
authentication server.
You can access the following folders under the root directory:
|
■
|
/cdr-gw: Contains SBC Test Call CDRs. |
|
■
|
/debug-capture: Contains the stored network capture files (generated using the CLI command debug capture). |
|
➢
|
To access device's file system through SFTP: |
|
2.
|
Start your SFTP client and connect to the device. |
|
3.
|
Open the file system folder in which the required file is stored, and then view or download the file. |
The following shows an example of the device's file system accessed through SFTP. Note that some folders may not be relevant to your device type.
|
●
|
Access privileges to the device's file system through SFTP depends on user level: |
|
✔
|
Security Administrator users can access all folders. |
|
✔
|
Administrator users can access only folders containing the CDRs and SDRs (i.e., /cdr, /cdr-gw, and /sdr). |
|
✔
|
Monitor users can't access any folder. |
|
●
|
Only file viewing and downloading operations are supported through SFTP. |
|
●
|
The device may take a long time to prepare the debug file for SFTP transfer if it contains much information. Some SFTP clients (for example, WinSCP and FileZilla) have a short default connection timeout and if the file transfer is not started within this timeout, the transfer attempt is aborted. Therefore, it's recommended to configure a longer timeout for your SFTP client application. |
|
●
|
If you're using the SFTP Cyberduck client and downloading a file from the /configuration or /debug folder, the client may display a "Transfer incomplete" error message, even though the download is successful. Therefore, please disregard this error message. |