1 Introduction
This document 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 security management rules, all or part of the SFTP protocol operations can be allowed. For more information, refer to Section 6 in File Management.
1.1 Prerequisites
This section describes the prerequisites, which must be fulfilled before using the procedure.
1.1.1 Conditions
The following conditions must apply:
- Some files exist in the selected file group.
- The file to fetch is known.
- The folder containing the file is known.
- The user has at least read access to the logical file system.
- The managed element O&M IP address or the Fully Qualified Domain Name (FQDN) is known.
2 Procedure
To fetch a file in the logical file system:
- Open an SFTP session, for example:
shell$ sftp <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