RAMdrive Log Cleaner Configuration

You configure the log cleaner’s operating parameters and thresholds in the system configuration. Note that none of these settings is RTC-supported, so you must reboot your Oracle® Enterprise Session Border Controller in order for them to take effect. If you are using this feature on an HA node, however, you can add this feature without impact to service by activating the configuration, rebooting the standby, switching over to make the newly booted standby active, and then rebooting the newly standby system.

Unlike other values for options parameters, the Oracle® Enterprise Session Border Controller validates these setting when entered using the ACLI. If any single value is invalid, they all revert to their default values.

To configure the RAMdrive log cleaner:

  1. In Superuser mode, type configure terminal and press Enter.
    ORACLE# configure terminal
    ORACLE(configure)#
  2. Type system and press Enter.
    ORACLE(configure)# system
    ORACLE(system)#
  3. Type system-config and press Enter.
    ORACLE(system)# system-config
    ORACLE(system-config)#
  4. options—Set the options parameter by typing options, a Space, <option name>=X (where X is the value you want to use) with a plus sign in front of it. Then press Enter.

    Remember that if any of your settings are invalid, the Oracle® Enterprise Session Border Controller changes the entire group of these options back to their default settings.

    Option Name Description
    ramdrv-log-min-free Minimum percent of free space required when rotating log files.

    When the amount of free space on the RAMdrive falls below this value, the log cleaner deletes the oldest copy of the log file. The log cleaner also uses this setting when performing period cleaning.

    Default=40; Minimum=15; Maximum=75

    ramdrv-log-max-usage Maximum percent of the RAMdrive the log files can use.

    The log cleaner removes old log files to maintain this threshold.

    Default=40; Minimum=15; Maximum=75

    ramdrv-log-min-check Minimum percent of free space on the RAMdrive that triggers the log cleaner to perform a full check of log files.

    Default=50; Minimum=25; Maximum=75

    ramdrv-min-log-check Maximum time (in seconds) between log cleaner checks. This value must be greater than or equal to the ramdrv-min-log-check.

    Default=180; Minimum=40; Maximum=1800

    ramdrv--log-lifetime Maximum lifetime (in days) for log files. You give logs unlimited lifetime by entering a value of 0.

    Default=30; Minimum=2; Maximum=9999

    ORACLE(system-config)# options +ramdrv-log-min-free=50
    ORACLE(system-config)# options +ramdrv-log-max-usage=50
    ORACLE(system-config)# options +ramdrv-log-min-check=35
    ORACLE(system-config)# options +ramdrv-min-log-check=120
    ORACLE(system-config)# options +ramdrv-max-log-free=1500
    ORACLE(system-config)# options +ramdrv-log-lifetime=7

    If you type options and then the option value for either of these entries without the plus sign, you will overwrite any previously configured options. In order to append the new options to this configuration’s options list, you must prepend the new option with a plus sign as shown in the previous example.

  5. Reboot your Oracle® Enterprise Session Border Controller.