Configuring and Querying the MEF Center Certificate Expiration Alarm

MEF Center allows you to configure and query the root certificate, software repository certificate, and image repository certificate of a third-party management platform.

Configuring the Certificate Expiration Alarm

MEF Center supports the configuration of the validity and detection periods of the certificate.

  1. Log in to the MEF Center device environment as the root user.
  2. Go to the path where run.sh is stored. The default installation directory is /usr/local.
    cd Installation_path/MEF-Center/mef-center
  3. Run the following command to configure the validity and detection periods of the certificate:
    ./run.sh alarmconfig -cert_threshold=Certificate validity period -cert_period=Certificate detection period
    Table 1 alarmconfig description

    Parameter

    Description

    cert_threshold

    Optional. Certificate validity period. The value range is [7, 180], and the default value is 90.

    cert_period

    Optional. Certificate validity detection period. The value range is [1, Certificate validity period-3], and the default value is 7.

    The configuration is successful if the following command output is displayed:
    update alarm config successful
  4. Start or restart MEF Center to make the setting take effect.

Querying the Certificate Expiration Alarm

MEF Center supports the query of the validity and detection periods of the certificate.

  1. Log in to the MEF Center device environment as the root user.
  2. Go to the path where run.sh is stored. The default installation directory is /usr/local.
    cd Installation_path/MEF-Center/mef-center
  3. Run the following command to configure the validity and detection periods of the certificate:
    ./run.sh getalarmconfig
    If the following information is displayed, the query is successful. The validity (cert_threshold) and detection (cert_period) periods of the current certificate are returned.
    cert_period is [1], the unit is day
    cert_threshold is [90], the unit is day
    get alarm config successful