![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
||||
|
||||
|
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
Code:
$ dmesg | grep -i "cpu" cpu = Pentium II 167 HydraSTARS (model 5, ID 650, features 183f9ff, delay 8252)
__________________
Not quite as cool as all the other Kids... |
|
#4
|
||||
|
||||
|
linux: cat /proc/cpuinfo
On linux systems with proc filesystem:
Quote:
|
|
#5
|
|||
|
|||
|
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 |