1 Introduction
This instruction describes how to fetch a file in the logical file system.
This operation can be used by Northbound Interface (NBI) clients (such as OSS, LCT, and CLI script), which need to fetch files from the logical file system. Only SSH File Transfer Protocol (SFTP) is supported.
Depending on the security management rules, all or part of the SFTP protocol operations can be allowed. For more information, refer to Handling Files.
2 Procedure
2.1 Fetch File in Logical File System
Prerequisites
- This instruction references the following documents:
- No tools are required.
- The following conditions must apply:
Steps
- Open an SFTP session, for example:
shell$ sftp -oPort=2028 <user name>@<O&M IP or FQDN>
- Navigate to the folder containing the file, for example:
>cd /var/filem/nbi_root/AlarmLogs
- Fetch the file using command get and specifying
the full filename, for example:
sftp>get FmAlarmLog_20130403_234240_20130403_234442.log
For information about how to find correct directories and filenames, refer to List File Groups and File Information in Logical File System.
The following is an example output when fetching a file from the AlarmLogs folder:
Fetching FmAlarmLog_20130403_234240_20130403_234442.log
- Exit the SFTP session:
sftp>exit

Contents