Need Generic command for Memory usuage on Linux and Solaris


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need Generic command for Memory usuage on Linux and Solaris
# 1  
Old 06-05-2017
Tools Need Generic command for Memory usuage on Linux and Solaris

Hi,

I m using the below commands to find out the RAM and SWAP Memory usage on Linux.

Code:
free -m

while I m using the below for Solaris

Code:
prstat -cZ 1 1 

Is there a generic command that I can used for both Linux and Solaris to get RAM and SWAP memory usage ?
# 2  
Old 06-05-2017
Hello mohtashims,

Could you please try top command and let us know if this helps you.

Thanks,
R. Singh
# 3  
Old 06-05-2017
Tools

Quote:
Originally Posted by RavinderSingh13
Hello mohtashims,

Could you please try top command and let us know if this helps you.

Thanks,
R. Singh
I do not wish to use third party tools like top.

Is there another common tool trick to obtain this information on both Solaris and Linux.
# 4  
Old 06-05-2017
System memory measurement is different on each OS.
If you want to measure virtual memory (RAM + swap, where alert thresholds make sense, in contrast to RAM alone and swap alone) then you can use the vmem.sh from my Nagios plugins for all LUnix.
If you don't have Nagios then you'll want to tweak the script output for your needs.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Do we have generic solution get process start time in AIX & Linux

I wish to get the process start time on AiX and Linux using the same command / script. I'm able to get the process start time in Linux using the below command: cat /proc/<pid>/stat | grep Modify The same does not work for AiX 6.1 systems. Can you please let me know the command to get... (4 Replies)
Discussion started by: mohtashims
4 Replies

2. Shell Programming and Scripting

Need generic command to get complete running process details

I am on SunOS and Linux I need generic command to get complete process details from which i will eventually extract socket details (listen address and port) ps -ef | ggrep -i server | ggrep -i mydomaindoes not yield a process that should have both the grep entries along with the listen... (8 Replies)
Discussion started by: mohtashims
8 Replies

3. Shell Programming and Scripting

Need Generic command for disk space usage

Given this directory /web I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ? The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux. My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Discussion started by: mohtashims
5 Replies

4. Shell Programming and Scripting

Generic command for CPU info

Dear all, Is there any generic command working on all Unix listing the CPU of a server? I found different command line per OS but I am looking for a more generic one. Thanks for your answer. (5 Replies)
Discussion started by: sgoiffon
5 Replies

5. UNIX and Linux Applications

Solaris & Linux memory stress test?

I'm looking for a script or some other application that will use up a lot of memory on a Solaris or Linux server, in order to test a monitoring application. So far I have found a script that's good for CPU usage but it does nothing for memory. I have also tried the application called 'stress'... (0 Replies)
Discussion started by: Kraas
0 Replies

6. Solaris

Memory usuage per zone in solaris

Hello all, How can i find the memory usuage per zone in solaris. (5 Replies)
Discussion started by: sophos
5 Replies

7. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

8. Solaris

Generic and Solaris Version

I am going to upgrade RAM in V240, I updated the ALOM with version 1.6 and have will update PROM on boot of server, but RAM needs Solaris 9 8/03 or later and from uname -a I get: SunOS name1 5.9 Generic_117171-05 sun4u sparc SUNW,Sun-Fire-V240 not sure what version of Solaris... (3 Replies)
Discussion started by: photon
3 Replies

9. HP-UX

monitor memory usuage

Hi, We have HP-UX 11.23 and i want to use glance utility to monitor the memory usuage. Can someone tell me how to sort by memory usuage in glance utility? Thx (1 Reply)
Discussion started by: rockcapri
1 Replies
Login or Register to Ask a Question