The enable log command enables the OSPF exception log function.
The undo enable log command disables the OSPF exception log function.
By default, the OSPF exception log function is disabled.
enable log [ config | error | state | snmp-trap ]
undo enable log [ config | error | state | snmp-trap ]
| Parameter | Description | Value |
|---|---|---|
| config | Enables the configuration log. | - |
| state | Enables the state log. | - |
| error | Enables the error log. | - |
| snmp-trap | Enables the SNMP trap log. | - |
Usage Scenario
To enable the OSPF exception log function, run the enable log command. You can view the operating status of devices based on logs, which facilitates device maintenance.
If the undo enable log command is run, the OSPF exception log function is disabled, and you cannot check the operating status of devices in time, which affects device maintenance.
Precautions
To enable the log function for a specified exception type, specify corresponding parameter in the command. If no parameter is specified in the command, the log function of all exception types is enabled.
By default, the OSPF normal log function is enabled.