unix cpu utilization
2010
can anyonne help write unix scripts on on the followings?
Information on processes:
Those that are running
•Those that belong to a specific user
•Those that are using a lot of resources
•Installed software
General system information :
•The name of the machine
•The current system date and time
•Licensing information such as the operating system revision level
•When was the system last rebooted
Hardware utilisation information, such as :
•The configuration and percentage usage of the UNIX file systems
•Amount of RAM and the percentage used
•Amount of swap space and the percentage used
•Size of the CPU run
I don’t want to write a whole script, but most of those are available from either a simple command or a file.
Information on processes:
Those that are running – ps aux
• Those that belong to a specific user – ps –User username
• Those that are using a lot of resources – top
• Installed software
General system information :
• The name of the machine – uname -a
• The current system date and time – date
• Licensing information such as the operating system revision level – uname -a
• When was the system last rebooted – uptime
Hardware utilisation information, such as :
• The configuration and percentage usage of the UNIX file systems – df -h
• Amount of RAM and the percentage used – cat /proc/meminfo
• Amount of swap space and the percentage used – cat /proc/meminfo
• Size of the CPU run – cat /proc/cpuinfo
Ganglia: 10 years of monitoring clusters and grids
Comment