<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Monitor CPU usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745946#M256887</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;You can take look these threads, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=888142" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=888142&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=884510" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=884510&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=535811&amp;amp;admit=-682735245+1141728940007+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=535811&amp;amp;admit=-682735245+1141728940007+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Tue, 07 Mar 2006 05:55:50 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-03-07T05:55:50Z</dc:date>
    <item>
      <title>Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745944#M256885</link>
      <description>I need to monitor the CPU usage of the server by writing some shell script.  May I know what is the best approach?  Should I just use SAR comman and take the average</description>
      <pubDate>Tue, 07 Mar 2006 05:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745944#M256885</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2006-03-07T05:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745945#M256886</link>
      <description>Shalom kholit,&lt;BR /&gt;&lt;BR /&gt;Pull the sar command out of this scriptset and you are done:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/system.perf.sh" target="_blank"&gt;http://www.hpux.ws/system.perf.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 07 Mar 2006 05:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745945#M256886</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-07T05:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745946#M256887</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;You can take look these threads, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=888142" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=888142&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=884510" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=884510&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=535811&amp;amp;admit=-682735245+1141728940007+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=535811&amp;amp;admit=-682735245+1141728940007+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 07 Mar 2006 05:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745946#M256887</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-07T05:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745947#M256888</link>
      <description>I have written this script but somehow it doesn't work&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;$IDLE=`sar -u 3 5 | grep Average | awk '{print $5}'`&lt;BR /&gt;if [ "$IDLE" -lt "10" ]&lt;BR /&gt;then&lt;BR /&gt;        echo "Warning CPU high"&lt;BR /&gt;fi&lt;BR /&gt;~&lt;BR /&gt;"cpu_mon" 7 lines, 125 characters &lt;BR /&gt;root@PUISCEDB31 # ./cpu_mon&lt;BR /&gt;./cpu_mon: line 3: =91: command not found&lt;BR /&gt;./cpu_mon: line 4: [: : integer expression expected&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Mar 2006 06:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745947#M256888</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2006-03-07T06:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745948#M256889</link>
      <description>DonÂ´t put value for variable as follow:&lt;BR /&gt;&lt;BR /&gt;$IDLE=`sar -u 3 5 | grep Average | awk '{print $5}'`&lt;BR /&gt;&lt;BR /&gt;Correct is:&lt;BR /&gt;&lt;BR /&gt;IDLE=`sar -u 3 5 | grep Average | awk '{print $5}'`&lt;BR /&gt;&lt;BR /&gt;You use $IDLE instead only IDLE for variable.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Mar 2006 07:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745948#M256889</guid>
      <dc:creator>Carlos Roberto Schimidt</dc:creator>
      <dc:date>2006-03-07T07:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745949#M256890</link>
      <description>Hi,&lt;BR /&gt;yoy can use glance in adviser_mode to collect data about resources usage including CPU.&lt;BR /&gt;This is a little script I use for thi scope.&lt;BR /&gt;(It collects CPU, memory, disk and swap)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GlnCmd=/opt/perf/bin/glance&lt;BR /&gt;WrkDir=&lt;PUT your="" work="" directory="" here=""&gt;&lt;BR /&gt;GlnSyn=$WrkDir/gln_syntax_file&lt;BR /&gt;GlnOpt="-j60 -adviser_only -nosort -iterations 2 -bootup -syntax $GlnSyn"&lt;BR /&gt;ResLog=$(date +%Y%m)-res-cop.log&lt;BR /&gt;#echo -- MM/DD/YY HH:MM:SS CPU DSK MEM SWA&lt;BR /&gt;$GlnCmd $GlnOpt 2&amp;gt;/dev/null |tail +2 &amp;gt;&amp;gt;$WrkDir/../dat/$ResLog&lt;BR /&gt;&lt;BR /&gt;cat $WrkDir/gln_syntax_file&lt;BR /&gt;print "-- ", &lt;BR /&gt;      gbl_statdate, &lt;BR /&gt;      " ", &lt;BR /&gt;      gbl_stattime, &lt;BR /&gt;      " ", &lt;BR /&gt;      gbl_cpu_total_util|3|0, &lt;BR /&gt;      " ", &lt;BR /&gt;      gbl_disk_util_peak|3|0, &lt;BR /&gt;      " ", &lt;BR /&gt;      gbl_mem_util|3|0, &lt;BR /&gt;      " ", &lt;BR /&gt;      gbl_swap_space_util|3|0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;&lt;/PUT&gt;</description>
      <pubDate>Wed, 08 Mar 2006 04:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745949#M256890</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-03-08T04:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745950#M256891</link>
      <description>Hi,&lt;BR /&gt;please, remember to assign point who spent time and affort helping you. &lt;BR /&gt;It's only a bit thing but really appreciated.&lt;BR /&gt;Art</description>
      <pubDate>Fri, 10 Mar 2006 04:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-cpu-usage/m-p/3745950#M256891</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-03-10T04:34:16Z</dc:date>
    </item>
  </channel>
</rss>

