Commit a51d0497 authored by 's avatar
Browse files

Update of DAG initialization scripts


git-svn-id: file:///home/svn/mapi/trunk@1336 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent fe08dde1
......@@ -45,7 +45,6 @@ III. INSTALL DiMAPI
3) ./configure --prefix=/usr/local/mapi --enable-trackflib \
[ --enable-dimapi ] \
[ --enable-reconnect ] \
[ --with-libpcap=/usr/local/src/libpcap ] \
[ --enable-dag --with-libdag=/usr/local/dag ]
[ --enable-anonflib --enable-ipfixflib --enable-extraflib ] \
......@@ -55,9 +54,6 @@ III. INSTALL DiMAPI
Use --enable-dimapi if you want to gather results from remote monitoring
stations on a central station.
Use --enable-reconnect to enable support for reconnection of ABW after
connection to mapicommd or mapid breaks down.
Use --with-libpcap if you want to use some specific libpcap, such as the
latest sources from CVS in order to monitor MPLS links.
......@@ -142,11 +138,11 @@ IV. INSTALL ABW
installation directory. Specify what monitoring should be done,
follow comments in this file.
7) ABW_DIR/bin/dag.sh {4.3 | 6.2 | 8.2 [ 1 | 2 ] }
7) ABW_DIR/bin/dag.sh { 4.3 | 6.2 | 8.2 } [ 0 | 1 | 2 ... ] [ -f ] }
This step is needed only if you use a DAG card. The "dag.sh" script
initializes the DAG card. You should probably call this script
automatically when the operating system boots up.
This step is needed only if you use DAG cards. The "dag.sh" script
initializes the specified DAG card. Try "dag.sh" without arguments for
online help.
8) ABW_DIR/bin/mapi.sh [ -d ] start
......@@ -184,6 +180,17 @@ IV. INSTALL ABW
abw_delete_old_graphs.sh deletes old graphs.
12) Initialize DAG cards automatically during operating system startup.
cp scripts/dag-init.sh /etc/init.d/dag
edit /etc/init.d/dag to call dag.sh with proper arguments for all
DAG cards that you have in your server
do whatever is necessary so that /etc/init.d/dag is called automatically
during operating system startup (e.g., type "insserv" in SuSe Linux
or create startup links manually)
IV. INSTALLATION OF USER INTERFACE ON THE WEB SERVER
Do this on the web server.
......
......@@ -108,6 +108,7 @@ src/Makefile
scripts/abw.sh
scripts/mapi.sh
scripts/dag.sh
scripts/dag-init.sh
scripts/abw_mapi.sh
scripts/abw_check_rrd.sh
scripts/abw_check_data.sh
......
#! /bin/bash
# Copyright (c) 2007 CESNET.
# All rights reserved.
#
# Author: Sven Ubik
#
# /etc/init.d/dag
#
### BEGIN INIT INFO
# Provides: dag
# Required-Start: $network
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop:
# Description: Initializes DAG cards
### END INIT INFO
ABW_DIR=@ABW_DIR@
MAPI_DIR=@MAPI_DIR@
DAG_DIR=@DAG_DIR@
INIT_SCRIPT_DIR=/etc/init.d
DAG_SCRIPT=$ABW_DIR/bin/dag.sh
DSM_LOADER=$DAG_DIR/bin/dsm_loader
DSM_CONFIG=$MAPI_DIR/etc/dsm.cfg
case "$1" in
start)
$DAG_SCRIPT 8.2 >> /tmp/dag.log
$DAG_SCRIPT 8.2 2 -f >> /tmp/dag.log
$DSM_LOADER -d /dev/dag0 -f $DSM_CONFIG -v >> /tmp/dag.log
$DSM_LOADER -d /dev/dag2 -f $DSM_CONFIG -v >> /tmp/dag.log
;;
stop)
;;
restart)
$INIT_SCRIPT_DIR/dag stop
$INIT_SCRIPT_DIR/dag start
;;
*)
echo "Usage: $0 {start | stop | restart}"
exit 1
esac
......@@ -3,6 +3,8 @@
DAGDIR=@DAG_DIR@
DAGFWDIR=${DAGDIR}/share/dag/xilinx
export PATH=$DAGDIR/bin:$PATH
function usage() {
echo "dag.sh { 4.3 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment