Forum Replies Created
Viewing 1 replies (of 1 total)
-
AuthorReplies
-
Here is a unix/linux KSH script that will shutdown everything, all processes all sites.
Change the following two lines in the code to your system
export QUOVADX_INSTALL_DIR=/hci/cis5.8
HCIROOT=/hci/cis5.8/integrator#!/bin/ksh # History: # USAGE:ksh z_ShutDown.sh export QUOVADX_INSTALL_DIR=/hci/cis5.8 HCIROOT=/hci/cis5.8/integrator serverIni="$HCIROOT/server/server.ini" wSites=<code>cat $serverIni | grep "environs="</code> wSites=<code>echo $wSites | cut -c 10-10000</code> sites=<code>echo $wSites | sed 's/;/ /g'</code> for sitePath in $sites do if [[ -d $sitePath ]] then site=<code>echo $sitePath | cut -d'/' -f5</code> echo $site date=<code>date</code> # Set Site eval <code>$HCIROOT/sbin/hcisetenv -site ksh $site</code> hcisitectl -S #Get process names process_names=<code>cat $HCISITEDIR/NetConfig | grep process | sort -n | awk '{print $2}'</code> # Loop through the Processes/Threads #for thread in $thread_names for process in $process_names do hcienginestop -p $process if [[ $site == "eogh_t" && ( $process != "tst" || $process != "test" ) ]] then echo "start Process: $process" #hcienginerun -p $process fi #msg_ct_in=<code>hcimsiutil -dd $thread | grep "Msgs In" | awk '{print $4}'</code> #site_msg_ct_in=<code>expr $site_msg_ct_in + $msg_ct_in</code> #sg_ct_out=<code>hcimsiutil -dd $thread | grep "Msgs Out" | awk '{print $4}'</code> #site_msg_ct_out=<code>expr $site_msg_ct_out + $msg_ct_out</code> #echo "$site $thread $msg_ct_in $msg_ct_out" #total_msg_ct_in=<code>expr $total_msg_ct_in + $site_msg_ct_in</code> #total_msg_ct_out=<code>expr $total_msg_ct_out + $site_msg_ct_out</code> done hcisitectl -K echo "**** SITE $site DONE" fi hciss -k h done echo "**** ALL DONE" exit 0
-
AuthorReplies
Viewing 1 replies (of 1 total)