Operating System - HP-UX
1831079 Members
2456 Online
110019 Solutions
New Discussion

how to get info about memory ?

 

how to get info about memory ?

Hello,

I am interested in getting the following info:
- phisical RAM total and available( or used )
- virtual RAM -- -----------------------
- swap - ---------------------------
- shared ----------------------------
- buffers ---------------------------
- cache ----------------------------

(without looking at top, swapinfo requires root privileges)
10 REPLIES 10
Con O'Kelly
Honored Contributor

Re: how to get info about memory ?

Hi

Without root its a bit more difficult.

If you have glance installed you can use this to get alot of the info you are after.
Options:
m for memory
w for swap
t for tables (buffer, shared mem etc)
? for list of all options.

Also 'top' doesn't usually require root priveleges.

Alternatively look at using sudo to give you access to run commands with root priveleges.

Cheers
Con

Re: how to get info about memory ?

Do you know some files from where to read this info ?
Any other command witch will do this ?
Ollie R
Respected Contributor

Re: how to get info about memory ?

Hi,

You could try running "dmesg", but you again need root privileges to do this.

Alternatively you could read the file "/var/adm/syslog/syslog.log" which contains most of the information you require. You should be able to read this file as a non-root user.

Hope this helps,

Ollie.
To err is human but to not award points is unforgivable
Con O'Kelly
Honored Contributor

Re: how to get info about memory ?

There is no file as such that stores all this info. You really need root access to get all this info or glance.
For Physical RAM you should be able to read the /var/adm/syslog/syslog.log file
Look for Memory information.

Cheers
Con

KCS_1
Respected Contributor

Re: how to get info about memory ?

Hi,

you can see the informations by the Glance which is a purchase product.

After installed,execute then you will get.





Best Regards.


- Patrick
Easy going at all.
RolandH
Honored Contributor

Re: how to get info about memory ?

For Memory

cat /var/adm/syslog/syslog.log|grep Phy


For buffer activity:
sar -b 5 5 (5 intervals/every 5th second)

For swap activity:
sar -w 5 5 (5 intervals/every 5th second)

But, I think for a normal user it is better to use glance. It is more easy to bring all this values in a relation to each other.

Regards
Roland




Sometimes you lose and sometimes the others win

Re: how to get info about memory ?

I am working on a project witch must be able to reveal all those information.( the server don't need to install any aditional software)
Geoff Wild
Honored Contributor

Re: how to get info about memory ?

Why don't you run something like sysinfo204 or SysAudit or cfg2html?

Then, just make the output files available to all users...

sysinfo204 attached...

http://www.backupcentral.com/sysaudit.html

http://come.to/cfg2html


Rgds...Geoff




Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
RolandH
Honored Contributor

Re: how to get info about memory ?

Hi,

perhaps this thread can help you

--> http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xec87227a6ab4d711900a0090279cd0f9,00.html


Roland


Do not forget to assign points :-}
Sometimes you lose and sometimes the others win
Srinivas Thokala_1
Frequent Advisor

Re: how to get info about memory ?

Use
#grep -i physical /var/adm/syslog/syslog.log
and look for Physical.

Srini
Srinivas Thokala