<?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: Script to check the memory and process utilization in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850068#M93365</link>
    <description>hi ste    ,&lt;BR /&gt;&lt;BR /&gt;if want to see memory utilization in %, then what is the option&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
    <pubDate>Fri, 22 Nov 2002 11:48:28 GMT</pubDate>
    <dc:creator>Chakravarthi</dc:creator>
    <dc:date>2002-11-22T11:48:28Z</dc:date>
    <item>
      <title>Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850058#M93355</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Is there any script which monitors a specific process, and informs the user about the CPU and memory utilization.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
      <pubDate>Fri, 22 Nov 2002 10:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850058#M93355</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T10:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850059#M93356</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use top ( free ) or glance ( evaluation version 60 days free) . &lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 22 Nov 2002 10:29:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850059#M93356</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2002-11-22T10:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850060#M93357</link>
      <description>I want a report for every 30 minutes, and this should be automated</description>
      <pubDate>Fri, 22 Nov 2002 10:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850060#M93357</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T10:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850061#M93358</link>
      <description>You can use:&lt;BR /&gt;&lt;BR /&gt;# glance -G&lt;BR /&gt;&lt;BR /&gt;to report on a specific process.&lt;BR /&gt;&lt;BR /&gt;Chuck J</description>
      <pubDate>Fri, 22 Nov 2002 10:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850061#M93358</guid>
      <dc:creator>Chuck J</dc:creator>
      <dc:date>2002-11-22T10:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850062#M93359</link>
      <description>&lt;BR /&gt;Put the following lines into a script, make it executable, and run it with an argument of the pid you want, it then shows you what you want.&lt;BR /&gt;&lt;BR /&gt;echo "PID    USER     CPU%  MEM_SIZE COMMAND"&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;   UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o comm |grep $1&lt;BR /&gt;   sleep 1&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2002 10:34:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850062#M93359</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-11-22T10:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850063#M93360</link>
      <description>Hi stefan,&lt;BR /&gt;&lt;BR /&gt;Script doesnt show me all the process, i want  to see the process which are started on command line,, they are not visible,&lt;BR /&gt;&lt;BR /&gt;--chakri</description>
      <pubDate>Fri, 22 Nov 2002 10:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850063#M93360</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T10:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850064#M93361</link>
      <description>your initial question said monitor a specific process - which the script I supplied will do.&lt;BR /&gt;&lt;BR /&gt;So now you want to monitor all processes ? if so remove from the script the bit;&lt;BR /&gt; | grep $1&lt;BR /&gt;&lt;BR /&gt;now it will show all processes every 1 second (you can easily adjust the interval by modifying the sleep value from 1 to whatever you want). Now when you run the script you can simply pipe it into grep for what you want (either a pid, or userid or command).&lt;BR /&gt;&lt;BR /&gt;eg;  ./&amp;lt;script&amp;gt; | grep &lt;PID or="" user="" or="" command=""&gt;&lt;BR /&gt;&lt;BR /&gt;The script uses ps -e which shows ALL processes running at the instant it is run so you should be able to grep to find what you want from the output.&lt;BR /&gt;&lt;/PID&gt;</description>
      <pubDate>Fri, 22 Nov 2002 10:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850064#M93361</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-11-22T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850065#M93362</link>
      <description>i corrected your script,, i can see them if i use -ef option, but when i use your script they are not visible&lt;BR /&gt;&lt;BR /&gt;can you give me proper command syntax to use.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
      <pubDate>Fri, 22 Nov 2002 10:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850065#M93362</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850066#M93363</link>
      <description>Im not sure what you mean, but try changing the UNIX95 line to;&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o args&lt;BR /&gt;&lt;BR /&gt;If this still doenst do what you want please provide examples.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2002 11:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850066#M93363</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-11-22T11:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850067#M93364</link>
      <description>thanks &lt;BR /&gt;&lt;BR /&gt;args is working fine</description>
      <pubDate>Fri, 22 Nov 2002 11:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850067#M93364</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850068#M93365</link>
      <description>hi ste    ,&lt;BR /&gt;&lt;BR /&gt;if want to see memory utilization in %, then what is the option&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri</description>
      <pubDate>Fri, 22 Nov 2002 11:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850068#M93365</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T11:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850069#M93366</link>
      <description>&lt;BR /&gt;for an individual user what do you mean by %, % of what ? total memory in use on the server?&lt;BR /&gt;&lt;BR /&gt;Heres a script to show total memory and free% for the whole server;&lt;BR /&gt;&lt;BR /&gt;let x=$(grep -i physical: /var/adm/syslog/OLDsyslog.log|tail -1|awk '{print $2}')/1048&lt;BR /&gt;let z=$(vmstat|tail -1|awk '{print $5}')*4096;let z=$z/1000000&lt;BR /&gt;let free=100000/$x*$z&lt;BR /&gt;let free=$free/1000&lt;BR /&gt;let free=100-$free&lt;BR /&gt;echo "$x Mb physical memory \n$z Mb memory free \n$free % used"&lt;BR /&gt;&lt;BR /&gt;To do it for an individual user is going to take some more scripting. Is that what you want ?&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Nov 2002 12:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850069#M93366</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-11-22T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script to check the memory and process utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850070#M93367</link>
      <description>I WANT TO SEE HOW MUCH MEMORY THE PROCESS IS TAKING IN % LIKE CPU STATS</description>
      <pubDate>Fri, 22 Nov 2002 12:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-check-the-memory-and-process-utilization/m-p/2850070#M93367</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-11-22T12:27:37Z</dc:date>
    </item>
  </channel>
</rss>

