How to find out the system resources ?

Hi,

I am using SunOS.
How can I find out the system environment using unix commands ?
Eg:

I would like to findout the following things:
1. No. of CPUS
2. RAM size
3. When the session was logged in
LVL 4
sgantaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kawinCommented:
Which version of SunOS?

For SunOS 5.x
CPU: psrinfo -> show cpu information (number of cpu/speed/status)
MEM: Check in "dmesg" or "/var/adm/messages".

Number of logged in session you must use "ps" and "grep" telnet session, or use "netstat -na | grep 23" (Check number of connection on port 23-port telnet)

TIP: If you use sun4d, or sun4u you can use /usr/platform/sun4d<or sun4u>/sbin/prtdiag. It will show many usefull information about CPU, Memory, etc.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sgantaAuthor Commented:
Sun OS Version 5.6
0
sgantaAuthor Commented:
Hi Kawin,

Thanks for your answers.

Regards
sganta
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.