[
https://issues.apache.org/jira/browse/TRAFODION-3248?focusedWorklogId=187290&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-187290
]
ASF GitHub Bot logged work on TRAFODION-3248:
---------------------------------------------
Author: ASF GitHub Bot
Created on: 19/Jan/19 02:10
Start Date: 19/Jan/19 02:10
Worklog Time Spent: 10m
Work Description: CoderSong2015 commented on pull request #1761:
[TRAFODION-3248]provide more dcscheck option
URL: https://github.com/apache/trafodion/pull/1761#discussion_r249229654
##########
File path: core/sqf/sql/scripts/dcscheck
##########
@@ -171,17 +174,60 @@ if ( [ $sq_stat == 0 ] || [ $sq_stat == 1 ] ); then
fi
echo
fi
- echo -e "Process\t\tConfigured\tActual\t\tDown"
- echo -e "---------\t----------\t------\t\t----"
- echo -e
"DcsMaster\t$cfg_dcsmaster_cnt\t\t$actual_dcsmaster_cnt\t\t$down_dcsmaster_cnt"
- echo -e
"DcsServer\t$cfg_dcsserver_cnt\t\t$actual_dcsserver_cnt\t\t$down_dcsserver_cnt"
- echo -e "mxosrvr\t\t$cfg_mxo_cnt\t\t$act_mxo_cnt\t\t$down_mxo_cnt\n"
else
echo "DCS is not installed. Please install and configure DCS..."
exit 1
fi
else
echo "Trafodion is not started or is not operational..."
echo
+ exit 1
fi
+
+case $OPT_VALUE in
+ -m)
+ if [ -e $SQ_PDSH ]; then
+ STAT_CMD="$SQ_PDSH -w $activeMaster $jstatcmd -gc "
+ else
+ STAT_CMD=" $jstatcmd -gc "
+ fi
+ J_STATUS=`$STAT_CMD $activeDcsPid `
+ EC=`echo $J_STATUS | sed -n 1p | awk '{ print $20 }'`
+ EU=`echo $J_STATUS | sed -n 1p | awk '{ print $21 }'`
+ OC=`echo $J_STATUS | sed -n 1p | awk '{ print $22 }'`
+ OU=`echo $J_STATUS | sed -n 1p | awk '{ print $23 }'`
+ PERCENT_EU=$(echo "scale=2;$EU/$EC "| bc)
+ PERCENT_OU=$(echo "scale=2;$OU/$OC "| bc)
+
+ echo -e "Active DCSMaster VM status:"
+ echo -e "EC\tEU\tOC\tOU\tPERCENT_EU\tPERCENT_OU\t"
+ echo -e "$EC\t|$EU\t|$OC\t|$OU\t|$PERCENT_EU\t\t|$PERCENT_OU\t"
Review comment:
I think there is no need to expand the title headers because jdk command
'jstat' behaves as the same way.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 187290)
Time Spent: 20m (was: 10m)
> provide more dcscheck option
> ----------------------------
>
> Key: TRAFODION-3248
> URL: https://issues.apache.org/jira/browse/TRAFODION-3248
> Project: Apache Trafodion
> Issue Type: New Feature
> Components: connectivity-dcs
> Affects Versions: 2.4
> Reporter: haolin.song
> Assignee: haolin.song
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Providing more dcscheck option to get more information about dcs/mxosrvr
> status.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)