<?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: Monitoring in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575869#M858446</link>
    <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;what are you trying to monitor exactly?&lt;BR /&gt;&lt;BR /&gt;Anyway you could use top -d 1 -f /tmp/top.out&lt;BR /&gt;which would print 1 display of the top output.&lt;BR /&gt;&lt;BR /&gt;Also you could use ps (with the XPG4 environments)&lt;BR /&gt;&lt;BR /&gt;eg:&lt;BR /&gt;To sort the top processes based on the cpu usage&lt;BR /&gt;UNIX95= ps -e -o pcpu -o ruser,args |sort -rn |grep -v %CPU&lt;BR /&gt;&lt;BR /&gt;To monitor the process based on the memory sizes&lt;BR /&gt;UNIX95= ps -e -o vsz=Kbytes -o ruser,pid,ppid,args |sort -rnk2&lt;BR /&gt;&lt;BR /&gt;you could put this as aliases in your .kshrc&lt;BR /&gt;eg:&lt;BR /&gt;pscpu="UNIX95= ps -e -o pcpu -o ruser,args |sort -rn |grep -v %CPU"&lt;BR /&gt;psmem="UNIX95= ps -e -o vsz=Kbytes -o ruser,pid,ppid,args |sort -rnk2"&lt;BR /&gt;&lt;BR /&gt;Look at the man pages of ps for more information.&lt;BR /&gt;&lt;BR /&gt;-Ramesh</description>
    <pubDate>Wed, 05 Sep 2001 19:45:03 GMT</pubDate>
    <dc:creator>linuxfan</dc:creator>
    <dc:date>2001-09-05T19:45:03Z</dc:date>
    <item>
      <title>Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575865#M858442</link>
      <description>Hi guys....&lt;BR /&gt;&lt;BR /&gt;I've a little probleme here, I want to monitor the processes that are running on my HP-UX 10.20 box... &lt;BR /&gt;&lt;BR /&gt;I try to use "top" but when I put it in a logfile, I can't see it normaly, it seems that it displays the screen caracters.... I try to do a script with the command "ps" but it some kind of tricky when it come with the grep and everything... &lt;BR /&gt;&lt;BR /&gt;I was wondering if there's an utility that I can use to do it, or if some body have a command line to do the job... &lt;BR /&gt;&lt;BR /&gt;thanx...&lt;BR /&gt;Jonathan</description>
      <pubDate>Wed, 05 Sep 2001 19:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575865#M858442</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2001-09-05T19:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575866#M858443</link>
      <description>Hi Jonathan:&lt;BR /&gt;&lt;BR /&gt;You can do a top -f myfile which outputs to myfile and exits. There are no terminal sequences in this output.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Wed, 05 Sep 2001 19:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575866#M858443</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-09-05T19:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575867#M858444</link>
      <description>Hi Jonathan:&lt;BR /&gt;&lt;BR /&gt;'top' has a little known, largely undocumented option to do exactly what you want.  To capture, for instance, one screen view into a file, use the '-f' option like this:&lt;BR /&gt;&lt;BR /&gt;# top -d 1 -f /tmp/top.out&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Sep 2001 19:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575867#M858444</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-09-05T19:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575868#M858445</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The output of ps -ef has 13 columns:-&lt;BR /&gt;&lt;BR /&gt;ps -ef | awk '{print $X,$Y,$z }' &amp;gt; output file&lt;BR /&gt;&lt;BR /&gt;Change the X,Y and Z to the columns that you want.&lt;BR /&gt;&lt;BR /&gt;if you wish to get ps output for certain users then:-&lt;BR /&gt;&lt;BR /&gt;ps -e | grep &lt;WHAT&gt; | awk '{print '{$X,$y,$z}' &amp;gt; output file&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;&lt;/WHAT&gt;</description>
      <pubDate>Wed, 05 Sep 2001 19:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575868#M858445</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-09-05T19:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575869#M858446</link>
      <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;what are you trying to monitor exactly?&lt;BR /&gt;&lt;BR /&gt;Anyway you could use top -d 1 -f /tmp/top.out&lt;BR /&gt;which would print 1 display of the top output.&lt;BR /&gt;&lt;BR /&gt;Also you could use ps (with the XPG4 environments)&lt;BR /&gt;&lt;BR /&gt;eg:&lt;BR /&gt;To sort the top processes based on the cpu usage&lt;BR /&gt;UNIX95= ps -e -o pcpu -o ruser,args |sort -rn |grep -v %CPU&lt;BR /&gt;&lt;BR /&gt;To monitor the process based on the memory sizes&lt;BR /&gt;UNIX95= ps -e -o vsz=Kbytes -o ruser,pid,ppid,args |sort -rnk2&lt;BR /&gt;&lt;BR /&gt;you could put this as aliases in your .kshrc&lt;BR /&gt;eg:&lt;BR /&gt;pscpu="UNIX95= ps -e -o pcpu -o ruser,args |sort -rn |grep -v %CPU"&lt;BR /&gt;psmem="UNIX95= ps -e -o vsz=Kbytes -o ruser,pid,ppid,args |sort -rnk2"&lt;BR /&gt;&lt;BR /&gt;Look at the man pages of ps for more information.&lt;BR /&gt;&lt;BR /&gt;-Ramesh</description>
      <pubDate>Wed, 05 Sep 2001 19:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575869#M858446</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-09-05T19:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575870#M858447</link>
      <description>thanks a lot guys... top work perfectly with the -f untold option!! :)&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;jonathan</description>
      <pubDate>Thu, 06 Sep 2001 12:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring/m-p/2575870#M858447</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2001-09-06T12:50:34Z</dc:date>
    </item>
  </channel>
</rss>

