Automated file management handles system-generated files on Cisco NCS 1014, including log files, showtech-related residual files, and optical time-domain reflectometer (OTDR) files.
Summary
The process applies to these file categories:
Workflow
These stages describe how automated file management works for various files.
- For log files, the system checks for .log files that exceed 10 MB.
Note
This threshold is applicable for /tmp folder files only. For files in other folders, the system uses a different threshold and follows the same process.
- After locating the file, the system archives that file with the .gz extension and creates a new .log file with the same name.
- The system then maintains one active log file and two archived files.
- When new files are archived, the system deletes the oldest archived file to make sure that only the two most recently archived files and the current log file are retained.
- For showtech-related residual log files, the system generates the residual files during the collection of logs when Showtech logs is in operation.
- After collecting the logs, the system automatically removes these residual files to conserve space.
Result
The system retains the current log file, the two most recently archived log files, and the allowed OTDR file count while removing excess or residual files.