TSDR Syslog Collector Demo Instructions

From DocWiki

Jump to: navigation, search

TSDR Syslog Collector Demo Instructions

I. Requirement

1. Linux operation system

2. JDK 1.7(or higher version)

3. Maven 3.3.9(or higher version)

4. Python 2.7.10(or higher version)

5. repository.zip compressed file

6. odl-tsdr-beryllium.tar.gz tar ball file


Location of compressed files:


For Beryllium - repository.zip and odl-tsdr-beryllium.tar.gz are under : a9kl3-vxr7(172.27.146.213) /root/chenkun/

For Boron - it is under: a9kl3-vxr7(172.27.146.213) /root/TSDR-boron


II. Environment Configuration

7. Clean up Maven repository

• Change directory to .m2

cd ~/.m2/

• Remove repository directory

rm -rf repository

• Deploy repository.zip to local environment

cp repository.zip ~/.m2

cd ~/.m2/

unzip repository.zip

8. Install Django environment

• Install pip in Debian or Unbuntu

sudo apt-get install python-pip

• Install pip in Fedora or CentOS

sudo yum install python-pip

• Install Django

pip install Django


III. Compile Demo Project and Run

9. Set source from /root:

source set-env.sh

10. Uncompressing odl-tsdr-beryllium.tar.gz tar ball file

tar -zxf odl-tsdr-beryllium.tar.gz

11. Compile tsdr-beryllium

cd tsdr-beryllium/

mvn clean install -DskipTests -nsu -Dcheckstyle.skip=true

12. Compile ODL-distribution

cd ../distribution/

mvn clean install -DskipTests -nsu -Dcheckstyle.skip=true

13. Start callback server cd server/

python manage.py runserver 0.0.0.0:8010

14. Start another callback server

cd server/

python manage.py runserver 0.0.0.0:8020

15. Start Karaf container

cd distribution/distribution-karaf/target/assembly/bin/

./karaf

16. Install features in Karaf

feature:install odl-dlux-all

feature:install odl-tsdr-core

feature:install odl-tsdr-hsqldb

feature:install odl-tsdr-syslog-collector


IV. Demonstration

17. Send syslog message by syslog client (running on sunstone) as UDP message to port 8089 with command:

logging <ip-address> port 8089

18. Register filter by yangui in a Browser ( under operations -> register filter )

http://localhost:8181/index.html#/yangui/index .*Up.* .*Down.*

19. Look up data in ODL datastore

http://localhost:8181/index.html#/yangui/index

20. Look up in callback server console

21. Look up data in TSDR database with Karaf

tsdr:list SYSLOG

Rating: 0.0/5 (0 votes cast)

Personal tools