Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
a51d0497
Commit
a51d0497
authored
Oct 15, 2007
by
Browse files
Update of DAG initialization scripts
git-svn-id:
file:///home/svn/mapi/trunk@1336
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
fe08dde1
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/abw/INSTALL
View file @
a51d0497
...
@@ -45,7 +45,6 @@ III. INSTALL DiMAPI
...
@@ -45,7 +45,6 @@ III. INSTALL DiMAPI
3) ./configure --prefix=/usr/local/mapi --enable-trackflib \
3) ./configure --prefix=/usr/local/mapi --enable-trackflib \
[ --enable-dimapi ] \
[ --enable-dimapi ] \
[ --enable-reconnect ] \
[ --with-libpcap=/usr/local/src/libpcap ] \
[ --with-libpcap=/usr/local/src/libpcap ] \
[ --enable-dag --with-libdag=/usr/local/dag ]
[ --enable-dag --with-libdag=/usr/local/dag ]
[ --enable-anonflib --enable-ipfixflib --enable-extraflib ] \
[ --enable-anonflib --enable-ipfixflib --enable-extraflib ] \
...
@@ -55,9 +54,6 @@ III. INSTALL DiMAPI
...
@@ -55,9 +54,6 @@ III. INSTALL DiMAPI
Use --enable-dimapi if you want to gather results from remote monitoring
Use --enable-dimapi if you want to gather results from remote monitoring
stations on a central station.
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
Use --with-libpcap if you want to use some specific libpcap, such as the
latest sources from CVS in order to monitor MPLS links.
latest sources from CVS in order to monitor MPLS links.
...
@@ -142,11 +138,11 @@ IV. INSTALL ABW
...
@@ -142,11 +138,11 @@ IV. INSTALL ABW
installation directory. Specify what monitoring should be done,
installation directory. Specify what monitoring should be done,
follow comments in this file.
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
This step is needed only if you use DAG card
s
. The "dag.sh" script
initializes the
DAG card. You should probably call this script
initializes the
specified DAG card. Try "dag.sh" without arguments for
automatically when the operating system boots u
p.
online hel
p.
8) ABW_DIR/bin/mapi.sh [ -d ] start
8) ABW_DIR/bin/mapi.sh [ -d ] start
...
@@ -184,6 +180,17 @@ IV. INSTALL ABW
...
@@ -184,6 +180,17 @@ IV. INSTALL ABW
abw_delete_old_graphs.sh deletes old graphs.
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
IV. INSTALLATION OF USER INTERFACE ON THE WEB SERVER
Do this on the web server.
Do this on the web server.
...
...
applications/abw/configure.ac
View file @
a51d0497
...
@@ -108,6 +108,7 @@ src/Makefile
...
@@ -108,6 +108,7 @@ src/Makefile
scripts/abw.sh
scripts/abw.sh
scripts/mapi.sh
scripts/mapi.sh
scripts/dag.sh
scripts/dag.sh
scripts/dag-init.sh
scripts/abw_mapi.sh
scripts/abw_mapi.sh
scripts/abw_check_rrd.sh
scripts/abw_check_rrd.sh
scripts/abw_check_data.sh
scripts/abw_check_data.sh
...
...
applications/abw/scripts/dag-init.sh.in
0 → 100755
View file @
a51d0497
#! /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
applications/abw/scripts/dag.sh.in
View file @
a51d0497
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
DAGDIR
=
@DAG_DIR@
DAGDIR
=
@DAG_DIR@
DAGFWDIR
=
${
DAGDIR
}
/share/dag/xilinx
DAGFWDIR
=
${
DAGDIR
}
/share/dag/xilinx
export
PATH
=
$DAGDIR
/bin:
$PATH
function
usage
()
{
function
usage
()
{
echo
"dag.sh { 4.3 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo
"dag.sh { 4.3 | 6.2 | 8.2 ] [ <card_number> ] [ -f ] [ -p ] }"
echo
""
echo
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment