# $Id: ndt-sysconfig 281 2009-08-26 16:49:01Z throck $

# web100srv commandline options:
#
# ANL/Internet2 NDT version 3.4.4a (server)
# 
# 
#  Basic options:
# 
#   -a, --adminview        - generate administrator view html page
#   -d, --debug            - print additional diagnostic messages
#                            Note: add multiple d's (-ddd) for more details
#   -h, --help             - print help message (this message)
#   -m, --multiple         - select single or multi-test mode
#   -o, --old              - use old Duplex Mismatch heuristic
#   -q, --disable-queue    - disable FIFO queuing of client requests
#   -r, --record           - record client to server Web100 variables
#   -s, --syslog           - use the syslog() to log some information
#   -t, --tcpdump          - write tcpdump formatted file to disk
#   -v, --version          - print version number
# 
#  Configuration:
# 
#   -c, --config #filename - specify the name of the file with configuration
#   -b, --buffer #size     - set TCP send/recv buffers to user value
#   -f, --file variable_FN - specify alternate 'web100_variables' file
#   -i, --interface device - specify network interface (libpcap device)
#   -l, --log Log_FN       - specify alternate 'web100srv.log' file
#   -p, --port #port       - specify primary port number (default 3001)
#   --midport #port        - specify Middlebox test port number (default 3003)
#   --c2sport #port        - specify C2S throughput test port number (default 3002)
#   --s2cport #port        - specify S2C throughput test port number (default 3003)
#   -T, --refresh #time    - specify the refresh time of the admin page
#   --mrange #range        - set the port range used in multi-test mode
#                            Note: this enables multi-test mode
#   -A, --adminfile #FN    - specify atlernate filename for Admin web page
#                            Note: this doesn't enable 'adminview'
#   -S, --logfacility #F   - specify syslog facility name
#                            Note: this doesn't enable 'syslog'
# 
#  Experimental code:
# 
#   --avoidsndblockup      - enable code to avoid send buffers blocking in the S2C test
#   --snaplog              - enable the snaplog writing
#   --snapdelay #msec      - specify the delay in the snaplog thread (default 5 msec)
#                            Note: this doesn't enable 'snaplog'
#   --cwnddecrease         - enable analyzing of the cwnd changes during the S2C test
#                            Note: this automatically enables 'snaplog'
#   --cputime              - enable the cputime writing
#   -y, --limit #limit     - enable the throughput limiting code
# 
#  IP family:
# 
#   -4, --ipv4             - use IPv4 addresses only
#   -6, --ipv6             - use IPv6 addresses only
# 
# 

# fakewww commandline options:
#
# ANL/Internet2 NDT version 3.4.4a (fakewww)
# 
# 
#  Basic options:
# 
#   -d, --debug            - increment debugging mode
#                            Note: add multiple d's (-ddd) for more details
#   -h, --help             - print this help message
#   -F, --federated        - operate in Federated mode
#   -f, --file FN          - add the file to the allowed list
#   -s, --syslog           - use the syslog() to log some information
#   -v, --version          - print version number
# 
#  Configuration:
# 
#   -l, --alog alog_FN     - specify the access log filename
#   -e, --elog elog_FN     - specify the error log filename
#   -b, --basedir path     - set the basedir for the documents
#   -S, --logfacility #F   - specify syslog facility name
#                            Note: this doesn't enable 'syslog'
#   -p, --port #port       - specify the port number (default is 7123)
#   -t, --ttl #amount      - specify maximum number of hops in path (default is 10)
#   --dflttree fn          - specify alternate 'Default.tree' file
#   --dflttree6 fn         - specify alternate 'Default.tree6' file
# 
#  IP family:
# 
#   -4, --ipv4             - use IPv4 addresses only
#   -6, --ipv6             - use IPv6 addresses only
# 
# 
### set init script options here:
#
# web100srv opts
WEB100SRV_OPTIONS="-a --ipv4 -s -l /var/log/ndt/web100srv.log"
#WEB100SRV_OPTIONS="-a --ipv4 -s -l /var/log/ndt/web100srv.log --enableDBlogging --dbDSN ndt_data --dbUID ndt --dbPWD s3kr1t_db_password"

#  --enableDBlogging      - enable the test results logging to the database
#  --dbDSN #dsn           - specify the DSN to use (this doesn't enable DBlogging)
#  --dbUID #uid           - specify the UID to use (this doesn't enable DBlogging)
#  --dbPWD #pwd           - specify the PWD to use (this doesn't enable DBlogging)


# where to store snaplogs, tcpdumps, 
WEB100_DATADIR="/var/lib/ndt"
#WEB100_DATADIR="/srv/ndt"


# fakewww opts
# whether or not to use fakewww; null or 0 to disable, 1 to enable
USE_FAKEWWW="1"

# extra options for fakewww - ignored unless USE_FAKEWWW is set to '1'
#FAKEWWW_OPTIONS="-f /index.html"
FAKEWWW_OPTIONS="-f /index.html -s -l /var/log/ndt/fakewww_access.log -e /var/log/ndt/fakewww_error.log"
