< Home

enable log

Function

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.

Format

enable log [ config | error | state | snmp-trap ]

undo enable log [ config | error | state | snmp-trap ]

Parameters

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. -

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the OSPF exception log function.

<sysname> system-view
[sysname] ospf 1
[sysname-ospf-1] enable log
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >