SAS Scalable Performance Data Server 4.5 Administrator's Manual page 151

Table of Contents

Advertisement

#
NSPORT=6100
SNPORT=6101
DEBUG=
PARGS="-c 0"
#
# parse parameters
#
while [ $1 ]; do
#echo "Parsing Option $1 of length ${#1}"
case "$1" in
-nsport) if [ $# -lt 2 ]; then
NSPORT=$2
shift;;
-snport) if [ $# -lt 2 ]; then
SNPORT=$2
shift;;
-debug)
DEBUG="YES";;
-trace)
echo "********\n* Script: $0\n* Args: $*\n********"
set -x
trace="-trace"
echo "Script tracing turned on";;
*)
echo "Found unknown arg, passing on to profiler."
esac
shift
done
echo "NSPORT=$NSPORT"
echo "SNPORT=$SNPORT"
echo "DEBUG=$DEBUG"
echo "PARGS=$PARGS"
#
# Check for debug option
#
if [ -n "$DEBUG" ]; then
NSPORT=9876
SNPORT=9877
echo "Using Debug Ports: NS=$NSPORT
fi
SSRVPID=$(ps -eo pid,ppid,args | grep spdsserv | grep 6100
| tr -s "
" " " | sed -e "s/^ *//" | cut -d " " -f1)
SNETPID=$(ps -eo pid,ppid,args | grep spdssnet | grep 6101
| tr -s "
" " " | sed -e "s/^ *//" | cut -d " " -f1)
echo "$1 parameter value not specified"
exit 1
fi
echo "$1 parameter value not specified"
exit 2
fi
PARGS="$PARGS $1";;
Sample Rc.perf Script
SN=$SNPORT"
145

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Scalable Performance Data Server 4.5 and is the answer not in the manual?

Table of Contents

Save PDF