[HPADM] [SUMMARY] FDDI monitoring/tracing

From: Baker, Sanchia (Sanchia.B.Baker@accenture.com)
Date: Fri Feb 21 2003 - 11:11:56 EST


Thank you all for your replies. Please find below my original question and
the answers I received. The fddistats gave me the information I required.
There was some freeware on the HP porting site http://hpux.cs.utah.edu but
these may allow access to packet snifers: -

>From Robin Slotten : -

Here is a script I wrote to help me capture things quickly. Read the script
and understand it before you run it.
It is best to put the script into it's own directory and it will build a
bunch of files to use.

-----------------SNIP OFF-----------------------
# nettrace.sh
###################################################
# Written by Rob Slotten
# Wisconsin Department of Transportation
# robin.slotten@dot.state.wi.us
# Written for internal use.
# personal observation: HP-UX 11.00 uses extention TRC0
# whereas HP-UX 11.11 uses TRC000
# make the appropriate changes to the script
###################################################
#set -x

if [ -f ./conf ];then
        . ./conf
        echo "__________________________________"
        cat ./conf
        echo "__________________________________"
        #sleep 2

        read ANSWER?"Are the above parmemeters OK for this trace?"
        #echo "Are the above parmemeters OK for this trace? Y|N"
        #reply=$(ANSWER -t 3) # 3 second timeout

# echo Response is $ANSWER
else
        ANSWER=n
fi

# Build a configuration file
if [ "$ANSWER" = "y" -o "$ANSWER" = "" ];then
        :
else

ENTITY="all GSC100BT NS_LS_DRIVER NS_LS_TCP NS_LS_UDP NS_LS_NFS NS_LS_DRIVER
"
#ENTITY="ns_ls_driver ns_ls_tcp ns_ls_udp ns_ls_nfs all"
PS3='Please enter a number '

select i in `echo ${ENTITY}`

do case $i in
        NS*|GSC*|all)
                print good choice
                ENTITY=$i
                echo ENTITY=${ENTITY}>conf
                break;;
        ns*|gsc*|all)
                print good choice
                ENTITY=$i
                echo ENTITY=${ENTITY}>conf
                break;;

        *) print 'Invalid choice';;
        esac
done
echo trace on entity: ${ENTITY}

# set IP address
read IP_ADDR?"Enter IP address of remote machine :"
echo IP_ADDR=$IP_ADDR >>conf

# set length of trace
echo "If the length of trace = 0 then the system will prompt you to stop the
trace"
read SLEEP_TIME?"Enter length of trace in Seconds :"
echo SLEEP_TIME=$SLEEP_TIME >>conf

# build filter file
echo filter ip_saddr $IP_ADDR > filter_x
echo filter ip_daddr $IP_ADDR >> filter_x

cat filter_template >>filter_x
echo "_______ Filter ________"
cat filter_x
echo "_______________________"

fi

#build the filter file

BASFILENAME=`print ${ENTITY##*NS_LS_}`
BASFILENAME=`echo ${BASFILENAME}|cut -c 1-3`
FILENAME=${BASFILENAME}

if [ -f ${FILENAME}.TRC0 ];then
        #set -x
        mv ${FILENAME}.TRC0 ${FILENAME}_`date +%M`.TRC0
        #set +x
fi

# turn up logging level on ${ENTITY}
echo turning up logging level on ${ENTITY}
nettl -l w e d -e ${ENTITY}

#nettlconf -status

#nettl -tn pduin pduout -e NS_LS_DRIVER -s 1024 -tm 99999 -f smtp >
net_trace.txt

echo "Starting Trace `date +%X`"
nettl -tn pduin pduout -e ${ENTITY} -s 1024 -tm 99999 -f ${FILENAME} >
net_trace.txt

#nettl -tn{traceon subsystem} [ hdrin hdrout pduin pduout proc state error
logging loopback ]
        #-e
        #-s{ize} portsize in KB
        #-tm{tracemax} maxsize
        #-tf # trace off

#set +x

if [ $SLEEP_TIME -eq 0 ];then
        echo "___________________________________________"
        read ANSWER?"Press ENTER to stop trace...."
else
        sleep $SLEEP_TIME
fi

# to end trace
nettl -tf -e all
echo "Trace ended `date +%X`"

# set back to normal logging
echo setting back to normal logging
nettl -l e d -e ${ENTITY}

# format the trace data
#./formatter

echo Formatting the traces
netfmt -N1Tn -c filter_x -f ${FILENAME}.TRC0 >${FILENAME}.fmt1
netfmt -NlTn -c filter_x -f ${FILENAME}.TRC0 >${FILENAME}.fmt

# look at what we got
echo lets look....
pg ${FILENAME}.fmt1 ${FILENAME}.fmt
-----------------SNIP OFF-----------------------

-----------------

==============================================
>From Rich Crump : -

Try 'fddistat'

You run it with a -n devicefile and it should give you all the info you
need.

Sanchia Baker
Senior Systems Support Analyst
Seeboard Energy IT Technical Support - Accenture
                                                           
* 01903 283514 / 71-3514
* Email: sanchia.b.baker@accenture.com /

                 sabaker@seeboard.com

Accenture, Seeboard Plc, Southdownview Road, Worthing, West Sussex. BN14 8NG

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:26 EDT