# service check-config

#### Syntax

[ no ] service check-config [ auto | fileName fileName | running-configuration | running-configuration recover | auto-recover ]

#### Release Information

Command introduced in JunosE Release 9.3.0.
auto-recover keyword added in JunosE Release 10.3.0.

#### Description

Detects corruption of running configuration on both primary and standby SRP due to fatal duplicate key error. In addition, the command detects corruption of CNF files on the primary SRP only. The no version restores the default action, manual detection.

#### Options

- auto—Checks the running configuration at regular intervals; cannot be used for CNF files.
- fileName—Name of an existing configuration file (.cnf) that needs to be validated for corruption
- running–configuration—Specifies that the running configuration needs to be validated for corruption
- running-configuration recover—Recovers the corrupted configuration files in the running configuration
- auto-recover—Specifies that the running configuration needs to be validated for corruption and the corrupted files need to be recovered

#### Mode

Global Configuration