system parameter values on Red Hat Linux


 
Thread Tools Search this Thread
Operating Systems Linux system parameter values on Red Hat Linux
# 1  
Old 04-08-2008
system parameter values on Red Hat Linux

I am making a shell script that will display memory, disk space and CPU utilization at periodic intervals. I am planning to use free, df -h and mpstat commands and then parse them to extract the values. Can someone give me idea if I am using the correct command. I am interested to display overall (considering all the processes running on the Linux box) memory status, disk space and CPU utilization of a particular Linux box that is running Red Hat OS.
# 2  
Old 04-08-2008
I think the answer is yes, those are suitable commands to query, log the response and parse later. mpstat and every sar related command prints overall stats, like :
sar -u 2 5
Quote:
02:59:51 PM CPU %user %nice %system %iowait %steal %idle
02:59:53 PM all 3.00 0.00 1.50 0.00 0.00 95.50
02:59:55 PM all 2.51 0.00 1.01 0.00 0.00 96.48
02:59:57 PM all 12.87 0.00 2.97 0.00 0.00 84.16
02:59:59 PM all 3.54 0.00 1.52 0.00 0.00 94.95
03:00:01 PM all 3.98 0.00 2.49 0.00 0.00 93.53
Average: all 5.20 0.00 1.90 0.00 0.00 92.90
# 3  
Old 04-09-2008
Thanks a lot.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

2. Red Hat

Red Hat system not booting up

Hello, I had a linux server running mysql db without any issues, it just panic'd and now its not coming up , unfortunately we do not have backup for this server as well can anybody help on this. Following is the error Memory for crash kernel (0x0 to 0x0 ) notwithin permissible range Red... (2 Replies)
Discussion started by: fugitive
2 Replies

3. Solaris

Installing Solaris 11.1 on Red Hat system?

I'm wanting to install Solaris 11.1 on a system that already has Windows and Red Hat and a boot system managed by GRUB. From what I've read, the Solaris 11.1 install will recognize Windows fine and account for it with GRUB 2. But it doesn't mention any other OS. It talks about installing... (2 Replies)
Discussion started by: JWH
2 Replies

4. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

5. Red Hat

System unable to register with Red Hat Networks

ISSUE: The system is unable to register with Redhat network (RHN). SYSTEM DETAILS: RHEL6 (2.6.32-131.2.1.el6.x86_64). The firewall is turned off. I have network connectivity. There is no GUI. All work is done from the command line. The following files are installed:... (4 Replies)
Discussion started by: SmithJ
4 Replies

6. UNIX for Advanced & Expert Users

How I can get System Performance Linux Red Hat

Hi All, Can someone help me out knowing all commands for getting system performance on Linux Red hat(I hope Red hat doesn't matter). I am aware of vmstat, sar and top. Thanks in advance, Yagami Light. (1 Reply)
Discussion started by: Yagami
1 Replies

7. Linux

Red Hat Linux 9

Hello there! Will anybody please tell me some good links to online eBooks on Red Hat Linux 9 user experiences and the like. If the books are in PDF Format, it will be nice to read. Thanks for cooperation in advance. Enjoy using open source and breathe freely! JAM (5 Replies)
Discussion started by: Jawwad
5 Replies

8. UNIX for Dummies Questions & Answers

XP to Linux (Red Hat)

I have a PC running XP, and I have a PC that dual boots W2K and Red Hat Linux 7.3. I have the two connected via crossover cable, and the two can access each other when both are running windows. If I were to boot up Linux, can my XP PC telnet to the Linux PC? Any pointers or websites to... (3 Replies)
Discussion started by: lawadm1
3 Replies

9. UNIX for Dummies Questions & Answers

Slackware's Linux 3.0 VS Red Hat Linux 7.x

Hello guys, I got overzealous (I Think). I got the book Linux Unleashed that comes with the Slackware 3.0 Version of Linux for $2.00.I also have Red Hat Linux 7.2 (No book, just the OS).What I wanted to know was,other than the bells and whistles of Red Hat is there any significant difference... (2 Replies)
Discussion started by: perrylx
2 Replies

10. UNIX for Dummies Questions & Answers

Red Hat Linux 6.0

Ok here is my problem i do not know the command to load a driver for my network card in Ted hat linux 6.0 could sombody give me a hand. and if there is anyone that has a list of commands for red hat that would be great also (2 Replies)
Discussion started by: bbutler3295
2 Replies
Login or Register to Ask a Question