Configuring and Querying the MEF Edge Certificate Expiration Alarm

Configuring the MEF Center Root Certificate Expiration Alarm

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

  1. Log in to the MEF Edge device environment as the root user.
  2. Run the following command to switch to the directory where run.sh is located:
    cd Installation_directory/MEFEdge/software/
  3. Run the following command to configure the validity and detection periods of the MEF Center root 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:
    Execute [alarmconfig] command success!
  4. Start or restart MEF Edge to make the setting take effect.

Querying the MEF Center Root Certificate Expiration Alarm

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

  1. Log in to the MEF Edge device environment as the root user.
  2. Run the following command to switch to the directory where run.sh is located:
    cd Installation_directory/MEFEdge/software/
  3. After MEF Edge is started, run the following command to query the validity and detection periods of the MEF Center root 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 MEF Center root certificate are returned.
    cert_period is [1], the unit is day
    cert_threshold is [90], the unit is day
    Execute [getalarmconfig] command success!