1 ## Operate and debug ODL for testing
5 #### Activate or deactivate log point
7 Getting Log info about a specific service:
9 log:set DEBUG com.highstreet.technologies
11 Getting all NETCONF/YANG traffic (Hint: huge amount of data, only for test purpose):
13 log:set TRACE org.opendaylight.netconf
15 For switching off logging set level to INFO to see the log point
17 log:set INFO org.opendaylight.netconf
19 For deleting the log point for a package
21 log:set DEFAULT org.opendaylight.netconf
23 Configuration of logging is done here:
25 vi $ODL_KARAF_HOME/etc/org.ops4j.pax.logging.cfg
29 A good option is to cd into the log directory and use grep and vi to view into the logs.
31 cd $ODL_KARAF_HOME/bin/data/log
33 A second option is within the karaf command line to use the command *log:display* in combination with grep.
40 #### In shell or background
42 There are two way to start and run ODL. The command are available in the $ODL_KARAF_HOME/bin directory.
45 - Using *./bin/karaf* command to run ODL in a shell.
46 - In this way of operation ODL is running if the shell is running.
47 - If you leave the shell by shutdown or logout command ODL is stopped.
50 - Use command *./bin/start*, *./bin/stop* to run and stop ODL.
51 - Attaching to the command line with *client*
52 - In this way of operation ODL is running in the background.
54 #### Check if ODL is running
56 A good way to check if ODL is running is to use the command
60 The feedback of *status* is not always true during startup or shutdown.
61 In some cases ODL run two times in a JVM what needs to be avoided.