Sponsored Content
Top Forums UNIX for Advanced & Expert Users How do I view my hardware specs in my unix machine ? Post 302069851 by Igal Malka on Wednesday 29th of March 2006 03:31:12 PM
Old 03-29-2006
Did you tried using 'top'?

Quote:
Originally Posted by kfir
I am trying to view the hardware specifications through ssh
Type top, you will get somthing like:
Look at the bold lines, you can see that on that machine u have 2G mem and 4 CPU

20:43:35 up 8 days, 22:32, 1 user, load average: 0.00, 0.00, 0.00
65 processes: 64 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.0% 0.0% 0.0% 0.0% 0.0% 0.6% 99.2%
cpu00 0.0% 0.0% 0.0% 0.0% 0.0% 0.4% 99.5%
cpu01 0.0% 0.0% 0.0% 0.0% 0.0% 0.4% 99.5%
cpu02 0.0% 0.0% 0.0% 0.0% 0.2% 1.0% 98.7%
cpu03 0.0% 0.0% 0.0% 0.0% 0.0% 0.8% 99.1%
Mem: 2055456k av, 2036544k used, 18912k free, 0k shrd, 304372k buff
1440116k actv, 273280k in_d, 34012k in_c
Swap: 4194216k av, 0k used, 4194216k free 1454584k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
1 root 15 0 512 512 448 S 0.0 0.0 0:08 1 init
2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0 migration/0
3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1 migration/1
4 root RT 0 0 0 0 SW 0.0 0.0 0:00 2 migration/2
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

HP hardware specs

A customer gives me the following hardware specs for a HP-UX server: Model: 9000/839/K210 CPU Speed: 120 MHz Physical Memory: 512 Mb. Number of processors: 2 Can someone give me their comments on this server? If you would translate this to an Intel machine what is the approx.... (2 Replies)
Discussion started by: murmur
2 Replies

2. SCO

View Hardware Configuration

View Hardware Configuration is not an accessible option on the drop down list on the Open Server SCO Relase 5.05 Why would this be and how can I work around to get into it? Any suggestions would be appreciated! Thanks (4 Replies)
Discussion started by: trinitygirl71
4 Replies

3. UNIX for Advanced & Expert Users

View file on distant machine

Hello everybody, I have a program that connects to a distant machine using a specific port. Then inetd executes a command on that distant machine (M2). What I'd like to do is write a scipt that, given the port, it gives me the command executed. (The script should be launched on the local... (5 Replies)
Discussion started by: Majid
5 Replies

4. UNIX for Dummies Questions & Answers

How to view users in unix

Hi, Im newbie here and in unix as well. How can i view users in unix? Im viewed them in shadow file (i typed: vi /etc/shadow) but some unix (im confused if its unix or linux or bsd, but i think it has a little thing in common or differnce) has no shadow file?! What must i do to view the users... (6 Replies)
Discussion started by: jerome
6 Replies

5. UNIX for Advanced & Expert Users

view remote linux desktop on my windows machine

Hi, is there anyway i can view a remote linux desktop on my windows desktop? i am aware that X11 can see 'certain screens'. For eg if i type 'xclock &' and i have a client running on my windows, i can see the clock. If i am interested to see the entire desktop of my linux, how can i do it? (4 Replies)
Discussion started by: new2ss
4 Replies

6. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

7. Red Hat

Machine/Hardware platform/Processor type

Hi, I am just confused about these three things which are shown in the output of uname command. I am running RH lINUX 9.0 on hardware having Intel HT CPU. My uname shows uname -p i686 (processor) uname -m i686 (machine) uname -i i386 (hardware) I was about to ... (1 Reply)
Discussion started by: dextergenious
1 Replies

8. SCO

Migrate UNIXWare from old machine to new machine (different hardware)

Good afternoon all, I'm a bit stuck... I honestly don't know very much about Unix let alone UnixWare for that matter. I have a system that's very old and could fail really at any time. I have another server I'd like to move everything to yet I don't know what's possible. The current server is... (2 Replies)
Discussion started by: rubiks015
2 Replies
sg_get_cpu_stats(3)					     Library Functions Manual					       sg_get_cpu_stats(3)

NAME
sg_get_cpu_stats, sg_get_cpu_stats_diff, sg_get_cpu_percents - get cpu usage SYNOPSIS
#include <statgrab.h> sg_cpu_percents *sg_get_cpu_percents(void); sg_cpu_stats *sg_get_cpu_stats(void); sg_cpu_stats *sg_get_cpu_stats_diff(void); DESCRIPTION
sg_get_cpu_stats() and sg_get_cpu_stats_diff() both return static pointers of type sg_cpu_stats. sg_get_cpu_stats() returns the total amount of "ticks" the operating system has spent in each of the different states. sg_get_cpu_stats_diff() returns the difference in "ticks" for each of the states since last time sg_get_cpu_stats_diff() or sg_get_cpu_stats() was called. If it has never been called, it will return the result of sg_get_cpu_stats(). The value stored (the "ticks") will vary between operating systems. For example Solaris has a total of 100 per second, while Linux has sub- stantially more. Also, different operating systems store different information - you won't find nice cpu on Solaris for example. Because of this, you will ideally always want to work on a scale against the total, or in percentages. sg_get_cpu_percents() returns a pointer to a static sg_cpu_percents. The function calls sg_get_cpu_stats_diff() and changes the values into percentages. If it has never been called before (and nor has sg_get_cpu_stats() or sg_get_cpu_stats_diff()), the returned percentages will be the systems total ever since its uptime. (Unless the counters have cycled) RETURN VALUES
There are two structures returned by the CPU statistics functions. typedef struct{ long long user; long long kernel; long long idle; long long iowait; long long swap; long long nice; long long total; time_t systime; }sg_cpu_stats; typedef struct{ float user; float kernel; float idle; float iowait; float swap; float nice; time_t time_taken; }sg_cpu_percents; user kernel idle iowait swap nice The different CPU states. systime time_taken The time taken in seconds since the last call of the function, or the system time. SEE ALSO
statgrab(3) WEBSITE
http://www.i-scream.org/libstatgrab/ i-scream $Date: 2005/04/25 11:25:45 $ sg_get_cpu_stats(3)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy