<?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: knowing physical memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220211#M327385</link>
    <description>This works even for a normal user:&lt;BR /&gt;&lt;BR /&gt;# echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will give you *all* details about the physical memory.&lt;BR /&gt;&lt;BR /&gt;Why do you need this?</description>
    <pubDate>Mon, 23 Jun 2008 05:16:49 GMT</pubDate>
    <dc:creator>Torsten.</dc:creator>
    <dc:date>2008-06-23T05:16:49Z</dc:date>
    <item>
      <title>knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220201#M327375</link>
      <description>hello experts..&lt;BR /&gt;&lt;BR /&gt;i just want to know whether a a normal user in HP UX having no sudo priviledges can see how much physical memory the system have ? if yes, whats the way to know that ?&lt;BR /&gt;&lt;BR /&gt;thanx in advance..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jun 2008 10:50:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220201#M327375</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-06-22T10:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220202#M327376</link>
      <description>i think there may be no such possibilities for doing such things until or unless he/she has some privileges on some system administration commands.</description>
      <pubDate>Sun, 22 Jun 2008 11:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220202#M327376</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-06-22T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220203#M327377</link>
      <description>Here are a couple of commands you can try as a normal user to se if they work&lt;BR /&gt;&lt;BR /&gt;dmesg |grep Physical&lt;BR /&gt;&lt;BR /&gt;or if ignite is installed&lt;BR /&gt;&lt;BR /&gt;print_manifest |grep â  i memory</description>
      <pubDate>Sun, 22 Jun 2008 11:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220203#M327377</guid>
      <dc:creator>George_Dodds</dc:creator>
      <dc:date>2008-06-22T11:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220204#M327378</link>
      <description>The last one is supposed to be &lt;BR /&gt;&lt;BR /&gt;print_manifest |grep -i memory&lt;BR /&gt;&lt;BR /&gt;It is doubtfull that a normal user will be able to run them, but you could try.</description>
      <pubDate>Sun, 22 Jun 2008 11:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220204#M327378</guid>
      <dc:creator>George_Dodds</dc:creator>
      <dc:date>2008-06-22T11:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220205#M327379</link>
      <description>both these commands :&lt;BR /&gt;&lt;BR /&gt;dmesg |grep Physical&lt;BR /&gt;print_manifest |grep -i memory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cannot be run by the normal user&lt;BR /&gt;&lt;BR /&gt;any other option ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jun 2008 11:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220205#M327379</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-06-22T11:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220206#M327380</link>
      <description>try &lt;BR /&gt;&lt;BR /&gt;swapinfo -at&lt;BR /&gt;&lt;BR /&gt;it shows physical memory as well as swap usage</description>
      <pubDate>Sun, 22 Jun 2008 11:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220206#M327380</guid>
      <dc:creator>George_Dodds</dc:creator>
      <dc:date>2008-06-22T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220207#M327381</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Rather than asking "how?" I'd would ask "why?".&lt;BR /&gt;&lt;BR /&gt;Why would a user need to know how much physical memory is on a server?  Given that any processes he runs will be fenced (limited) by kernel parameters that govern (for example) the maximum stack (maxssiz) and data (maxdsiz) sizes of a process, it would be much more meaningful to program knowing these limits.  As a normal user you can use 'ulimit' to display (and change the soft limit value).  See the 'sh-posix' manpages under 'ulimit'.&lt;BR /&gt;&lt;BR /&gt;In answer to the original question of how can a normal user know how much physical memory a system has, the answer is *ask* the system administrator.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jun 2008 12:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220207#M327381</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-22T12:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220208#M327382</link>
      <description>Indeed i hope your just playing on your test box.&lt;BR /&gt;&lt;BR /&gt;Remember a little bit of knowledge can be dangerous ;-)</description>
      <pubDate>Sun, 22 Jun 2008 12:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220208#M327382</guid>
      <dc:creator>George_Dodds</dc:creator>
      <dc:date>2008-06-22T12:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220209#M327383</link>
      <description>&amp;gt;so the final conclusion is that the normal user can not view the physical memory&lt;BR /&gt;&lt;BR /&gt;Well, "swapinfo -tam" will give a good estimate of it.  Also, I'm not sure whether pstat(2) will provide this info.  It gives the VM stats.</description>
      <pubDate>Sun, 22 Jun 2008 14:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220209#M327383</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-22T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220210#M327384</link>
      <description>Physical memory is reported in the physical_memory field [in pages] from the pst_static structure returned by pstat_getstatic().</description>
      <pubDate>Sun, 22 Jun 2008 22:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220210#M327384</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-06-22T22:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220211#M327385</link>
      <description>This works even for a normal user:&lt;BR /&gt;&lt;BR /&gt;# echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will give you *all* details about the physical memory.&lt;BR /&gt;&lt;BR /&gt;Why do you need this?</description>
      <pubDate>Mon, 23 Jun 2008 05:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220211#M327385</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-06-23T05:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220212#M327386</link>
      <description>Thank you Torsten..&lt;BR /&gt;&lt;BR /&gt;yes, this has worked...&lt;BR /&gt;&lt;BR /&gt;echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this was required to know the memory of all the servers to prepare a report..&lt;BR /&gt;&lt;BR /&gt;excellent option...&lt;BR /&gt;&lt;BR /&gt;thank you very much</description>
      <pubDate>Mon, 23 Jun 2008 13:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220212#M327386</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-06-23T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220213#M327387</link>
      <description>You can obtain CPU speed and RAM without CSTM or root access as described by Tom&lt;BR /&gt; Ferony (under Nancy Rippey's login) here:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 23 Jun 2008 13:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220213#M327387</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-06-23T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220214#M327388</link>
      <description>From Glance, we can also see physical memory size.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 23 Jun 2008 15:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220214#M327388</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-06-23T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220215#M327389</link>
      <description>Yes. 'glance -m' will show u the physical memory for a user.</description>
      <pubDate>Tue, 24 Jun 2008 06:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220215#M327389</guid>
      <dc:creator>jolight</dc:creator>
      <dc:date>2008-06-24T06:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220216#M327390</link>
      <description>I think you want to do some scripting to collect this information from many servers, right?&lt;BR /&gt;&lt;BR /&gt;IMHO all interactive tools won't help you here, so go with the "cstm" command I gave you &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;if you have Integrity Servers or HP9000 (with 11.31) you can also use&lt;BR /&gt;&lt;BR /&gt;/usr/contrib/bin/machinfo&lt;BR /&gt;&lt;BR /&gt;and grep for "Memory". this should also work for non-root users.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;# /usr/contrib/bin/machinfo&lt;BR /&gt;CPU info:&lt;BR /&gt; 64 Intel(R) Itanium 2 9000 series processors (1.6 GHz, 18 MB)&lt;BR /&gt;          533 MT/s bus, CPU version C2&lt;BR /&gt;          128 logical processors (2 per socket)&lt;BR /&gt;&lt;BR /&gt;Memory: 981492 MB (958.5 GB)&lt;BR /&gt;&lt;BR /&gt;...</description>
      <pubDate>Tue, 24 Jun 2008 06:59:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220216#M327390</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-06-24T06:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220217#M327391</link>
      <description>Hello Torsten..&lt;BR /&gt;&lt;BR /&gt;your command echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm &lt;BR /&gt;&lt;BR /&gt;worked fine for me, but i was wondering to know &lt;BR /&gt;that this command takes the output from cstm anyway, which does not run from normal user, but this command can be run by normal user, how does this become possible.&lt;BR /&gt;&lt;BR /&gt;could you throw some light on this ?&lt;BR /&gt;&lt;BR /&gt;thanking you...</description>
      <pubDate>Sat, 28 Jun 2008 17:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220217#M327391</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-06-28T17:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220218#M327392</link>
      <description>&amp;gt;which does not run from normal user, but this command can be run by normal user, how does this become possible.&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you are really asking?&lt;BR /&gt;Anyone can get the memory size, if they write a program calling pstat(2) as Don said.&lt;BR /&gt;Torsten's cstm command also gets this and more, probably because it is a setid program.</description>
      <pubDate>Sat, 28 Jun 2008 19:44:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220218#M327392</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-28T19:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: knowing physical memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220219#M327393</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; which does not run from normal user, but this command can be run by normal user, how does this become possible.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: Anyone can get the memory size, if they write a program calling pstat(2) as Don said.&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: Torsten's cstm command also gets this and more, probably because it is a setid program.&lt;BR /&gt;&lt;BR /&gt;No, 'cstm' isn't a setuid executable.  I suspect that this executable is using the 'pstat()' system call, though without access to the HP source code I can't be absolutely positive.  This would be a logical expectation, however.&lt;BR /&gt;&lt;BR /&gt;As an aside, when the 'setuid' bit is set for a binary, the code runs as the user that owns the binary, inheriting the privileges of the owning, not running user account.  A classic example is '/usr/bin/passwd' command which is owned by 'root' and thus when run by a normal users has 'root' privileges.  The 'chmod' command is used to set the 'setuid' bit.  For more information see the manpages for 'chmod(1)' and 'chmod(2)'.&lt;BR /&gt;&lt;BR /&gt;As for 'cstm', as Torsten showed, its full path is 'Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; which does not run from normal user, but this command can be run by normal user, how does this become possible.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: Anyone can get the memory size, if they write a program calling pstat(2) as Don said.&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: Torsten's cstm command also gets this and more, probably because it is a setid program.&lt;BR /&gt;&lt;BR /&gt;No, 'cstm' isn't a setuid executable.  I suspect that this executable is using the 'pstat()' system call, though without access to the HP source code I can't be absolutely positive.  This would be a logical expectation, however.&lt;BR /&gt;&lt;BR /&gt;As an aside, when the 'setuid' bit is set for a binary, the code runs as the user that owns the binary, inheriting the privileges of the owning, not running user account.  A classic example is '/usr/bin/passwd' command which is owned by 'root' and thus when run by a normal users has 'root' privileges.  The 'chmod' command is used to set the 'setuid' bit.  For more information see the manpages for 'chmod(1)' and 'chmod(2)'.&lt;BR /&gt;&lt;BR /&gt;As for 'cstm', if you look further, you will see that '/usr/sbin/cstm' is really just a shell script wrapper that is a convenience to invoke:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/stm/ui/bin/stm -c  $* &lt;BR /&gt;&lt;BR /&gt;All the script is doing is calling the (c)haracter interface ('-c') to 'stm' passing along any and all arguments ($*) you passed to the wrapper when you invoked it.&lt;BR /&gt;&lt;BR /&gt;Similar wrappers exist for the X-window based use of 'stm', via:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/xstm&lt;BR /&gt;&lt;BR /&gt;...and for the menu-based interface to 'stm':&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/mstm&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Jun 2008 20:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/knowing-physical-memory/m-p/4220219#M327393</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-28T20:24:28Z</dc:date>
    </item>
  </channel>
</rss>

