Catalina,
Look at the command at the end
of the following script.
The fold command controls the
number of characters to display per line, in this case 30.
The purpose of this script was
to prevent a flood of red beeping windows
-bg sets the background color
to hotpink
Note: the single tics are
back-ticks (on the tilde key) not single quotes!
#! /usr/bin/ksh # #
pingfail agent interface # Written By: Don Davis
12/01/95 # This script will limit the number ov RED BEEPING
Xwindows to
ONE ##################################################################### #
Revision Record (Latest Revisions at
Top) # 03/19/98 DWD Modified for Tivoli NV
Admin
Course ##################################################################### export
DISPLAY=`hostname`:0
sleep 3 # CHECK NUMBER OF BEEPS ALREADY ON
SCREEN if [ `ps -ef|grep -v grep|grep -c ovxbeep` -gt 0 ]
then exit fi
/usr/OV/bin/ovxbeep -xrm XNm*FontList:9x15bold -bg hotpink "`echo A CRITICAL EVENT HAS
OCCURRED PLEASE CHECK THE EVENT CARDS! | fold -s -w 30`"
& exit 0
Best
regards,
Don Davis
To All:
AIX 4.3.3 Netview 6.0.2
Is it possible to change the window size and number of lines
in the message of the popup window?
I changed the fonts and title bar in
/usr/OV/app-defaults/Xnm but can not find where to change the window
size.
I also tried setting the parameter -geometry WWWxLLLL but it
didnot work. The font also seems to remain the same.
I tried using the \n in the message but it did not
work. Any ideas? see below (I am using Exceed)
port=`echo $2 | tr '/' '.'` portname=`/usr/OV/bin/snmpget
$1 .1.3.6.1.4.1.9.5.1.4.1.1.4.$port` #echo 'Port name ='
${portname##*:} name=${portname##*:} prefix=`echo $name | cut -c
1-3` if test "$prefix" = "NET"
then /usr/OV/bin/ovxbeep -b 10 -geometry
100x50-0-0 -display CMartinez:0.0 "$1 $name is
DOWN"& echo $1 $name | mail -s "CORE
DEVICE DOWN" CMartinez
exit fi exit 0
Catalina
------------------------------------------------------------------------------
This electronic mail and any files transmitted with it are confidential and are intended solely for the use of individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the electronic mail to the intended recipient, be advised that you have received this electronic mail in error and that any use, dissemination, forwarding, printing, or copying of this electronic mail is strictly prohibited. If you have received this electronic mail in error, please immediately notify the sender by return mail.
==============================================================================
|