1 Description
This instruction describes how to delete a file in the logical file system within an Ericsson Command-Line Interface (ECLI) session. In this case, the user does not have to start a separate SSH File Transfer Protocol (SFTP) session. In the ECLI, special characters in filenames, such as +, appear as ??. For more information, refer to Interwork Description Ericsson Command-Line Interface.
2 Procedure
2.1 Delete File in Logical File System
Prerequisites
- The instruction references the following document:
- No tools are required.
- The following conditions must apply:
- The file to delete is visible in the logical file system.
- The user has appropriate access rights to Managed Object (MO) FileGroup, matching the visible directories that have been set according to the security rules described in Section 6 in File Management.
- An ECLI session in Exec mode is in progress.
Steps
- Navigate to the FileGroup MO that represents the folder containing the file,
for example:
>dn ManagedElement=NODE06ST,SystemFunctions=1,FileM=1,LogicalFs=1,FileGroup=AlarmLogs
- Enter Config mode:
(FileGroup=AlarmLogs)>config
- Start the delete operation on the file, for example:
(config-FileGroup=AlarmLogs)>removeFile FmAlarmLog_20141027_191107_20141028_184309.log
The system returns true after a successful deletion operation. The system returns false when the operation fails. The operation fails when the file does not exist or is in use. If the file does not have right permissions to delete, then the operation fails with user understandable message.
- Commit the deletion:
(config-FileGroup=AlarmLogs)>commit
- Verify that the file has been deleted:
(FileGroup=AlarmLogs)>show
The following is an example output:
FileGroup=AlarmLogs internalHousekeeping=false files="FmAlarmLog.cfg" fileType="cfg" modificationTime="2014-11-20T13:33:57" size=108 files="FmAlarmLog_20141025_210916.cfg" fileType="cfg" modificationTime="2014-10-25T21:09:16" size=108 files="FmAlarmLog_20141025_210925.log" fileType="log" modificationTime="2014-10-25T21:09:27" size=0 files="FmAlarmLog_20141025_211150_20141025_212046.log" fileType="log" modificationTime="2014-10-25T21:20:46" size=7168 files="FmAlarmLog_20141025_212046.cfg" fileType="cfg" modificationTime="2014-10-25T21:20:46" size=108 files="FmAlarmLog_20141027_175033_20141027_175714.log" fileType="log" modificationTime="2014-10-27T17:57:14" size=2048 files="FmAlarmLog_20141027_175714.cfg" fileType="cfg" modificationTime="2014-10-27T17:57:14" size=108 files="FmAlarmLog_20141027_180112_20141027_185409.log" fileType="log" modificationTime="2014-10-27T18:54:09" size=4096 files="FmAlarmLog_20141027_185409.cfg" fileType="cfg" modificationTime="2014-10-27T18:54:09" size=108 files="FmAlarmLog_20141028_184309.cfg" fileType="cfg" modificationTime="2014-10-28T18:43:09" size=108 files="FmAlarmLog_20141120_133357.log" fileType="log" modificationTime="2014-11-20T14:34:10" size=5120File files=FmAlarmLog_20141027_191107_20141028_184309.log does not exist any more.

Contents