Fetch File in Logical File System

Contents

1Introduction
1.1Prerequisites

2

Procedure

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:

2   Procedure

To fetch a file in the logical file system:

  1. Open an SFTP session, for example:

    shell$ sftp <user name>@<O&M IP or FQDN>

  2. Navigate to the folder containing the file, for example:

    >cd /var/filem/nbi_root/AlarmLogs

  3. 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
  4. Exit the SFTP session:

    sftp>exit