255
netconf log
Use netconf log to enable NETCONF logging.
Use undo netconf log to remove the configuration for the specified NETCONF operation sources
and NETCONF operations.
Syntax
netconf log source { all | { agent | soap | web } * } { { protocol-operation { all | { action | config |
get | set | session | syntax | others } * } } | verbose }
undo netconf log source { all | { agent | soap | web } * } { { protocol-operation { all | { action |
config | get | set | session | syntax | others } * } } | verbose }
Default
NETCONF logging is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
source: Specifies a NETCONF operation source that represents clients that use a protocol.
all: Specifies NETCONF clients that use all protocols.
agent: Specifies clients that use Telnet, SSH, console, or NETCONF over SSH.
soap: Specifies clients that use SOAP over HTTP, or SOAP over HTTPS.
web: Specifies clients that use Web.
protocol-operation: Specifies a NETCONF operation type.
all: Specifies all NETCONF operations.
action: Specifies the action operation.
config: Specifies the configuration-related NETCONF operations, including the CLI, save, load,
rollback, lock, unlock, and save-point operations.
get: Specifies the data retrieval-related NETCONF operations, including the get, get-config,
get-bulk, get-bulk-config, and get-sessions operations.
set: Specifies all edit-config operations.
session: Specifies session-related NETCONF operations, including the kill-session and
close-session operations, and capability exchanges by hello messages.
syntax: Specifies the requests that include XML and schema errors.
others: Specifies NETCONF operations except for those specified by keywords action,
config, get, set, session, and syntax.
verbose: Logs detailed NETCONF information. For request operations, this keyword logs the texts
of the requests after brief information. For service operations, this keyword takes effect only on
edit-config operations. When an edit-config operation error occurs, this keyword logs detailed error
information.
Usage guidelines
For NETCONF to correctly send the generated logs to the information center, you must also
configure the information center. For information about information center configuration, see the
network management and monitoring configuration guide for the device.