Deployment Guide
72
5.6 Logging
Due to the requirement not to impact any of the existing N series firmware, the DNOS-OF switch maintains
only a minimal set of in-memory trace logs that are accessible by engineering and support for internal program
debugging. All other user configurable logging is intended to use a remote syslog server or, if
necessary/desired, the serial console. Later releases of the firmware may add local logging.
The logging system allows for use of the component and verbosity as well as whether it is enabled or disabled,
to be controller. It also allows specification of the IP address and port for the syslog service to use for external
logging, the parameters needed to set the logging to that service and whether it is enabled or disabled.
The logging levels and components are configurable for either the runtime or stored configured values used by
the system. The set logging level/component commands are runtime only and do not affect the stored
logging settings in the running-config. The set default logging level/component commands are used to store
a given logging level or component to the running-config.
The default persistent logging values from the switch configuration are shown below:
"Default Logging":
{
"components":
{
"API": true,
"Mapping": true,
"OFDB": true,
"datapath": true
},
"level": 1
},
"Remote Syslog":
{
"enabled": false,
"ip address": "",
"ip port": 514
},
5.6.1 View Logging Configuration
5.6.1.1 show logging
Shows the current state of system logging. There are 8 levels and 4 different components that can be each be
enabled or disabled independently for logging. The levels are 0-7 and the components are API, Mapping,
OpenFlow Database, and Datapath. These can be seen in the output of the show logging command.
ZYA123_console> show logging
Current debug log settings
--------------------------
Debug logging components available: API, Mapping, OpenFlow Database, Datapath
Debug logging components enabled: API Mapping OpenFlow Database Datapath
Debug logging verbosity levels available:
0 = OFF (FATAL only)
1 = BASIC (FATAL,ERROR,WARNING)
2 = INFO (FATAL,ERROR,WARNING,INFO)
3 = MESSAGE (FATAL,ERROR,WARNING,INFO,MESSAGEs)
4 = VERBOSE (and then some)
5 = TRACING
6 = ALMOST ALL (except for in progress debugging)