IPI-LOGGING
Configure severity level
Use this attribute to set the severity level that a message for a specific module must reach before the messages is logged. Default value is 2-critical.
Attribute Name: severity-level
Attribute Type: enum (0|1|2|3|4|5|6|7)
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<logging-modules>
<module-logging>
<module-name>auth</module-name>
<config>
<module-name>auth</module-name>
</config>
<severity-level>2</severity-level>
</module-logging>
</logging-modules>
</logging>
Command Syntax
logging level (auth|bgp|cmm|hostp|hsl|isis|ldp|lag|l2mrib|mstp|mrib|nsm|onm|oam|ospf|ospf6|ptp|rip|pim|rib|vrrp|sflow|rsvp|pserv|cml|ndd|ripng|vlog|all|synce|pcep|udld) ((0|1|2|3|4|5|6|7)|)
Configure enable logging
Use this attribute to set severity level of logging monitor. Default value is 7-debug-details.
Attribute Name: severity-level
Attribute Type: enum (0|1|2|3|4|5|6|7)
Default Value: 7
Attribute Name: enable-logging
Attribute Type: enum (disable|enable)
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<monitor-logging>
<config>
<enable-logging>enable</enable-logging> <!-- operation="delete"-->
<severity-level>7</severity-level> <!-- operation="delete"-->
</config>
</monitor-logging>
</logging>
Command Syntax
logging monitor ((disable)|) ((0|1|2|3|4|5|6|7)|)
Configure max file size
Set size of the log file in bytes. Default value is 419430400 bytes.
Attribute Name: max-file-size
Attribute Type: uint32
Attribute Range: 4096-419430400
Attribute Name: file-name
Attribute Type: string
Attribute Name: severity-level
Attribute Type: enum (0|1|2|3|4|5|6|7)
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<logfile>
<config>
<file-name>LOGFILENAME</file-name>
<severity-level>6</severity-level>
<max-file-size>4096</max-file-size>
</config>
</logfile>
</logging>
Command Syntax
logging logfile LOGFILENAME (0|1|2|3|4|5|6|7) (size <4096-419430400>|)
Configure file name
Set size of the debug log file in bytes. The default value is 4194304 bytes.
Attribute Name: max-file-size
Attribute Type: uint32
Attribute Range: 4096-4194304
Attribute Name: file-name
Attribute Type: string
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<debug-logfile>
<config>
<file-name>LOGFILE</file-name>
<max-file-size>4096</max-file-size>
</config>
</debug-logfile>
</logging>
Command Syntax
debug logfile LOGFILE size <4096-4194304>
Configure enable syslog
Use this attribute to begin logging of information to the system log and set the level to debug.
This command is supported when following feature are enabled syslog feature
Attribute Name: enable-syslog
Attribute Type: empty
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<syslog>
<config>
</enable-syslog><!-- operation="delete"-->
</config>
</syslog>
</logging>
Command Syntax
log syslog
Configure timestamp granularity
Use this attribute to set the logging timestamp granularity.
This command is supported when following feature are enabled syslog feature
Attribute Name: timestamp-granularity
Attribute Type: enum (none|microseconds|milliseconds|seconds)
Default Value: milliseconds
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<syslog>
<config>
<timestamp-granularity>milliseconds</timestamp-granularity> <!-- operation="delete"-->
</config>
</syslog>
</logging>
Command Syntax
logging timestamp (none|microseconds|milliseconds|seconds|)
Configure disable all modules debug
Use this attribute to unset debug globally
Attribute Name: disable-all-modules-debug
Attribute Type: empty
Netconf edit-config payload
<logging xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging">
<global>
<config>
</disable-all-modules-debug><!-- operation="delete"-->
</config>
</global>
</logging>
Command Syntax
no debug all
no debug all
Netconf RPC payload
<terminal-debug-all-off xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging"/>
Command Syntax
no debug all
clear debug logfile
Netconf RPC payload
<logging-clear-debug-logfile xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging"/>
Command Syntax
clear debug logfile
clear logging logfile
Netconf RPC payload
<logging-clear-logging-logfile xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-logging"/>
Command Syntax
clear logging logfile