Archive Commands

Creating Archives

You can create archives of log files. Creating log archives requires a unique procedure described below.

File Locations

The following table lists source and destination directories used with archive functions.

Configuration Type Source Directory Destination Directory
Log /opt/logs /opt/archives

Log File Archives

To create an archive that contains all log files on the Oracle Communications Session Border Controller:

  1. Enter the archives shell by typing archives at the topmost ACLI level while in superuser mode.
    ORACLE# archives
    ORACLE(archives)#
  2. Type create LOGS, followed by a name for the archive file. The Oracle Communications Session Border Controller will pause while it completes the task and alert you when the task has completed.
    ORACLE(archives)# create LOGS All_Logs_27_Feb
    task done
    ORACLE(archives)#

Listing Archives

To display a list of the archived log files:

  1. Enter the archives shell by typing archives at the topmost ACLI level while in superuser mode.
    ORACLE# archives
    ORACLE(archives)#
  2. Type display LOGS to view the available log files.
    ORACLE(archives)# display LOGS
    testlogs1.tar
    log.algdd.tar
    bluff1.tar
    log.mbcd.tar
    log.lemd.tar
    log.sipd.tar.gz
    log.NOTTESTING.sipd.tar
    sipd.log.tar.gz
    ORACLE(archives)#

Deleting Archives

To delete archived log files:

  1. Enter the archives shell by typing archives at the topmost ACLI level while in superuser mode.
    ORACLE# archives
    ORACLE(archives)#
  2. Type delete LOGS, followed by the filename of the log file to delete.
    ORACLE(archives)# delete LOGS sipd.log.tar.gz
    ORACLE(archives)#

Renaming Archives

To rename archived log files:

  1. Enter the archives shell by typing archives at the topmost ACLI level while in superuser mode.
    ORACLE# archives
    ORACLE(archives)#
  2. Type rename LOGS, followed by the full filename of the old log file, and then the new filename without an extension.
    ORACLE(archives)# display LOGS
    log.sipd.tar.gz
    ORACLE(archives)# rename LOGS log.sipd.tar.gz backup_log.sipd
    ORACLE(archives)# display LOGS
    backup_log.sipd.tar.gz
    ORACLE(archives)#

    The newly renamed file remains in the same directory.

Viewing Free Space

The check-space-remaining command checks the free space in the boot directory, code (flash memory), and other devices. Type a ? at the command to see all valid values. This command displays the total number of bytes free and total number of bytes available on the specified device. Each volume is used in the following way:

  • /boot—A flash memory partition used primarily for system boot images and the bootloader image.
  • /code—A flash memory partition used to store archives and data that needs to be persistent across reboot.
  1. In the ACLI at the superuser prompt, enter the check-space-remaining command followed by the device you want to check the space on. Valid devices are boot, code, opt. All examples of this command are shown below.
    ORACLE# check-space-remaining boot
    
    Mount      Size      Used      Avail      Use%   
    /boot      1.8GB     1.0GB     794.6MB    56%