[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference abbott::mailworks-unix

Title:Mailworks-unix
Notice:V2.0.4 now available -- see Note 4.375
Moderator:TAMARA::NEUMAN::Neumann
Created:Wed Jun 02 1993
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1384
Total number of notes:5851

1323.0. "Conunting TL-DECnet-connections ?" by ASHAM::H_ANDERSSON () Tue Dec 03 1996 03:58

T.RTitleUserPersonal
Name
DateLines
1323.1Found the way....ASHAM::H_ANDERSSONTue Dec 10 1996 05:309
1323.2check for DECnet links to A1M$MUAS tooKOALA::MANSURJoe Mansur - MailWorksWed Dec 11 1996 11:488
1323.3Location of script?KERNEL::TALBOTTrevor TalbotTue Jan 28 1997 10:097
Hi,

	Please can you point me to where the usage_msc.sh resides?

regards,

Trev
1323.4KOALA::ANKANIdle words waste timeTue Jan 28 1997 11:033
It's in:

/usr/opt/DMW/unsupported/usage_mcs.sh
1323.5:-)KERNEL::TALBOTTrevor TalbotWed Jan 29 1997 06:176
O.k.

	So can you post the contents of it?


-Trev
1323.6/usr/opt/DMW/unsupported/usage_mcs.shKOALA::PAWELKOMon Feb 03 1997 09:4862
#!/bin/csh
#
# Copyright (c) Digital Equipment Corporation, 1992, 1993, 1994, 1995
# All Rights Reserved.  Unpublished rights reserved
# under the copyright laws of the United States.
#
# The software contained on this media is proprietary
# to and embodies the confidential technology of
# Digital Equipment Corporation.  Possession, use,
# duplication or dissemination of the software and
# media is authorized only pursuant to a valid written
# license from Digital Equipment Corporation.
#
# RESTRICTED RIGHTS LEGEND   Use, duplication, or
# disclosure by the U.S. Government is subject to
# restrictions as set forth in Subparagraph (c)(1)(ii)
# of DFARS 252.227-7013, or in FAR 52.227-19, as
# applicable.
#
# Script: usage_mcs.sh

set top = `pwd`
set opt = "/var/opt/DMW"
set run_tr = 1
set run_sh = $run_tr


#usage_mcs.sh - script for tracking system usage for users connected to mcs
#               server by a client. Check results of Virtual Memory size
#               and number of users for any increases.

#               Continue to check after waiting for ~ 30 min.

if( -f mcsrun.log) then
        rm mcsrun.log
endif

        echo "Host: " `uname -n` "   Date: " `date ` >> mcsrun.log
        echo "" >> mcsrun.log
while ( "$run_sh" == "$run_tr" )
        set psmc = `ps auxw | grep -e "bin/mcs" | grep -v "grep" `
        echo $psmc | awk  ' {print "ps: mcs - VSZ: "  $5  "   RSS: " $6; } '\
         >> mcsrun.log
        set psms = `ps auxw | grep -e "bin/mss" | grep -v "grep" `
        echo $psms | awk  ' {print "ps: mss - VSZ: "  $5  "   RSS: " $6; } '\
         >> mcsrun.log

        echo "" >> mcsrun.log
        set clnt = `netstat -n |grep 6161 | wc -l`
        echo " Number of Clients:  $clnt " "  Time: " `date +"%r"` >> mcsrun.log

        echo "" >> mcsrun.log
        vmstat  >> mcsrun.log

        set sl = 1
        while ( $sl < 31 )
        sleep 60
        @ sl++
        end

        /usr/bin/echo "\n*********************************\n" >> mcsrun.log
end