summaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md
diff options
context:
space:
mode:
authordemx8as6 <martin.skorupski@highstreet-technologies.com>2018-07-10 18:07:44 +0200
committerTimoney, Dan (dt5972) <dt5972@att.com>2018-07-11 16:30:28 -0400
commit27fb2d06608fbb070ae2c15a5580a4f5b2423d15 (patch)
treeccd717991b4e556b67f1fd2cacb345b4d174b41f /sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md
parent60315525ab5e7c12a9f47c409092e8dba6ad656d (diff)
Add seed code for sdnr app based on ONF Centennial
At this point in time all the Carbon code from ONF Centennial is added to ONAP. Later it needs to be refactored and modified for ODL Oxygen. Change-Id: Iff85dd940c05c3827f1c4e6f9542ecd060c58a46 Issue-ID: SDNC-374 Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md')
-rw-r--r--sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md63
1 files changed, 63 insertions, 0 deletions
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md b/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md
new file mode 100644
index 00000000..40ec62c2
--- /dev/null
+++ b/sdnr/wireless-transport/code-Carbon-SR1/docs/READMEOperateAndDebugODL.md
@@ -0,0 +1,63 @@
+## Operate and debug ODL for testing
+
+### Debug ODL
+
+#### Activate or deactivate log point
+
+Getting Log info about a specific service:
+
+ log:set DEBUG com.highstreet.technologies
+
+Getting all NETCONF/YANG traffic (Hint: huge amount of data, only for test purpose):
+
+ log:set TRACE org.opendaylight.netconf
+
+For switching off logging set level to INFO to see the log point
+
+ log:set INFO org.opendaylight.netconf
+
+For deleting the log point for a package
+
+ log:set DEFAULT org.opendaylight.netconf
+
+Configuration of logging is done here:
+
+ vi $ODL_KARAF_HOME/etc/org.ops4j.pax.logging.cfg
+
+#### View the log
+
+A good option is to cd into the log directory and use grep and vi to view into the logs.
+
+ cd $ODL_KARAF_HOME/bin/data/log
+
+A second option is within the karaf command line to use the command *log:display* in combination with grep.
+
+ log:display | grep
+
+
+### Operate ODL
+
+#### In shell or background
+
+There are two way to start and run ODL. The command are available in the $ODL_KARAF_HOME/bin directory.
+
+ 1. In the karaf shell
+ - Using *./bin/karaf* command to run ODL in a shell.
+ - In this way of operation ODL is running if the shell is running.
+ - If you leave the shell by shutdown or logout command ODL is stopped.
+
+ 2. In the background
+ - Use command *./bin/start*, *./bin/stop* to run and stop ODL.
+ - Attaching to the command line with *client*
+ - In this way of operation ODL is running in the background.
+
+#### Check if ODL is running
+
+A good way to check if ODL is running is to use the command
+
+ ps -ef | grep karaf
+
+The feedback of *status* is not always true during startup or shutdown.
+In some cases ODL run two times in a JVM what needs to be avoided.
+
+