I might be wrong but I don't think so. (Brand new user, 1st post is a generic problem question)
No one here will write your script for you, but we may offer advices if this is an "honest" question and/or not a homework question.
When you post you must tell us a little about your UNIX Version.
What is the OS version. shells used etc...
Many systems have commands like swapinfo, meminfo. You can also look in /var/adm/messages on some boxes. Some systems have a "dmesg" command that will show you some stuff.
You can grep info out of the kernel config with the "strings" command.
Get a few good books like UNIX in a Nutshell by O'Reilly.
Here is a link to another newbie response that I posted.
https://www.unix.com/showthread.php?s...light=websites
If this is not homework, I apologize for my sharp comment. Read the FAQs on the homepage to understand the rules of this forum