<?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: sar -uq in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726056#M945874</link>
    <description>HP-UX mars B.11.11 U 9000/785 05/16/02&lt;BR /&gt;&lt;BR /&gt;19:17:24    %usr    %sys    %wio   %idle&lt;BR /&gt;         runq-sz %runocc swpq-sz %swpocc&lt;BR /&gt;19:17:25       0       0       0     100&lt;BR /&gt;             3.0      99     0.0       0&lt;BR /&gt;19:17:26       0       0       0     100&lt;BR /&gt;             1.0     100     0.0       0&lt;BR /&gt;&lt;BR /&gt;Average        0       0       0     100&lt;BR /&gt;Average      2.0     100     0.0       0&lt;BR /&gt;&lt;BR /&gt;The above is a sample of sar -uq 1 2 output. As you can see you need to do some filtering before you can get what you actually wanted because it has different info in the same column. How do you want the "one-line" output to look like. Give us an example ..</description>
    <pubDate>Fri, 17 May 2002 01:16:44 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-05-17T01:16:44Z</dc:date>
    <item>
      <title>sar -uq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726055#M945873</link>
      <description>Iwant to see the result of sar -uq 1 2 in one line &lt;BR /&gt;So I made this &lt;BR /&gt;sar -uq 1 2 |awk '{ print $0,$1,$2,$3,$4}'&lt;BR /&gt;But it give me wrong result &lt;BR /&gt;Do you have any idea or solutin ?&lt;BR /&gt;</description>
      <pubDate>Fri, 17 May 2002 01:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726055#M945873</guid>
      <dc:creator>chin hyeon jung</dc:creator>
      <dc:date>2002-05-17T01:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: sar -uq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726056#M945874</link>
      <description>HP-UX mars B.11.11 U 9000/785 05/16/02&lt;BR /&gt;&lt;BR /&gt;19:17:24    %usr    %sys    %wio   %idle&lt;BR /&gt;         runq-sz %runocc swpq-sz %swpocc&lt;BR /&gt;19:17:25       0       0       0     100&lt;BR /&gt;             3.0      99     0.0       0&lt;BR /&gt;19:17:26       0       0       0     100&lt;BR /&gt;             1.0     100     0.0       0&lt;BR /&gt;&lt;BR /&gt;Average        0       0       0     100&lt;BR /&gt;Average      2.0     100     0.0       0&lt;BR /&gt;&lt;BR /&gt;The above is a sample of sar -uq 1 2 output. As you can see you need to do some filtering before you can get what you actually wanted because it has different info in the same column. How do you want the "one-line" output to look like. Give us an example ..</description>
      <pubDate>Fri, 17 May 2002 01:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726056#M945874</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-17T01:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: sar -uq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726057#M945875</link>
      <description>hmmm... let me try.. don't have a system.. You may need to make some adjustments. I am using Chan's example&lt;BR /&gt;&lt;BR /&gt;sar -uq 1 2 |sed '/HP-UX/d'|awk '{ l = NR % 2 ; if (l) printf ("%s", $0) ;else print $0 }'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 17 May 2002 01:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726057#M945875</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-05-17T01:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: sar -uq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726058#M945876</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you wish to get the averages of -u and -q all on the same line, simply do this:&lt;BR /&gt;&lt;BR /&gt;# echo `sar -uq 1 2 | grep Average`&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 17 May 2002 01:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726058#M945876</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-05-17T01:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: sar -uq</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726059#M945877</link>
      <description>Hi (again),&lt;BR /&gt;&lt;BR /&gt;You may get a better output if you modify it like this.&lt;BR /&gt;&lt;BR /&gt;sar -uq 1 2 |sed '/HP-UX/d'|awk '{ l = NR % 2 ; if ( l = 1 ) printf ("%s", $0) ;else print $0 }' &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 17 May 2002 01:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-uq/m-p/2726059#M945877</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-05-17T01:55:36Z</dc:date>
    </item>
  </channel>
</rss>

