Re: [foxboro] Alarm issues

  • From: "Den Haese, Patrick" <phaese@xxxxxxxxxxx>
  • To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
  • Date: Thu, 11 Apr 2002 15:09:06 -0400

HH843 can clear some of the questions you have.

Patrick Den Haese
Senior System Service Engineer
Invensys Systems N.V./S.A. belgium


-----Original Message-----
From: duc.do@xxxxxxxxxxxxxx [mailto:duc.do@xxxxxxxxxxxxxx]
Sent: donderdag 11 april 2002 16:38
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Alarm issues



William Ricker wrote:

>The second way is to use "gloff" to find the ethernet address
>of the station containing the Device Monitor process, then use
>"fist" to find what station has that ethernet address.

I stole the basis for the following script file from Angel Corbera and
embellish it for our use. Perhaps others may like to use it too. Cut and
paste into your telnet session and name it get_host or anything you like.

Duc

================ begin of script file ===================
#!/bin/sh
# @(#)get_host             Version 1.01    1/12/99  Dow Corning
#
# this file is   get_host
#
# Script to get the current CSA and Master Device Monitor hosts
#
# Revision History
#
#                original concept by Angel Corbera
#  1/11/99  DMD  revised for DC's use; tightened the if logic;
#                added the options
#  1/12/99  DMD  added usage

TOOLS="/opt/fox/bin/tools"
CSAM="`$TOOLS/glof -p CSA_SERVER | \
     awk '{printf "%2s%2s%2s%2s%2s%2s",$14,$15,$16,$17,$18,$19}' | \
     tr -d ' '`"
DEVM="`$TOOLS/glof -p DEV_MONITOR | \
     awk '{printf "%2s%2s%2s%2s%2s%2s",$14,$15,$16,$17,$18,$19}' | \
     tr -d ' '`"
HWLIST=`egrep '1001|1002|303|304|305|306|307|308|309|406|408|409' \
    /usr/fox/sp/hldb | sort | awk '{print $1}'`

case $1 in

-d) # returns just the name of the master Device Monitor
    for sta in $HWLIST
    do
        addr=`$TOOLS/fist $sta | grep $sta | awk '{print $3}'`
        if [ "$addr" = "$DEVM" ]
        then
            echo "The master Device Monitor is $sta"
            break
        fi
    done
    ;;
-c) # returns just the name of the CSA server
    for sta in $HWLIST
    do
        addr=`$TOOLS/fist $sta | grep $sta | awk '{print $3}'`
        if [ "$addr" = "$CSAM" ]
        then
            echo "The Compound Summary Access (CSA) server is $sta"
            break
        fi
    done
    ;;
-v) # verbose report
    echo "Station's address (hex)"
    for sta in $HWLIST
    do
        addr=`$TOOLS/fist $sta | grep $sta | awk '{print $3}'`
        if [ "$addr" = "$DEVM" ]
        then echo "$sta: $addr <--- Master Device Monitor"
        elif [ "$addr" = "$CSAM" ]
        then echo "$sta: $addr <--- CSA Server"
        elif [ "$addr" != "found" ]
        then echo "$sta: $addr"
        else echo "$sta: Not found!"
        fi
    done
    ;;
*)
    echo "\nUsage:  `basename $0`  [-d|-c|-v]\n"
    echo "        -d: returns the master Device Monitor"
    echo "        -c: returns the CSA server"
    echo "        -v: verbose report\n"
    ;;
esac
================ end of script file ===================

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: