The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
LPAR processor/virtual processor settings guttew AIX 1 02-01-2007 10:52 AM
Where can I find a Unix OS that will run on a 386 processor? methudrez UNIX Desktop for Dummies Questions & Answers 4 08-08-2002 05:02 AM
How can I see the processor usage in Unix?? Erik Rooijmans UNIX for Dummies Questions & Answers 4 01-29-2002 07:58 AM
UNIX and Processor Heathbo UNIX for Dummies Questions & Answers 1 08-26-2001 04:55 PM
Unix & Processor compatibility goliath3021 UNIX for Dummies Questions & Answers 1 10-19-2000 05:19 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-11-2001
Registered User
 

Join Date: Nov 2001
Posts: 19
how to get processor Id in UNIX

Hello readers
how to get the processor id in UNIX environment?
how to get the network card Id in UNIX ?
Forum Sponsor
  #2  
Old 12-11-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,619
I'm not sure what you mean exactly. But whatever it is that you mean, the answer is almost certainly going to vary from system to system.

First, processor id. Do you mean what kind of processor? There is the uname command which is mandated by standards to be everywhere. And "uname -m" is going to give so kind of useful information everywhere (I would be interested to hear of any exceptions). On HP-UX, I get "9000/859" as one example. But with SunOS, I get "sun4u", which sun calls the "platform". Sun has a utility /usr/platform/`uname -m`/sbin/prtdiag that can give more info. HP has a "model" command that can also give more info.

Now for network card id. Do you mean the mac address? On sun it's "ifconfig -a" and on HP it's "lanscan". If you mean the tcp/ip address, then on both systems it's "netstat -in".
  #3  
Old 12-11-2001
auswipe's Avatar
Registered User
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 536
Try `dmesg | grep -i "cpu"`

On my OpenBSD 2.9 x86 system I get:

Code:
/home/someUser $ dmesg | grep -i "cpu"
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 401 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
On a BSDI 2.1 x86 machine I get:

Code:
$ dmesg | grep -i "cpu"
cpu = Pentium II 167 HydraSTARS (model 5, ID 650, features 183f9ff, delay 8252)
That oughta give you some of the information that you are looking for.
__________________
Not quite as cool as all the other Kids...
  #4  
Old 12-11-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,445
linux: cat /proc/cpuinfo

On linux systems with proc filesystem:

Quote:
linux# cat cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 5
model : 8
model name : AMD-K6(tm) 3D processor
stepping : 12
cpu MHz : 501.150
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mmx 3dnow
bogomips : 999.42
Hope this is useful.....
  #5  
Old 12-12-2001
Registered User
 

Join Date: Jul 2001
Location: India
Posts: 57
Hi..

you can get processor information in solaris environment

from /usr/platform/<platform name>/sbin/prtdiag command

where platform name is the `uname -m` output that is sun4u in my server.
in HPUX try TOP command

thanks
Praful
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0